Property | Type | Description |
---|
Method | Description | |
---|---|---|
AddDivider ( ) : void |
Adds a divider menu item.
|
|
AddItem ( String text ) : |
Adds a new menu item.
|
|
AddItem ( String text, String iconName, String accelerator = "" ) : |
Adds a new menu item.
|
|
Close ( ) : void |
Closes the current menu.
|
|
CloseAll ( ) : void |
Closes all submenus.
|
|
CloseMenus ( ) : void |
Closes all submenus and the current menu.
|
|
IsMenuOpen ( ) : bool |
Indicates whether any (sub)menu is open.
|
|
Menu ( |
Initializes a new instance of the Menu class.
|
|
Open ( Pos pos ) : void |
Opens the menu.
|
Method | Description | |
---|---|---|
Layout ( Skins skin ) : void |
Lays out the control's interior according to alignment, padding, dock etc.
|
|
OnAddItem ( |
Add item handler.
|
|
OnHoverItem ( |
Mouse hover handler.
|
|
Render ( Skins skin ) : void |
Renders the control using specified skin.
|
|
RenderUnder ( Skins skin ) : void |
Renders under the actual control (shadows etc).
|
public AddItem ( String text ) : |
||
text | String | Item text. |
return |
public AddItem ( String text, String iconName, String accelerator = "" ) : |
||
text | String | Item text. |
iconName | String | Icon texture name. |
accelerator | String | Accelerator for this item. |
return |
protected Layout ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
return | void |
public Menu ( |
||
parent | Parent control. | |
return | System |
protected OnAddItem ( |
||
item | Item added. | |
return | void |
protected OnHoverItem ( |
||
control | Event source. | |
return | void |
protected Render ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
return | void |
protected RenderUnder ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
return | void |