Свойство | Тип | Описание |
---|
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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. |
Результат |
public AddItem ( String text, String iconName, String accelerator = "" ) : |
||
text | String | Item text. |
iconName | String | Icon texture name. |
accelerator | String | Accelerator for this item. |
Результат |
protected Layout ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
Результат | void |
public Menu ( |
||
parent | Parent control. | |
Результат | System |
protected OnAddItem ( |
||
item | Item added. | |
Результат | void |
protected OnHoverItem ( |
||
control | Event source. | |
Результат | void |
protected Render ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
Результат | void |
protected RenderUnder ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
Результат | void |