C# 클래스 Flood.GUI.Controls.Label

Static text label.
상속: Control
파일 보기 프로젝트 열기: FloodProject/flood 1 사용 예제들

공개 메소드들

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