Method | Description | |
---|---|---|
Button ( |
Control constructor.
|
|
Press ( |
"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.
|
Method | Description | |
---|---|---|
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.
|
public Button ( |
||
parent | Parent control. | |
return | System |
protected Layout ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
return | void |
protected OnKeySpace ( bool down ) : bool | ||
down | bool | Indicates whether the key was pressed or released. |
return | bool |
protected OnMouseClickedLeft ( int x, int y, bool down ) : void | ||
x | int | X coordinate. |
y | int | Y coordinate. |
down | bool | If set to |
return | void |
protected OnMouseDoubleClickedLeft ( int x, int y ) : void | ||
x | int | X coordinate. |
y | int | Y coordinate. |
return | void |
protected Render ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
return | void |
public SetImage ( ResourceHandle imageHandle, bool center = false ) : void | ||
imageHandle | ResourceHandle | |
center | bool | Determines whether the image should be centered. |
return | void |
public SetImage ( String textureName, bool center = false ) : void | ||
textureName | String | Texture name. Null to remove. |
center | bool | Determines whether the image should be centered. |
return | void |