JUCE
Public Member Functions | List of all members
PopupMenu::Options Class Reference

Class used to create a set of options to pass to the show() method. More...

Public Member Functions

 Options ()
 
Options withTargetComponent (Component *targetComponent) const noexcept
 
Options withTargetScreenArea (const Rectangle< int > &targetArea) const noexcept
 
Options withMinimumWidth (int minWidth) const noexcept
 
Options withMaximumNumColumns (int maxNumColumns) const noexcept
 
Options withStandardItemHeight (int standardHeight) const noexcept
 
Options withItemThatMustBeVisible (int idOfItemToBeVisible) const noexcept
 
Options withParentComponent (Component *parentComponent) const noexcept
 
ComponentgetParentComponent () const noexcept
 
ComponentgetTargetComponent () const noexcept
 
Rectangle< int > getTargetScreenArea () const noexcept
 
int getMinimumWidth () const noexcept
 
int getMaximumNumColumns () const noexcept
 
int getStandardItemHeight () const noexcept
 
int getItemThatMustBeVisible () const noexcept
 

Detailed Description

Class used to create a set of options to pass to the show() method.

You can chain together a series of calls to this class's methods to create a set of whatever options you want to specify. E.g.

Constructor & Destructor Documentation

PopupMenu::Options::Options ( )

Member Function Documentation

Options PopupMenu::Options::withTargetComponent ( Component targetComponent) const
noexcept
Options PopupMenu::Options::withTargetScreenArea ( const Rectangle< int > &  targetArea) const
noexcept
Options PopupMenu::Options::withMinimumWidth ( int  minWidth) const
noexcept
Options PopupMenu::Options::withMaximumNumColumns ( int  maxNumColumns) const
noexcept
Options PopupMenu::Options::withStandardItemHeight ( int  standardHeight) const
noexcept
Options PopupMenu::Options::withItemThatMustBeVisible ( int  idOfItemToBeVisible) const
noexcept
Options PopupMenu::Options::withParentComponent ( Component parentComponent) const
noexcept
Component* PopupMenu::Options::getParentComponent ( ) const
noexcept
Component* PopupMenu::Options::getTargetComponent ( ) const
noexcept
Rectangle<int> PopupMenu::Options::getTargetScreenArea ( ) const
noexcept
int PopupMenu::Options::getMinimumWidth ( ) const
noexcept
int PopupMenu::Options::getMaximumNumColumns ( ) const
noexcept
int PopupMenu::Options::getStandardItemHeight ( ) const
noexcept
int PopupMenu::Options::getItemThatMustBeVisible ( ) const
noexcept

The documentation for this class was generated from the following file: