ColorSelectComponent
Constructors
Link copied to clipboard
public void ColorSelectComponent(int x, int y, String initialColour, Consumer<String> colourChangedCallback, Runnable closeCallback)
public void ColorSelectComponent(int x, int y, String initialColour, Consumer<String> colourChangedCallback, Runnable closeCallback, boolean opacitySlider, boolean valueSlider)
Functions
Link copied to clipboard
public T foldChildren<T>(T initial, @NotNull() @NotNull() BiFunction<@NotNull() GuiComponent, T, T> visitor)
Walk over the direct children of this element.
Link copied to clipboard
public final T foldRecursive<T>(T initial, @NotNull() @NotNull() BiFunction<@NotNull() GuiComponent, T, T> visitor)
Walk the scene tree of this gui element, including children of children.
Link copied to clipboard
public boolean keyboardEvent(@NotNull() @NotNull() KeyboardEvent event, @NotNull() @NotNull() GuiImmediateContext context)
Called by the parent renderer.
Link copied to clipboard
public boolean mouseEvent(@NotNull() @NotNull() MouseEvent mouseEvent, @NotNull() @NotNull() GuiImmediateContext context)
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
Link copied to clipboard