C# Class Flood.GUI.ControlInternal.Text

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

Public Methods

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

Initializes a new instance of the Text class.

Protected Methods

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.

Method Details

GetCharacterPosition() public method

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

GetClosestCharacter() public method

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

Layout() protected method

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

OnScaleChanged() protected method

Handler invoked when control's scale changes.
protected OnScaleChanged ( ) : void
return void

Render() protected method

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

SizeToContents() public method

Sizes the control to its contents.
public SizeToContents ( ) : void
return void

Text() public method

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