TextComponent
A gui element which renders a string in a single line
Types
Link copied to clipboard
enum TextAlignment
Functions
Link copied to clipboard
open fun <T> foldChildren(initial: T, @NotNull visitor: @NotNull BiFunction<@NotNull GuiComponent, T, T>): T
Walk over the direct children of this element.
Link copied to clipboard
fun <T> foldRecursive(initial: T, @NotNull visitor: @NotNull BiFunction<@NotNull GuiComponent, T, T>): T
Walk the scene tree of this gui element, including children of children.
Link copied to clipboard
open fun keyboardEvent(@NotNull event: @NotNull KeyboardEvent, @NotNull context: @NotNull GuiImmediateContext): Boolean
Called by the parent renderer.
Link copied to clipboard
open fun mouseEvent(@NotNull mouseEvent: @NotNull MouseEvent, @NotNull context: @NotNull GuiImmediateContext): Boolean
Called by the parent renderer.
Link copied to clipboard
This method is called by the gui context when an element gains focus.
Link copied to clipboard
This method is called by the gui context when an element loses focus.
Link copied to clipboard
Called by the parent renderer.
Link copied to clipboard
Call this method to request focus in the current gui context.
Link copied to clipboard