|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
#include <menuitem.hpp>
Public Types | |
| enum class | Type : std::uint8_t { Action , Submenu , Separator , Checkable } |
| Public Types inherited from fcn::Widget | |
| enum | BorderSide : uint8_t { BORDER_NONE = 0 , BORDER_LEFT = 1 << 0 , BORDER_TOP = 1 << 1 , BORDER_RIGHT = 1 << 2 , BORDER_BOTTOM = 1 << 3 , BORDER_ALL = BORDER_LEFT | BORDER_TOP | BORDER_RIGHT | BORDER_BOTTOM } |
| enum | BorderStyle : uint8_t { BORDER_STYLE_BEVEL = 0 , BORDER_STYLE_FLAT = 1 } |
| enum class | SelectionMode : uint8_t { None = 0 , Border = 1 , Background = 2 } |
Public Member Functions | |
| void | draw (Graphics *graphics) override |
| Image const * | getIcon () const |
| std::string const & | getIconGlyph () const |
| Font * | getIconGlyphFont () const |
| std::string const & | getShortcut () const |
| MenuPopup * | getSubmenu () const |
| std::string const & | getText () const |
| Type | getType () const |
| bool | isChecked () const |
| bool | isEnabled () const |
| void | layoutColumns (ColumnLayout const &layout) |
| MenuItemMetrics | measure (Font const &font) const |
| MenuItem (MenuItem &&)=delete | |
| MenuItem (MenuItem const &)=delete | |
| MenuItem (std::string const &text) | |
| MenuItem & | operator= (MenuItem &&)=delete |
| MenuItem & | operator= (MenuItem const &)=delete |
| void | setChecked (bool checked) |
| void | setEnabled (bool enabled) |
| void | setIcon (Image const *image) |
| void | setIconGlyph (std::string const &glyph, Font *font=nullptr) |
| void | setIconGlyphFont (Font *font) |
| void | setShortcut (std::string const &shortcut) |
| void | setSubmenu (MenuPopup *popup) |
| void | setText (std::string const &text) |
| void | setType (Type type) |
| Public Member Functions inherited from fcn::Button | |
| void | adjustSize () override |
| void | ancestorHidden (Event const &e) override |
| Button (Button &&)=delete | |
| Button (Button const &)=delete | |
| Button (std::string caption) | |
| void | focusLost (Event const &event) override |
| void | fontChanged () override |
| Graphics::Alignment | getAlignment () const |
| std::string const & | getCaption () const |
| int | getDownXOffset () const |
| int | getDownYOffset () const |
| bool | isActive () const |
| void | keyPressed (KeyEvent &keyEvent) override |
| void | keyReleased (KeyEvent &keyEvent) override |
| void | mouseDragged (MouseEvent &mouseEvent) override |
| void | mouseEntered (MouseEvent &mouseEvent) override |
| void | mouseExited (MouseEvent &mouseEvent) override |
| void | mousePressed (MouseEvent &mouseEvent) override |
| void | mouseReleased (MouseEvent &mouseEvent) override |
| Button & | operator= (Button &&)=delete |
| Button & | operator= (Button const &)=delete |
| void | resizeToContent (bool recursion=true) override |
| void | setActive (bool state) |
| void | setAlignment (Graphics::Alignment alignment) |
| void | setCaption (std::string const &caption) |
| void | setDownOffset (int x, int y) |
| void | setDownXOffset (int offset) |
| void | setDownYOffset (int offset) |
| Public Member Functions inherited from fcn::Widget | |
| virtual void | _draw (Graphics *graphics) |
| virtual FocusHandler * | _getFocusHandler () |
| virtual std::list< FocusListener * > const & | _getFocusListeners () |
| virtual FocusHandler * | _getInternalFocusHandler () |
| virtual std::list< KeyListener * > const & | _getKeyListeners () |
| virtual std::list< MouseListener * > const & | _getMouseListeners () |
| virtual void | _logic () |
| virtual void | _setFocusHandler (FocusHandler *focusHandler) |
| virtual void | _setParent (Widget *parent) |
| void | adaptLayout () |
| virtual void | adaptLayout (bool top) |
| void | addActionListener (ActionListener *actionListener) |
| void | addDeathListener (DeathListener *deathListener) |
| void | addDropTargetListener (DropTargetListener *listener) |
| void | addFocusListener (FocusListener *focusListener) |
| void | addKeyListener (KeyListener *keyListener) |
| void | addMouseListener (MouseListener *mouseListener) |
| void | addWidgetListener (WidgetListener *widgetListener) |
| bool | captureMouse () |
| bool | contains (int x, int y) const |
| virtual void | drawBorder (Graphics *graphics) |
| void | drawBorder (Graphics *graphics, unsigned int sides) |
| virtual void | drawOutline (Graphics *graphics) |
| virtual void | drawSelectionFrame (Graphics *graphics) |
| void | expandContent () |
| virtual void | expandContent (bool recursion) |
| virtual void | focusNext () |
| virtual void | focusPrevious () |
| virtual void | getAbsolutePosition (int &x, int &y) const |
| std::string const & | getActionEventId () const |
| Color const & | getBackgroundColor () const |
| Color const & | getBaseColor () const |
| Color const & | getBorderColor () const |
| unsigned int | getBorderSides () const |
| unsigned int | getBorderSize () const |
| unsigned int | getBorderStyle () const |
| virtual Rectangle | getChildrenArea () |
| unsigned int | getChildrenCount () const |
| Rectangle const & | getDimension () const |
| Size const & | getFixedSize () const |
| Font * | getFont () const |
| Color const & | getForegroundColor () const |
| int | getHeight () const |
| std::string const & | getId () const |
| void | getLastPosition (int &x, int &y) const |
| int | getMarginBottom () const |
| int | getMarginLeft () const |
| int | getMarginRight () const |
| int | getMarginTop () const |
| Size const & | getMaxSize () const |
| Size const & | getMinSize () const |
| Color const & | getOutlineColor () const |
| unsigned int | getOutlineSize () const |
| unsigned int | getPaddingBottom () const |
| unsigned int | getPaddingLeft () const |
| unsigned int | getPaddingRight () const |
| unsigned int | getPaddingTop () const |
| virtual Widget * | getParent () const |
| Color const & | getSelectionColor () const |
| SelectionMode | getSelectionMode () const |
| virtual Widget * | getTop () const |
| unsigned int | getVisibleChildrenCount () const |
| Widget * | getWidgetAt (int x, int y) |
| virtual Widget * | getWidgetAt (int x, int y, Widget *exclude) |
| std::list< Widget * > | getWidgetsIn (Rectangle const &area) |
| virtual std::list< Widget * > | getWidgetsIn (Rectangle const &area, Widget *ignore) |
| int | getWidth () const |
| int | getX () const |
| int | getY () const |
| bool | hasMouseCapture () const |
| bool | isDescendantOf (Widget const *ancestor) const noexcept |
| bool | isEnabled () const |
| bool | isFixedSize () const |
| bool | isFocusable () const |
| virtual bool | isFocused () const |
| bool | isHorizontalExpand () const |
| bool | isInsideActiveMouseModal () const noexcept |
| bool | isLastPositionSet () const |
| virtual bool | isLayouted () |
| virtual bool | isModalFocusable () const |
| virtual bool | isModalFocused () const |
| virtual bool | isModalMouseInputFocusable () const |
| bool | isMouseInside (MouseEvent const &mouseEvent) const |
| bool | isSetVisible () const |
| bool | isTabInEnabled () const |
| bool | isTabOutEnabled () const |
| virtual bool | isUnderMouseModal () const |
| bool | isVerticalExpand () const |
| bool | isVisible () const |
| virtual void | logic () |
| virtual void | moveToBottom (Widget *widget) |
| virtual void | moveToTop (Widget *widget) |
| virtual void | onFocusChanged () |
| virtual void | onFocusGained () |
| virtual void | onFocusLost () |
| Widget & | operator= (Widget &&)=delete |
| Widget & | operator= (Widget const &)=delete |
| void | releaseMouse () |
| void | removeActionListener (ActionListener *actionListener) |
| void | removeDeathListener (DeathListener *deathListener) |
| void | removeDropTargetListener (DropTargetListener *listener) |
| void | removeFocusListener (FocusListener *focusListener) |
| void | removeKeyListener (KeyListener *keyListener) |
| void | removeMouseListener (MouseListener *mouseListener) |
| void | removeWidgetListener (WidgetListener *widgetListener) |
| virtual void | requestFocus () |
| virtual void | requestMoveToBottom () |
| virtual void | requestMoveToTop () |
| void | setActionEventId (std::string const &actionEventId) |
| virtual void | setBackgroundColor (Color const &color) |
| virtual void | setBaseColor (Color const &color) |
| void | setBorderBottom (unsigned int size, unsigned int style) |
| virtual void | setBorderColor (Color const &color) |
| void | setBorderSides (unsigned int sides) |
| void | setBorderSize (unsigned int size) |
| void | setBorderStyle (unsigned int style) |
| void | setBorderTop (unsigned int size, unsigned int style) |
| virtual void | setDimension (Rectangle const &dimension) |
| void | setEnabled (bool enabled) |
| void | setFixedSize (Size const &size) |
| void | setFocusable (bool focusable) |
| virtual void | setFocused (bool focused) |
| virtual void | setFont (Font *font) |
| virtual void | setForegroundColor (Color const &color) |
| virtual void | setHeight (int height) |
| void | setHorizontalExpand (bool expand) |
| void | setId (std::string const &id) |
| void | setInternalFocusHandler (FocusHandler *internalFocusHandler) |
| void | setLastPosition (int x, int y) |
| void | setMargin (int margin) |
| void | setMarginBottom (int margin) |
| void | setMarginLeft (int margin) |
| void | setMarginRight (int margin) |
| void | setMarginTop (int margin) |
| void | setMaxSize (Size const &size) |
| void | setMinSize (Size const &size) |
| virtual void | setOutlineColor (Color const &color) |
| void | setOutlineSize (unsigned int size) |
| void | setPadding (unsigned int padding) |
| void | setPaddingBottom (unsigned int padding) |
| void | setPaddingLeft (unsigned int padding) |
| void | setPaddingRight (unsigned int padding) |
| void | setPaddingTop (unsigned int padding) |
| void | setPosition (int x, int y) |
| virtual void | setSelectionColor (Color const &color) |
| virtual void | setSelectionMode (SelectionMode mode) |
| virtual void | setSize (int width, int height) |
| void | setTabInEnabled (bool enabled) |
| void | setTabOutEnabled (bool enabled) |
| void | setVerticalExpand (bool expand) |
| void | setVisible (bool visible) |
| virtual void | setWidth (int width) |
| void | setX (int x) |
| void | setY (int y) |
| virtual void | showPart (Rectangle rectangle) |
| virtual void | showWidgetPart (Widget *widget, Rectangle area) |
| Widget () | |
| Widget (Widget &&)=delete | |
| Widget (Widget const &)=delete | |
| Public Member Functions inherited from fcn::MouseListener | |
| virtual void | mouseClicked (MouseEvent &mouseEvent) |
| MouseListener (MouseListener &&)=default | |
| MouseListener (MouseListener const &)=default | |
| virtual void | mouseMoved (MouseEvent &mouseEvent) |
| virtual void | mouseWheelMovedDown (MouseEvent &mouseEvent) |
| virtual void | mouseWheelMovedLeft (MouseEvent &mouseEvent) |
| virtual void | mouseWheelMovedRight (MouseEvent &mouseEvent) |
| virtual void | mouseWheelMovedUp (MouseEvent &mouseEvent) |
| MouseListener & | operator= (MouseListener &&)=default |
| MouseListener & | operator= (MouseListener const &)=default |
| Public Member Functions inherited from fcn::KeyListener | |
| KeyListener (KeyListener &&)=default | |
| KeyListener (KeyListener const &)=default | |
| KeyListener & | operator= (KeyListener &&)=default |
| KeyListener & | operator= (KeyListener const &)=default |
| Public Member Functions inherited from fcn::FocusListener | |
| virtual void | focusGained (Event const &event) |
| FocusListener (FocusListener &&)=delete | |
| FocusListener (FocusListener const &)=delete | |
| FocusListener & | operator= (FocusListener &&)=delete |
| FocusListener & | operator= (FocusListener const &)=delete |
| Public Member Functions inherited from fcn::WidgetListener | |
| virtual void | ancestorMoved (Event const &event) |
| virtual void | ancestorShown (Event const &event) |
| WidgetListener & | operator= (WidgetListener &&)=default |
| WidgetListener & | operator= (WidgetListener const &)=default |
| virtual void | widgetHidden (Event const &event) |
| WidgetListener (WidgetListener &&)=default | |
| WidgetListener (WidgetListener const &)=default | |
| virtual void | widgetMoved (Event const &event) |
| virtual void | widgetResized (Event const &event) |
| virtual void | widgetShown (Event const &event) |
Protected Attributes | |
| bool | mChecked {false} |
| std::unique_ptr< ColumnLayout > | mColumnLayout |
| bool | mEnabled {true} |
| Image const * | mIcon {nullptr} |
| std::string | mIconGlyph |
| Font * | mIconGlyphFont {nullptr} |
| std::string | mShortcut |
| MenuPopup * | mSubmenu {nullptr} |
| Type | mType {Type::Action} |
| Protected Attributes inherited from fcn::Button | |
| Graphics::Alignment | mAlignment {Graphics::Alignment::Center} |
| std::string | mCaption |
| bool | mHasMouse {false} |
| bool | mKeyPressed {false} |
| bool | mMousePressed {false} |
| bool | mState {true} |
| int | mXOffset {1} |
| int | mYOffset {1} |
| Protected Attributes inherited from fcn::Widget | |
| std::string | mActionEventId |
| std::list< ActionListener * > | mActionListeners |
| Color | mBackgroundColor {0xf9fafb} |
| Color | mBaseColor {0xe5e7eb} |
| Color | mBorderColor {0xd1d5db} |
| unsigned int | mBorderSides {BORDER_ALL} |
| unsigned int | mBorderSize {0} |
| unsigned int | mBorderStyle {BORDER_STYLE_FLAT} |
| std::list< Widget * > | mChildren |
| Font * | mCurrentFont {nullptr} |
| std::list< DeathListener * > | mDeathListeners |
| Rectangle | mDimension |
| std::list< DropTargetListener * > | mDropTargetListeners |
| bool | mEnabled {true} |
| Size | mFixedSize {-1, -1} |
| bool | mFixedSizeUsed {false} |
| bool | mFocusable {false} |
| bool | mFocused {false} |
| FocusHandler * | mFocusHandler {nullptr} |
| std::list< FocusListener * > | mFocusListeners |
| Color | mForegroundColor {0x1f2933} |
| bool | mHExpand {false} |
| std::string | mId |
| FocusHandler * | mInternalFocusHandler {nullptr} |
| std::list< KeyListener * > | mKeyListeners |
| int | mLastX {0} |
| int | mLastY {0} |
| int | mMarginBottom {0} |
| int | mMarginLeft {0} |
| int | mMarginRight {0} |
| int | mMarginTop {0} |
| Size | mMaxSize {std::numeric_limits<int>::max(), std::numeric_limits<int>::max()} |
| Size | mMinSize {0, 0} |
| std::list< MouseListener * > | mMouseListeners |
| Rectangle | mOffsetRect |
| Color | mOutlineColor {0x9ca3af} |
| unsigned int | mOutlineSize {0} |
| unsigned int | mPaddingBottom {0} |
| unsigned int | mPaddingLeft {0} |
| unsigned int | mPaddingRight {0} |
| unsigned int | mPaddingTop {0} |
| Widget * | mParent {nullptr} |
| Color | mSelectionColor {0x3b82f6} |
| SelectionMode | mSelectionMode {SelectionMode::None} |
| bool | mTabIn {true} |
| bool | mTabOut {true} |
| bool | mVExpand {false} |
| bool | mVisible {true} |
| std::list< WidgetListener * > | mWidgetListeners |
Additional Inherited Members | |
| Static Public Member Functions inherited from fcn::Widget | |
| static DeathListener * | _getGuiDeathListener () |
| static VisibilityEventHandler * | _getVisibilityEventHandler () |
| static void | _setGuiDeathListener (DeathListener *deathListener) |
| static void | _setVisibilityEventHandler (VisibilityEventHandler *visibilityEventHandler) |
| static Widget * | getMouseCapture () |
| static void | resetGlobalFont () |
| static void | setGlobalFont (Font *font) |
| static bool | widgetExists (Widget const *widget) |
| Protected Member Functions inherited from fcn::Button | |
| virtual void | adjustSizeImpl () |
| virtual bool | isPressed () const |
| Protected Member Functions inherited from fcn::Widget | |
| void | add (Widget *widget) |
| void | calculateSize () |
| void | distributeActionEvent () |
| void | distributeAncestorHiddenEvent (Widget *ancestor) |
| void | distributeAncestorMovedEvent (Widget *ancestor) |
| void | distributeAncestorShownEvent (Widget *ancestor) |
| void | distributeDragDrop (DragEvent &event) |
| bool | distributeDragEnter (DragEvent &event) |
| void | distributeDragHover (DragEvent &event) |
| void | distributeDragLeave (DragEvent &event) |
| void | distributeHiddenEvent () |
| void | distributeMovedEvent () |
| void | distributeResizedEvent () |
| void | distributeShownEvent () |
| virtual Widget * | findWidgetById (std::string const &id) |
| std::list< Widget * > const & | getChildren () const |
| virtual void | remove (Widget *widget) |
| virtual void | removeAllChildren () |
| void | resizeToChildren () |
| Protected Member Functions inherited from fcn::MouseListener | |
| MouseListener ()=default | |
| Protected Member Functions inherited from fcn::KeyListener | |
| KeyListener ()=default | |
| Protected Member Functions inherited from fcn::FocusListener | |
| FocusListener ()=default | |
| Protected Member Functions inherited from fcn::WidgetListener | |
| WidgetListener ()=default | |
| Static Protected Attributes inherited from fcn::Widget | |
| static DefaultFont | mDefaultFont |
| static Font * | mGlobalFont = nullptr |
| static DeathListener * | mGuiDeathListener = nullptr |
| static VisibilityEventHandler * | mVisibilityEventHandler = nullptr |
| static std::list< Widget * > | mWidgetInstances |
| static Widget * | sMouseCapture = nullptr |
A menu item widget for use in menus.
MenuItem displays a single item in a menu. It can be:
Definition at line 123 of file menuitem.hpp.
|
strong |
The type of menu item.
Action: Regular clickable item that triggers an action. Submenu: Opens a submenu when hovered. Separator: Non-interactive divider (a line between items). Checkable: An item that can be toggled on/off (e.g. with a checkmark).
Definition at line 134 of file menuitem.hpp.
|
explicit |
Constructor.
| text | The menu item text. |
Definition at line 18 of file menuitem.cpp.
References fcn::Widget::setBorderSize(), and fcn::Button::setCaption().
|
overridevirtual |
Draws the widget.
The call to draw is initiated by the widget's parent. The graphics object is set up so that all drawing is relative to the widget, i.e coordinate (0,0) is the top left corner of the widget. It is not possible to draw outside of a widget's dimension. If a widget has children, the parent's draw function will always be called before the children's draw functions are called.
| graphics | A graphics object to draw with. |
Reimplemented from fcn::Button.
Definition at line 120 of file menuitem.cpp.
References fcn::Graphics::drawImage(), fcn::Graphics::drawText(), fcn::Graphics::fillRectangle(), fcn::Widget::getFont(), fcn::Widget::getForegroundColor(), fcn::Font::getHeight(), fcn::Widget::getHeight(), fcn::Widget::getPaddingBottom(), fcn::Widget::getPaddingTop(), fcn::Widget::getSelectionColor(), fcn::Font::getWidth(), fcn::Widget::getWidth(), fcn::Button::mCaption, mChecked, mColumnLayout, mEnabled, fcn::Button::mHasMouse, mIcon, mIconGlyph, mIconGlyphFont, mShortcut, mType, fcn::Graphics::setColor(), and fcn::Graphics::setFont().
| Image const * fcn::MenuItem::getIcon | ( | ) | const |
Get the optional icon image.
Definition at line 62 of file menuitem.cpp.
References mIcon.
| std::string const & fcn::MenuItem::getIconGlyph | ( | ) | const |
| Font * fcn::MenuItem::getIconGlyphFont | ( | ) | const |
Get the font used for the icon glyph.
Definition at line 83 of file menuitem.cpp.
References mIconGlyphFont.
| std::string const & fcn::MenuItem::getShortcut | ( | ) | const |
Gets the shortcut text.
Definition at line 93 of file menuitem.cpp.
References mShortcut.
| MenuPopup * fcn::MenuItem::getSubmenu | ( | ) | const |
Gets the submenu popup.
Definition at line 42 of file menuitem.cpp.
References mSubmenu.
| std::string const & fcn::MenuItem::getText | ( | ) | const |
Get the menu item text.
Definition at line 52 of file menuitem.cpp.
References fcn::Button::getCaption().
| MenuItem::Type fcn::MenuItem::getType | ( | ) | const |
Gets the menu item type.
Definition at line 29 of file menuitem.cpp.
References mType.
| bool fcn::MenuItem::isChecked | ( | ) | const |
Checks if the item is checked.
Definition at line 103 of file menuitem.cpp.
References mChecked.
| bool fcn::MenuItem::isEnabled | ( | ) | const |
Checks if the item is enabled.
Definition at line 115 of file menuitem.cpp.
References mEnabled.
| void fcn::MenuItem::layoutColumns | ( | ColumnLayout const & | layout | ) |
Applies column layout positions for rendering.
| layout | The column layout specification. |
Definition at line 295 of file menuitem.cpp.
References mColumnLayout.
| MenuItemMetrics fcn::MenuItem::measure | ( | Font const & | font | ) | const |
Measures the content metrics of this menu item.
| font | The font to use for text measurements. |
Definition at line 240 of file menuitem.cpp.
References fcn::MenuItemMetrics::arrowW, fcn::MenuItemMetrics::captionW, fcn::Widget::getPaddingBottom(), fcn::Widget::getPaddingTop(), fcn::MenuItemMetrics::height, fcn::MenuItemMetrics::iconW, fcn::Button::mCaption, mIcon, mIconGlyph, mIconGlyphFont, mShortcut, mType, and fcn::MenuItemMetrics::shortcutW.
| void fcn::MenuItem::setChecked | ( | bool | checked | ) |
Sets whether the item is checked (for checkable items).
| checked | True if checked. |
Definition at line 98 of file menuitem.cpp.
References mChecked.
| void fcn::MenuItem::setEnabled | ( | bool | enabled | ) |
Sets whether the item is enabled.
| enabled | True if enabled. |
Definition at line 109 of file menuitem.cpp.
References mEnabled.
| void fcn::MenuItem::setIcon | ( | Image const * | image | ) |
Icon support (optional image to render at the left).
Definition at line 57 of file menuitem.cpp.
References mIcon.
| void fcn::MenuItem::setIconGlyph | ( | std::string const & | glyph, |
| Font * | font = nullptr ) |
Icon glyph support using a font (e.g.
OpenMoji emoji glyphs). The glyph is rendered using the provided font when available.
Definition at line 67 of file menuitem.cpp.
References mIconGlyph, and mIconGlyphFont.
| void fcn::MenuItem::setIconGlyphFont | ( | Font * | font | ) |
Set the font used to render the icon glyph.
Definition at line 78 of file menuitem.cpp.
References mIconGlyphFont.
| void fcn::MenuItem::setShortcut | ( | std::string const & | shortcut | ) |
Sets the shortcut text (displayed on the right).
| shortcut | The shortcut text (e.g., "Ctrl+S"). |
Definition at line 88 of file menuitem.cpp.
References mShortcut.
| void fcn::MenuItem::setSubmenu | ( | MenuPopup * | popup | ) |
Sets the submenu popup (for submenu-type items).
| popup | The submenu popup. |
Definition at line 34 of file menuitem.cpp.
| void fcn::MenuItem::setText | ( | std::string const & | text | ) |
Text API aliases for compatibility.
Definition at line 47 of file menuitem.cpp.
References fcn::Button::setCaption().
| void fcn::MenuItem::setType | ( | Type | type | ) |
Sets the menu item type.
| type | The type of menu item. |
Definition at line 24 of file menuitem.cpp.
References mType.
|
protected |
Checked state.
Definition at line 332 of file menuitem.hpp.
Referenced by draw(), isChecked(), and setChecked().
|
protected |
Cached column layout for rendering.
Definition at line 343 of file menuitem.hpp.
Referenced by draw(), and layoutColumns().
|
protected |
Enabled state.
Definition at line 338 of file menuitem.hpp.
Referenced by draw(), isEnabled(), and setEnabled().
|
protected |
|
protected |
Optional icon glyph (emoji or glyph string) and font to render it.
Definition at line 323 of file menuitem.hpp.
Referenced by draw(), getIconGlyph(), measure(), and setIconGlyph().
|
protected |
Font used to render mIconGlyph when set.
Definition at line 327 of file menuitem.hpp.
Referenced by draw(), getIconGlyphFont(), measure(), setIconGlyph(), and setIconGlyphFont().
|
protected |
Shortcut text.
Definition at line 313 of file menuitem.hpp.
Referenced by draw(), getShortcut(), measure(), and setShortcut().
|
protected |
Submenu popup (for submenu items).
Definition at line 308 of file menuitem.hpp.
Referenced by getSubmenu(), and setSubmenu().
|
protected |
Type of menu item.
Definition at line 303 of file menuitem.hpp.
Referenced by draw(), getType(), measure(), setSubmenu(), and setType().