All Bundles

TextSprite

Rendered TTF text

Derived from: Sprite

Operations

IsOk

Initialization status flag

method : public : IsOk() ~ Bool
Return
TypeDescription
Booltrue if initialized, false otherwise

Render

Renders an image

method : public : Render(x:Int, y:Int) ~ Nil
Parameters
NameTypeDescription
xIntx-position
yInty-position

RenderedText

Renders the set text

method : public : RenderedText(text:String) ~ Nil
Parameters
NameTypeDescription
textStringtext to render

Renders the set text

method : public : RenderedText(text:String, color:Color) ~ Nil
Parameters
NameTypeDescription
textStringtext to render
colorColorcolor of text

SetColor

Sets the text color

method : public : SetColor(color:Color) ~ Nil
Parameters
NameTypeDescription
colorColortext color

SetFont

Sets the text font

method : public : SetFont(font:Font) ~ Nil
Parameters
NameTypeDescription
fontFontTTF