|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
This abstract base class is implemented by LookAndFeel classes to provide menu drawing functionality. More...
#include "juce_PopupMenu.h"
Public Member Functions | |
| virtual void | drawPopupMenuBackground (Graphics &, int width, int height) |
| Fills the background of a popup menu component. | |
| virtual void | drawPopupMenuBackgroundWithOptions (Graphics &, int width, int height, const Options &)=0 |
| Fills the background of a popup menu component. | |
| virtual void | drawPopupMenuItem (Graphics &, const Rectangle< int > &area, bool isSeparator, bool isActive, bool isHighlighted, bool isTicked, bool hasSubMenu, const String &text, const String &shortcutKeyText, const Drawable *icon, const Colour *textColour) |
| Draws one of the items in a popup menu. | |
| virtual void | drawPopupMenuItemWithOptions (Graphics &, const Rectangle< int > &area, bool isHighlighted, const Item &item, const Options &)=0 |
| Draws one of the items in a popup menu. | |
| virtual void | drawPopupMenuSectionHeader (Graphics &, const Rectangle< int > &, const String &) |
| virtual void | drawPopupMenuSectionHeaderWithOptions (Graphics &, const Rectangle< int > &area, const String §ionName, const Options &)=0 |
| virtual Font | getPopupMenuFont ()=0 |
| Returns the size and style of font to use in popup menus. | |
| virtual void | drawPopupMenuUpDownArrow (Graphics &, int width, int height, bool isScrollUpArrow) |
| virtual void | drawPopupMenuUpDownArrowWithOptions (Graphics &, int width, int height, bool isScrollUpArrow, const Options &)=0 |
| virtual void | getIdealPopupMenuItemSize (const String &text, bool isSeparator, int standardMenuItemHeight, int &idealWidth, int &idealHeight) |
| Finds the best size for an item in a popup menu. | |
| virtual void | getIdealPopupMenuItemSizeWithOptions (const String &text, bool isSeparator, int standardMenuItemHeight, int &idealWidth, int &idealHeight, const Options &)=0 |
| Finds the best size for an item in a popup menu. | |
| virtual int | getMenuWindowFlags ()=0 |
| virtual void | drawMenuBarBackground (Graphics &, int width, int height, bool isMouseOverBar, MenuBarComponent &)=0 |
| virtual int | getDefaultMenuBarHeight ()=0 |
| virtual int | getMenuBarItemWidth (MenuBarComponent &, int itemIndex, const String &itemText)=0 |
| virtual Font | getMenuBarFont (MenuBarComponent &, int itemIndex, const String &itemText)=0 |
| virtual void | drawMenuBarItem (Graphics &, int width, int height, int itemIndex, const String &itemText, bool isMouseOverItem, bool isMenuOpen, bool isMouseOverBar, MenuBarComponent &)=0 |
| virtual Component * | getParentComponentForMenuOptions (const Options &options)=0 |
| virtual void | preparePopupMenuWindow (Component &newWindow)=0 |
| virtual bool | shouldPopupMenuScaleWithTargetComponent (const Options &options)=0 |
| Return true if you want your popup menus to scale with the target component's AffineTransform or scale factor. | |
| virtual int | getPopupMenuBorderSize () |
| virtual int | getPopupMenuBorderSizeWithOptions (const Options &)=0 |
| virtual void | drawPopupMenuColumnSeparatorWithOptions (Graphics &g, const Rectangle< int > &bounds, const Options &)=0 |
| Implement this to draw some custom decoration between the columns of the popup menu. | |
| virtual int | getPopupMenuColumnSeparatorWidthWithOptions (const Options &)=0 |
| Return the amount of space that should be left between popup menu columns. | |
This abstract base class is implemented by LookAndFeel classes to provide menu drawing functionality.
Definition at line 933 of file juce_PopupMenu.h.
|
virtual |
Fills the background of a popup menu component.
Reimplemented in juce::LookAndFeel_V1, juce::LookAndFeel_V2, and juce::LookAndFeel_V3.
Definition at line 2380 of file juce_PopupMenu.cpp.
|
pure virtual |
Fills the background of a popup menu component.
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Implement this to draw some custom decoration between the columns of the popup menu.
getPopupMenuColumnSeparatorWidthWithOptions must return a positive value in order to display the separator.
Implemented in juce::LookAndFeel_V2.
|
virtual |
Draws one of the items in a popup menu.
Reimplemented in juce::LookAndFeel_V2, and juce::LookAndFeel_V4.
Definition at line 2382 of file juce_PopupMenu.cpp.
|
pure virtual |
Draws one of the items in a popup menu.
Implemented in juce::LookAndFeel_V2.
|
virtual |
Definition at line 2390 of file juce_PopupMenu.cpp.
|
virtual |
Definition at line 2393 of file juce_PopupMenu.cpp.
|
virtual |
Finds the best size for an item in a popup menu.
Reimplemented in juce::LookAndFeel_V2, and juce::LookAndFeel_V4.
Definition at line 2395 of file juce_PopupMenu.cpp.
|
pure virtual |
Finds the best size for an item in a popup menu.
Implemented in juce::LookAndFeel_V2.
|
virtual |
Definition at line 2397 of file juce_PopupMenu.cpp.
|
pure virtual |
Return the amount of space that should be left between popup menu columns.
Implemented in juce::LookAndFeel_V2.
Returns the size and style of font to use in popup menus.
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Return true if you want your popup menus to scale with the target component's AffineTransform or scale factor.
Implemented in juce::LookAndFeel_V2.