C# Класс Flood.GUI.Controls.Label

Static text label.
Наследование: Control
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Описание методов

GetCharacterPosition() публичный Метод

Gets the coordinates of specified character.
public GetCharacterPosition ( int index ) : System.Vector2
index int Character index.
Результат System.Vector2

GetClosestCharacter() защищенный Метод

Returns index of the character closest to specified point (in canvas coordinates).
protected GetClosestCharacter ( int x, int y ) : int
x int
y int
Результат int

Label() публичный Метод

Initializes a new instance of the Label class.
public Label ( Control parent ) : System
parent Control Parent control.
Результат System

Layout() защищенный Метод

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
Результат void

MakeColorBright() публичный Метод

public MakeColorBright ( ) : void
Результат void

MakeColorDark() публичный Метод

public MakeColorDark ( ) : void
Результат void

MakeColorHighlight() публичный Метод

public MakeColorHighlight ( ) : void
Результат void

MakeColorNormal() публичный Метод

public MakeColorNormal ( ) : void
Результат void

OnTextChanged() защищенный Метод

Handler for text changed event.
protected OnTextChanged ( ) : void
Результат void

Render() защищенный Метод

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
Результат void

SetText() публичный Метод

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.
Результат void

SetTextPosition() защищенный Метод

Sets the position of the internal text control.
protected SetTextPosition ( int x, int y ) : void
x int
y int
Результат void

SizeToContents() публичный Метод

public SizeToContents ( ) : void
Результат void