Method | Description | |
---|---|---|
Label ( string text ) : System | ||
Label ( string text, BitmapFont font ) : System | ||
Label ( string text, BitmapFont font, Color fontColor ) : System | ||
Label ( string text, |
||
Label ( string text, Skin skin, string styleName = null ) : System | ||
draw ( Graphics graphics, float parentAlpha ) : void | ||
getStyle ( ) : |
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 ) : |
alignment Aligns all the text within the label (default left center) and each line of text horizontally (default left)
|
|
setAlignment ( Align labelAlign, Align lineAlign ) : |
labelAlign Aligns all the text within the label (default left center). lineAlign Aligns each line of text horizontally (default left).
|
|
setBackground ( IDrawable background ) : |
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 ) : |
||
setFontScale ( float fontScale ) : |
||
setFontScale ( float fontScaleX, float fontScaleY ) : void | ||
setStyle ( |
||
setText ( string text ) : |
||
setWrap ( bool shouldWrap ) : void |
should the text be wrapped?
|
Method | Description | |
---|---|---|
computePrefSize ( ) : void |
public Label ( string text, BitmapFont font ) : System | ||
text | string | |
font | BitmapFont | |
return | System |
public Label ( string text, BitmapFont font, Color fontColor ) : System | ||
text | string | |
font | BitmapFont | |
fontColor | Color | |
return | System |
public Label ( string text, |
||
text | string | |
style | ||
return | System |
public Label ( string text, Skin skin, string styleName = null ) : System | ||
text | string | |
skin | Skin | |
styleName | string | |
return | System |
public draw ( Graphics graphics, float parentAlpha ) : void | ||
graphics | Graphics | |
parentAlpha | float | |
return | void |
public setAlignment ( Align alignment ) : |
||
alignment | Align | Alignment. |
return |
public setAlignment ( Align labelAlign, Align lineAlign ) : |
||
labelAlign | Align | Label align. |
lineAlign | Align | Line align. |
return |
public setBackground ( IDrawable background ) : |
||
background | IDrawable | Background. |
return |
public setEllipsis ( String ellipsis ) : void | ||
ellipsis | String | Ellipsis. |
return | void |
public setEllipsis ( bool ellipsis ) : void | ||
ellipsis | bool | Ellipsis. |
return | void |
public setFontScale ( float fontScale ) : |
||
fontScale | float | |
return |
public setFontScale ( float fontScaleX, float fontScaleY ) : void | ||
fontScaleX | float | |
fontScaleY | float | |
return | void |
public setWrap ( bool shouldWrap ) : void | ||
shouldWrap | bool | If set to |
return | void |