C# Class Flood.GUI.Controls.MenuItem

Menu item.
Inheritance: Button
Datei anzeigen Open project: FloodProject/flood Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

Closes the menu.
public CloseMenu ( ) : void
return void

Layout() protected method

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

MenuItem() public method

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

OnClicked() protected method

Internal OnPressed implementation.
protected OnClicked ( ) : void
return void

OpenMenu() public method

Opens the menu.
public OpenMenu ( ) : void
return void

Render() protected method

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

SetAccelerator() public method

public SetAccelerator ( String acc ) : void
acc String
return void

SetAction() public method

public SetAction ( GwenEventHandler handler ) : MenuItem
handler GwenEventHandler
return MenuItem

SizeToContents() public method

public SizeToContents ( ) : void
return void

ToggleMenu() public method

Toggles the menu open state.
public ToggleMenu ( ) : void
return void