C# Class Flood.GUI.ControlInternal.Text

Displays text. Always sized to contents.
Inheritance: Flood.GUI.Controls.Control
Afficher le fichier Open project: FloodProject/flood Class Usage Examples

Méthodes publiques

Méthode 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 ( Control parent ) : System

Initializes a new instance of the Text class.

Méthodes protégées

Méthode 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.

Method Details

GetCharacterPosition() public méthode

Gets the coordinates of specified character in the text.
public GetCharacterPosition ( int index ) : System.Vector2
index int Character index.
Résultat System.Vector2

GetClosestCharacter() public méthode

Searches for a character closest to given point.
public GetClosestCharacter ( Vector2i p ) : int
p Vector2i Point.
Résultat int

Layout() protected méthode

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
Résultat void

OnScaleChanged() protected méthode

Handler invoked when control's scale changes.
protected OnScaleChanged ( ) : void
Résultat void

Render() protected méthode

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
Résultat void

SizeToContents() public méthode

Sizes the control to its contents.
public SizeToContents ( ) : void
Résultat void

Text() public méthode

Initializes a new instance of the Text class.
public Text ( Control parent ) : System
parent Flood.GUI.Controls.Control Parent control.
Résultat System