C# Класс Flood.GUI.ControlInternal.Text

Displays text. Always sized to contents.
Наследование: Flood.GUI.Controls.Control
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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

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

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

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

Searches for a character closest to given point.
public GetClosestCharacter ( Vector2i p ) : int
p Vector2i Point.
Результат int

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

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

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

Handler invoked when control's scale changes.
protected OnScaleChanged ( ) : void
Результат void

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

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

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

Sizes the control to its contents.
public SizeToContents ( ) : void
Результат void

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

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