Свойство | Type | Description | |
---|---|---|---|
Alpha | float | ||
BorderColor | Color | ||
BorderThickness | int | ||
FillColor | Color | ||
Position | Vector2 | ||
Size | Vector2 | ||
Text | string | ||
TextColor | Color |
Méthode | 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.
|
Méthode | 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. |
Résultat | System |
public Draw ( |
||
screen | The screen drawing the button | |
Résultat | void |
public HandleTap ( Vector2 tap ) : bool | ||
tap | Vector2 | The location of the tap. |
Résultat | bool |