Options
All
  • Public
  • Public/Protected
  • All
Menu

Text UI element

Hierarchy

Index

Methods

getOwningObject

getParent

  • Return the widget that contains this widget, for example a border that wraps a check box. Returns undefined if this object has no parent.

    Returns Widget

getText

  • getText(): string
  • Return the currently displayed text.

    Returns string

setFontSize

  • setFontSize(size: number): Text
  • Set the font size. The default size is 12.

    Parameters

    • size: number

      The new font size

    Returns Text

setText

  • setText(text: string): Text
  • Set the displayed text. Can include "\n" to indicate new lines.

    Parameters

    • text: string

      The new text

    Returns Text