This abstract base class is implemented by LookAndFeel classes to provide menu drawing functionality. More...
#include <juce_PopupMenu.h>
Public Member Functions | |
virtual | ~LookAndFeelMethods () |
virtual void | drawMenuBarBackground (Graphics &, int width, int height, bool isMouseOverBar, MenuBarComponent &)=0 |
virtual void | drawMenuBarItem (Graphics &, int width, int height, int itemIndex, const String &itemText, bool isMouseOverItem, bool isMenuOpen, bool isMouseOverBar, MenuBarComponent &)=0 |
virtual void | drawPopupMenuBackground (Graphics &, int width, int height)=0 |
Fills the background of a popup menu component. More... | |
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)=0 |
Draws one of the items in a popup menu. More... | |
virtual void | drawPopupMenuSectionHeader (Graphics &, const Rectangle< int > &area, const String §ionName)=0 |
virtual void | drawPopupMenuUpDownArrow (Graphics &, int width, int height, bool isScrollUpArrow)=0 |
virtual int | getDefaultMenuBarHeight ()=0 |
virtual void | getIdealPopupMenuItemSize (const String &text, bool isSeparator, int standardMenuItemHeight, int &idealWidth, int &idealHeight)=0 |
Finds the best size for an item in a popup menu. More... | |
virtual Font | getMenuBarFont (MenuBarComponent &, int itemIndex, const String &itemText)=0 |
virtual int | getMenuBarItemWidth (MenuBarComponent &, int itemIndex, const String &itemText)=0 |
virtual int | getMenuWindowFlags ()=0 |
virtual Component * | getParentComponentForMenuOptions (const PopupMenu::Options &options)=0 |
virtual int | getPopupMenuBorderSize ()=0 |
virtual Font | getPopupMenuFont ()=0 |
Returns the size and style of font to use in popup menus. More... | |
virtual void | preparePopupMenuWindow (Component &newWindow)=0 |
virtual bool | shouldPopupMenuScaleWithTargetComponent (const PopupMenu::Options &options)=0 |
Return true if you want your popup menus to scale with the target component's AffineTransform or scale factor. More... | |
This abstract base class is implemented by LookAndFeel classes to provide menu drawing functionality.
|
inlinevirtual |
References JUCE_PUBLIC_IN_DLL_BUILD.
|
pure virtual |
Implemented in juce::LookAndFeel_V4, juce::LookAndFeel_V2, juce::LookAndFeel_V1, and juce::LookAndFeel_V3.
|
pure virtual |
Implemented in juce::LookAndFeel_V4, and juce::LookAndFeel_V2.
|
pure virtual |
Fills the background of a popup menu component.
Implemented in juce::LookAndFeel_V2, juce::LookAndFeel_V1, and juce::LookAndFeel_V3.
|
pure virtual |
Draws one of the items in a popup menu.
Implemented in juce::LookAndFeel_V4, and juce::LookAndFeel_V2.
|
pure virtual |
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Finds the best size for an item in a popup menu.
Implemented in juce::LookAndFeel_V4, and juce::LookAndFeel_V2.
|
pure virtual |
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
Returns the size and style of font to use in popup menus.
Implemented in juce::LookAndFeel_V2.
|
pure virtual |
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.