C# 클래스 Nez.UI.Label

상속: Element
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 메소드들

메소드 설명
Label ( string text ) : System
Label ( string text, BitmapFont font ) : System
Label ( string text, BitmapFont font, Color fontColor ) : System
Label ( string text, LabelStyle style ) : System
Label ( string text, Skin skin, string styleName = null ) : System
draw ( Graphics graphics, float parentAlpha ) : void
getStyle ( ) : LabelStyle

Returns the button's style. Modifying the returned style may not have an effect until {@link #setStyle(ButtonStyle)} is called.

getText ( ) : string
invalidate ( ) : void
layout ( ) : void
setAlignment ( Align alignment ) : Label

alignment Aligns all the text within the label (default left center) and each line of text horizontally (default left)

setAlignment ( Align labelAlign, Align lineAlign ) : Label

labelAlign Aligns all the text within the label (default left center). lineAlign Aligns each line of text horizontally (default left).

setBackground ( IDrawable background ) : Label

background may be null to clear the background.

setEllipsis ( String ellipsis ) : void

When non-null the text will be truncated "..." if it does not fit within the width of the label. Wrapping will not occur when ellipsis is enabled. Default is false.

setEllipsis ( bool ellipsis ) : void

When true the text will be truncated "..." if it does not fit within the width of the label. Wrapping will not occur when ellipsis is true. Default is false.

setFontColor ( Color color ) : Label
setFontScale ( float fontScale ) : Label
setFontScale ( float fontScaleX, float fontScaleY ) : void
setStyle ( LabelStyle style ) : Label
setText ( string text ) : Label
setWrap ( bool shouldWrap ) : void

should the text be wrapped?

비공개 메소드들

메소드 설명
computePrefSize ( ) : void

메소드 상세

Label() 공개 메소드

public Label ( string text ) : System
text string
리턴 System

Label() 공개 메소드

public Label ( string text, BitmapFont font ) : System
text string
font BitmapFont
리턴 System

Label() 공개 메소드

public Label ( string text, BitmapFont font, Color fontColor ) : System
text string
font BitmapFont
fontColor Color
리턴 System

Label() 공개 메소드

public Label ( string text, LabelStyle style ) : System
text string
style LabelStyle
리턴 System

Label() 공개 메소드

public Label ( string text, Skin skin, string styleName = null ) : System
text string
skin Skin
styleName string
리턴 System

draw() 공개 메소드

public draw ( Graphics graphics, float parentAlpha ) : void
graphics Graphics
parentAlpha float
리턴 void

getStyle() 공개 메소드

Returns the button's style. Modifying the returned style may not have an effect until {@link #setStyle(ButtonStyle)} is called.
public getStyle ( ) : LabelStyle
리턴 LabelStyle

getText() 공개 메소드

public getText ( ) : string
리턴 string

invalidate() 공개 메소드

public invalidate ( ) : void
리턴 void

layout() 공개 메소드

public layout ( ) : void
리턴 void

setAlignment() 공개 메소드

alignment Aligns all the text within the label (default left center) and each line of text horizontally (default left)
public setAlignment ( Align alignment ) : Label
alignment Align Alignment.
리턴 Label

setAlignment() 공개 메소드

labelAlign Aligns all the text within the label (default left center). lineAlign Aligns each line of text horizontally (default left).
public setAlignment ( Align labelAlign, Align lineAlign ) : Label
labelAlign Align Label align.
lineAlign Align Line align.
리턴 Label

setBackground() 공개 메소드

background may be null to clear the background.
public setBackground ( IDrawable background ) : Label
background IDrawable Background.
리턴 Label

setEllipsis() 공개 메소드

When non-null the text will be truncated "..." if it does not fit within the width of the label. Wrapping will not occur when ellipsis is enabled. Default is false.
public setEllipsis ( String ellipsis ) : void
ellipsis String Ellipsis.
리턴 void

setEllipsis() 공개 메소드

When true the text will be truncated "..." if it does not fit within the width of the label. Wrapping will not occur when ellipsis is true. Default is false.
public setEllipsis ( bool ellipsis ) : void
ellipsis bool Ellipsis.
리턴 void

setFontColor() 공개 메소드

public setFontColor ( Color color ) : Label
color Color
리턴 Label

setFontScale() 공개 메소드

public setFontScale ( float fontScale ) : Label
fontScale float
리턴 Label

setFontScale() 공개 메소드

public setFontScale ( float fontScaleX, float fontScaleY ) : void
fontScaleX float
fontScaleY float
리턴 void

setStyle() 공개 메소드

public setStyle ( LabelStyle style ) : Label
style LabelStyle
리턴 Label

setText() 공개 메소드

public setText ( string text ) : Label
text string
리턴 Label

setWrap() 공개 메소드

should the text be wrapped?
public setWrap ( bool shouldWrap ) : void
shouldWrap bool If set to true should wrap.
리턴 void