C# 클래스 Flood.GUI.Controls.Menu

Popup menu.
상속: Flood.GUI.Controls.ScrollControl
파일 보기 프로젝트 열기: FloodProject/flood 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AddDivider ( ) : void

Adds a divider menu item.

AddItem ( String text ) : MenuItem

Adds a new menu item.

AddItem ( String text, String iconName, String accelerator = "" ) : MenuItem

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 ( Control parent ) : System

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 ( MenuItem item ) : void

Add item handler.

OnHoverItem ( Control control ) : void

Mouse hover handler.

Render ( Skins skin ) : void

Renders the control using specified skin.

RenderUnder ( Skins skin ) : void

Renders under the actual control (shadows etc).

메소드 상세

AddDivider() 공개 메소드

Adds a divider menu item.
public AddDivider ( ) : void
리턴 void

AddItem() 공개 메소드

Adds a new menu item.
public AddItem ( String text ) : MenuItem
text String Item text.
리턴 MenuItem

AddItem() 공개 메소드

Adds a new menu item.
public AddItem ( String text, String iconName, String accelerator = "" ) : MenuItem
text String Item text.
iconName String Icon texture name.
accelerator String Accelerator for this item.
리턴 MenuItem

Close() 공개 메소드

Closes the current menu.
public Close ( ) : void
리턴 void

CloseAll() 공개 메소드

Closes all submenus.
public CloseAll ( ) : void
리턴 void

CloseMenus() 공개 메소드

Closes all submenus and the current menu.
public CloseMenus ( ) : void
리턴 void

IsMenuOpen() 공개 메소드

Indicates whether any (sub)menu is open.
public IsMenuOpen ( ) : bool
리턴 bool

Layout() 보호된 메소드

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

Menu() 공개 메소드

Initializes a new instance of the Menu class.
public Menu ( Control parent ) : System
parent Control Parent control.
리턴 System

OnAddItem() 보호된 메소드

Add item handler.
protected OnAddItem ( MenuItem item ) : void
item MenuItem Item added.
리턴 void

OnHoverItem() 보호된 메소드

Mouse hover handler.
protected OnHoverItem ( Control control ) : void
control Control Event source.
리턴 void

Open() 공개 메소드

Opens the menu.
public Open ( Pos pos ) : void
pos Pos Unused.
리턴 void

Render() 보호된 메소드

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

RenderUnder() 보호된 메소드

Renders under the actual control (shadows etc).
protected RenderUnder ( Skins skin ) : void
skin Skins Skin to use.
리턴 void