C# Class Flood.GUI.Controls.MenuItem

Menu item.
Inheritance: Button
Afficher le fichier Open project: FloodProject/flood Class Usage Examples

Méthodes publiques

Méthode Description
CloseMenu ( ) : void

Closes the menu.

MenuItem ( Control parent ) : System

Initializes a new instance of the MenuItem class.

OpenMenu ( ) : void

Opens the menu.

SetAccelerator ( String acc ) : void
SetAction ( GwenEventHandler handler ) : MenuItem
SizeToContents ( ) : void
ToggleMenu ( ) : void

Toggles the menu open state.

Méthodes protégées

Méthode Description
Layout ( Skins skin ) : void

Lays out the control's interior according to alignment, padding, dock etc.

OnClicked ( ) : void

Internal OnPressed implementation.

Render ( Skins skin ) : void

Renders the control using specified skin.

Method Details

CloseMenu() public méthode

Closes the menu.
public CloseMenu ( ) : void
Résultat void

Layout() protected méthode

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
Résultat void

MenuItem() public méthode

Initializes a new instance of the MenuItem class.
public MenuItem ( Control parent ) : System
parent Control Parent control.
Résultat System

OnClicked() protected méthode

Internal OnPressed implementation.
protected OnClicked ( ) : void
Résultat void

OpenMenu() public méthode

Opens the menu.
public OpenMenu ( ) : void
Résultat void

Render() protected méthode

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
Résultat void

SetAccelerator() public méthode

public SetAccelerator ( String acc ) : void
acc String
Résultat void

SetAction() public méthode

public SetAction ( GwenEventHandler handler ) : MenuItem
handler GwenEventHandler
Résultat MenuItem

SizeToContents() public méthode

public SizeToContents ( ) : void
Résultat void

ToggleMenu() public méthode

Toggles the menu open state.
public ToggleMenu ( ) : void
Résultat void