Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextComponentRefMut

The Text Component simply visualizes any given text. This can either be a single centered text, or split up into a left and right text, which is suitable for a situation where you have a label and a value.

Hierarchy

Index

Constructors

constructor

Properties

ptr

ptr: number

Methods

setCenter

  • setCenter(text: string): void
  • Sets the centered text. If the current mode is split, it is switched to centered mode.

    Parameters

    • text: string

    Returns void

setLeft

  • setLeft(text: string): void
  • Sets the left text. If the current mode is centered, it is switched to split mode, with the right text being empty.

    Parameters

    • text: string

    Returns void

setRight

  • setRight(text: string): void
  • Sets the right text. If the current mode is centered, it is switched to split mode, with the left text being empty.

    Parameters

    • text: string

    Returns void

state

stateAsJson

Generated using TypeDoc