This constructor is an implementation detail. Do not use this.
Disposes the object, allowing it to clean up all of its memory. You need to call this for every object that you don't use anymore and hasn't already been disposed.
Converts the component into a generic component suitable for using with a layout.
Sets the centered text. If the current mode is split, it is switched to centered mode.
Sets the left text. If the current mode is centered, it is switched to split mode, with the right text being empty.
Sets the right text. If the current mode is centered, it is switched to split mode, with the left text being empty.
Calculates the component's state.
Encodes the component's state information as JSON.
Allows for scoped usage of the object. The object is guaranteed to get disposed once this function returns. You are free to dispose the object early yourself anywhere within the scope. The scope's return value gets carried to the outside of this function.
Creates a new Text Component.
Generated using TypeDoc
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.