Class LemonUI::Menus::NativeSubmenuItem
ClassList > LemonUI > Menus > NativeSubmenuItem
Item used for opening submenus.
Inherits the following classes: LemonUI::Menus::NativeItem
Public Properties
| Type | Name |
|---|---|
| property NativeMenu | Menu The menu opened by this item. |
Public Properties inherited from LemonUI::Menus::NativeItem
See LemonUI::Menus::NativeItem
| Type | Name |
|---|---|
| property string?? | AltTitle The alternative title of the item shown on the right. |
| property Font | AltTitleFont The font of alternative title item shown on the right. |
| property ColorSet | Colors The different colors that change dynamically when the item is used. |
| property string?? | Description The description of the item. |
| property bool? | Enabled If this item can be used or not. |
| property bool | IsHovered If this item is being hovered. |
| property I2Dimensional | LeftBadge The Left badge of the Item. |
| property BadgeSet | LeftBadgeSet The Left badge set of the Item. |
| property NativePanel | Panel The Panel associated to this NativeItem . |
| property I2Dimensional | RightBadge The Right badge of the Item. |
| property BadgeSet | RightBadgeSet The Right badge set of the Item. |
| property object | Tag Object that contains data about this Item. |
| property string?? | Title The title of the item. |
| property Font | TitleFont The font of title item. |
| property bool | UseCustomBackground If a custom colored background should be used. |
Public Functions
| Type | Name |
|---|---|
| virtual override void | Draw () Draws the item. |
__ |
| | NativeSubmenuItem (NativeMenu menu, NativeMenu parent)
Creates a new Item that opens a Submenu. |
| | NativeSubmenuItem (NativeMenu menu, NativeMenu parent, string endLabel)
Creates a new Item that opens a Submenu. |
Public Functions inherited from LemonUI::Menus::NativeItem
See LemonUI::Menus::NativeItem
| Type | Name |
|---|---|
| virtual void | Draw () Draws the item. |
| NativeItem (string title) Creates a new NativeItem . |
|
| NativeItem (string title, string description) Creates a new NativeItem . |
|
| NativeItem (string title, string description, string altTitle) Creates a new NativeItem . |
|
| virtual void | Recalculate (PointF pos, SizeF size, bool selected) Recalculates the item positions and sizes with the specified values. |
| virtual void | UpdateColors () Updates the colors of the Elements from theColors __ColorSet . |
Public Functions inherited from LemonUI::IDrawable
| Type | Name |
|---|---|
| void | Draw () Draws the item on the screen. |
Protected Functions inherited from LemonUI::Menus::NativeItem
See LemonUI::Menus::NativeItem
| Type | Name |
|---|---|
| void | Recalculate () Recalculates the item with the last known values. |
Public Properties Documentation
property Menu
NativeMenu LemonUI.Menus.NativeSubmenuItem.Menu;
Public Functions Documentation
function Draw
inline virtual override void LemonUI::Menus::NativeSubmenuItem::Draw ()
Implements LemonUI::Menus::NativeItem::Draw
function NativeSubmenuItem [1/2]
Creates a new Item that opens a Submenu.
inline LemonUI::Menus::NativeSubmenuItem::NativeSubmenuItem (
NativeMenu menu,
NativeMenu parent
)
Parameters:
menuThe menu that this item will open.parentThe parent menu where this item will be located.
function NativeSubmenuItem [2/2]
Creates a new Item that opens a Submenu.
inline LemonUI::Menus::NativeSubmenuItem::NativeSubmenuItem (
NativeMenu menu,
NativeMenu parent,
string endLabel
)
Parameters:
menuThe menu that this item will open.parentThe parent menu where this item will be located.endLabelThe alternative title of the item, shown on the right.
The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Menus/NativeSubmenuItem.cs