Text

class Text

Constructors

Link copied to clipboard
fun Text(string: String, x: Float = 0.0f, y: Float = 0.0f)
Link copied to clipboard
fun Text(string: String, config: NativeObject)

Functions

Link copied to clipboard
fun draw(x: Float? = null, y: Float? = null): Text
Link copied to clipboard
fun exceedsMaxLines(): Boolean
Link copied to clipboard
fun getAlign(): DisplayHandler.Align
Link copied to clipboard
fun getColor(): Long
Link copied to clipboard
fun getFormatted(): Boolean
Link copied to clipboard
fun getHeight(): Float
Link copied to clipboard
fun getLines(): List<String>
Link copied to clipboard
fun getMaxLines(): Int
Link copied to clipboard
fun getMaxWidth(): Int
Link copied to clipboard
fun getScale(): Float
Link copied to clipboard
fun getShadow(): Boolean
Link copied to clipboard
fun getString(): String
Link copied to clipboard
fun getWidth(): Float

Gets the width of the text This is automatically updated when the text is drawn.

Link copied to clipboard
fun getX(): Float
Link copied to clipboard
fun getY(): Float
Link copied to clipboard
fun setAlign(align: Any): Text
Link copied to clipboard
fun setColor(color: Long): Text
Link copied to clipboard
fun setFormatted(formatted: Boolean): Text
Link copied to clipboard
fun setMaxLines(maxLines: Int): Text
Link copied to clipboard
fun setMaxWidth(maxWidth: Int): Text

Sets the maximum width of the text, splitting it into multiple lines if necessary.

Link copied to clipboard
fun setScale(scale: Float): Text
Link copied to clipboard
fun setShadow(shadow: Boolean): Text
Link copied to clipboard
fun setString(string: String): Text
Link copied to clipboard
fun setX(x: Float): Text
Link copied to clipboard
fun setY(y: Float): Text
Link copied to clipboard
open override fun toString(): String

Sources

Link copied to clipboard