C# 클래스 Flood.GUI.ControlInternal.Text

Displays text. Always sized to contents.
상속: Flood.GUI.Controls.Control
파일 보기 프로젝트 열기: FloodProject/flood 1 사용 예제들

공개 메소드들

메소드 설명
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