Property | Type | Description | |
---|---|---|---|
Alpha | float | ||
BorderColor | Color | ||
BorderThickness | int | ||
FillColor | Color | ||
Position | Vector2 | ||
Size | Vector2 | ||
Text | string | ||
TextColor | Color |
Method | Description | |
---|---|---|
Button ( string text ) : System |
Creates a new Button.
|
|
Draw ( |
Draws the button
|
|
HandleTap ( Vector2 tap ) : bool |
Passes a tap location to the button for handling.
|
Method | Description | |
---|---|---|
OnTapped ( ) : void |
Invokes the Tapped event and allows subclasses to perform actions when tapped.
|
public Button ( string text ) : System | ||
text | string | The text to display in the button. |
return | System |
public Draw ( |
||
screen | The screen drawing the button | |
return | void |
public HandleTap ( Vector2 tap ) : bool | ||
tap | Vector2 | The location of the tap. |
return | bool |