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

Button control.
상속: Label
파일 보기 프로젝트 열기: FloodProject/flood 1 사용 예제들

공개 메소드들

메소드 설명
Button ( Control parent ) : System

Control constructor.

Press ( Control control = null ) : void

"Clicks" the button.

SetImage ( ResourceHandle imageHandle, bool center = false ) : void

Sets the button's image.

SetImage ( String textureName, bool center = false ) : void

Sets the button's image.

SizeToContents ( ) : void

Sizes to contents.

Toggle ( ) : void

Toggles the button.

UpdateColors ( ) : void

Updates control colors.

보호된 메소드들

메소드 설명
Layout ( Skins skin ) : void

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

OnAccelerator ( ) : void

Default accelerator handler.

OnClicked ( ) : void

Internal OnPressed implementation.

OnKeySpace ( bool down ) : bool

Handler for Space keyboard event.

OnMouseClickedLeft ( int x, int y, bool down ) : void

Handler invoked on mouse click (left) event.

OnMouseDoubleClickedLeft ( int x, int y ) : void

Handler invoked on mouse double click (left) event.

Render ( Skins skin ) : void

Renders the control using specified skin.

메소드 상세

Button() 공개 메소드

Control constructor.
public Button ( Control parent ) : System
parent Control Parent control.
리턴 System

Layout() 보호된 메소드

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

OnAccelerator() 보호된 메소드

Default accelerator handler.
protected OnAccelerator ( ) : void
리턴 void

OnClicked() 보호된 메소드

Internal OnPressed implementation.
protected OnClicked ( ) : void
리턴 void

OnKeySpace() 보호된 메소드

Handler for Space keyboard event.
protected OnKeySpace ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
리턴 bool

OnMouseClickedLeft() 보호된 메소드

Handler invoked on mouse click (left) event.
protected OnMouseClickedLeft ( int x, int y, bool down ) : void
x int X coordinate.
y int Y coordinate.
down bool If set to true mouse button is down.
리턴 void

OnMouseDoubleClickedLeft() 보호된 메소드

Handler invoked on mouse double click (left) event.
protected OnMouseDoubleClickedLeft ( int x, int y ) : void
x int X coordinate.
y int Y coordinate.
리턴 void

Press() 공개 메소드

"Clicks" the button.
public Press ( Control control = null ) : void
control Control
리턴 void

Render() 보호된 메소드

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

SetImage() 공개 메소드

Sets the button's image.
public SetImage ( ResourceHandle imageHandle, bool center = false ) : void
imageHandle ResourceHandle
center bool Determines whether the image should be centered.
리턴 void

SetImage() 공개 메소드

Sets the button's image.
public SetImage ( String textureName, bool center = false ) : void
textureName String Texture name. Null to remove.
center bool Determines whether the image should be centered.
리턴 void

SizeToContents() 공개 메소드

Sizes to contents.
public SizeToContents ( ) : void
리턴 void

Toggle() 공개 메소드

Toggles the button.
public Toggle ( ) : void
리턴 void

UpdateColors() 공개 메소드

Updates control colors.
public UpdateColors ( ) : void
리턴 void