Method | Description | |
---|---|---|
GetCharacterPosition ( int index ) : System.Vector2 |
Gets the coordinates of specified character in the text.
|
|
GetClosestCharacter ( Vector2i p ) : int |
Searches for a character closest to given point.
|
|
SizeToContents ( ) : void |
Sizes the control to its contents.
|
|
Text ( |
Initializes a new instance of the Text class.
|
Method | Description | |
---|---|---|
Layout ( Skins skin ) : void |
Lays out the control's interior according to alignment, padding, dock etc.
|
|
OnScaleChanged ( ) : void |
Handler invoked when control's scale changes.
|
|
Render ( Skins skin ) : void |
Renders the control using specified skin.
|
public GetCharacterPosition ( int index ) : System.Vector2 | ||
index | int | Character index. |
return | System.Vector2 |
public GetClosestCharacter ( Vector2i p ) : int | ||
p | Vector2i | Point. |
return | int |
protected Layout ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
return | void |
protected Render ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
return | void |
public Text ( |
||
parent | Parent control. | |
return | System |