MoulConfig
Toggle table of contents
9999.9999.9999+16fcc03
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
MoulConfig
common
/
io.github.notenoughupdates.moulconfig.gui.component
/
TextComponent
Text
Component
open
class
TextComponent
:
GuiComponent
(
source
)
A gui element which renders a string in a single line
Members
Constructors
Text
Component
Link copied to clipboard
constructor
(
string
:
StructuredText
,
width
:
Int
,
alignment
:
TextComponent.TextAlignment
)
constructor
(
string
:
StructuredText
,
width
:
Int
)
constructor
(
string
:
StructuredText
)
constructor
(
string
:
String
)
Types
Text
Alignment
Link copied to clipboard
enum
TextAlignment
Functions
get
Height
Link copied to clipboard
open
fun
getHeight
(
)
:
Int
Get the requested y size for this element.
get
Width
Link copied to clipboard
open
fun
getWidth
(
)
:
Int
Get the requested x size for this element.
render
Link copied to clipboard
open
fun
render
(
context
:
GuiImmediateContext
)
Called by the parent renderer.
split
Link copied to clipboard
open
fun
split
(
text
:
StructuredText
,
width
:
Int
)
:
List
<
StructuredText
>