C# Class Flood.GUI.Controls.Label

Static text label.
Inheritance: 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.

Label ( Control parent ) : System

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

Méthodes protégées

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

Method Details

GetCharacterPosition() public méthode

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

GetClosestCharacter() protected méthode

Returns index of the character closest to specified point (in canvas coordinates).
protected GetClosestCharacter ( int x, int y ) : int
x int
y int
Résultat int

Label() public méthode

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

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

MakeColorBright() public méthode

public MakeColorBright ( ) : void
Résultat void

MakeColorDark() public méthode

public MakeColorDark ( ) : void
Résultat void

MakeColorHighlight() public méthode

public MakeColorHighlight ( ) : void
Résultat void

MakeColorNormal() public méthode

public MakeColorNormal ( ) : void
Résultat void

OnTextChanged() protected méthode

Handler for text changed event.
protected OnTextChanged ( ) : 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

SetText() public méthode

Sets the label text.
public SetText ( String str, bool doEvents = true ) : void
str String Text to set.
doEvents bool Determines whether to invoke "text changed" event.
Résultat void

SetTextPosition() protected méthode

Sets the position of the internal text control.
protected SetTextPosition ( int x, int y ) : void
x int
y int
Résultat void

SizeToContents() public méthode

public SizeToContents ( ) : void
Résultat void