Метод | Описание | |
---|---|---|
GetCharacterPosition ( int index ) : System.Vector2 |
Gets the coordinates of specified character.
|
|
Label ( |
Initializes a new instance of the Label class.
|
|
MakeColorBright ( ) : void | ||
MakeColorDark ( ) : void | ||
MakeColorHighlight ( ) : void | ||
MakeColorNormal ( ) : void | ||
SetText ( String str, bool doEvents = true ) : void |
Sets the label text.
|
|
SizeToContents ( ) : void |
Метод | Описание | |
---|---|---|
GetClosestCharacter ( int x, int y ) : int |
Returns index of the character closest to specified point (in canvas coordinates).
|
|
Layout ( Skins skin ) : void |
Lays out the control's interior according to alignment, padding, dock etc.
|
|
OnTextChanged ( ) : void |
Handler for text changed event.
|
|
Render ( Skins skin ) : void |
Renders the control using specified skin.
|
|
SetTextPosition ( int x, int y ) : void |
Sets the position of the internal text control.
|
public GetCharacterPosition ( int index ) : System.Vector2 | ||
index | int | Character index. |
Результат | System.Vector2 |
protected GetClosestCharacter ( int x, int y ) : int | ||
x | int | |
y | int | |
Результат | int |
public Label ( |
||
parent | Parent control. | |
Результат | System |
protected Layout ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
Результат | void |
protected Render ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
Результат | void |
public SetText ( String str, bool doEvents = true ) : void | ||
str | String | Text to set. |
doEvents | bool | Determines whether to invoke "text changed" event. |
Результат | void |
protected SetTextPosition ( int x, int y ) : void | ||
x | int | |
y | int | |
Результат | void |