GuiElementComponent

Adapts a GuiElement as a GuiComponent that renders on the entire screen. Not applicable to be used in transformed situations.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getHeight(): Int
Get the requested y size for this element.
Link copied to clipboard
open fun getWidth(): Int
Get the requested x size for this element.
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
open fun render(@NotNull context: @NotNull GuiImmediateContext)
Called by the parent renderer.
Link copied to clipboard
open fun setContext(context: GuiContext)