@Environment(value=CLIENT) public interface ParentElement extends Element
Modifier and Type | Method and Description |
---|---|
default boolean |
changeFocus(boolean lookForwards) |
default boolean |
charTyped(char chr,
int keyCode) |
List<? extends Element> |
children() |
default void |
focusOn(Element element) |
Element |
getFocused() |
default Optional<Element> |
hoveredElement(double mouseX,
double mouseY) |
boolean |
isDragging() |
default boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
default boolean |
keyReleased(int keyCode,
int scanCode,
int modifiers) |
default boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
default boolean |
mouseDragged(double mouseX,
double mouseY,
int button,
double deltaX,
double deltaY) |
default boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
default boolean |
mouseScrolled(double mouseX,
double mouseY,
double amount) |
void |
setDragging(boolean dragging) |
void |
setFocused(Element focused) |
default void |
setInitialFocus(Element element) |
isMouseOver, mouseMoved
default boolean mouseClicked(double mouseX, double mouseY, int button)
mouseClicked
in interface Element
default boolean mouseReleased(double mouseX, double mouseY, int button)
mouseReleased
in interface Element
default boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
mouseDragged
in interface Element
boolean isDragging()
void setDragging(boolean dragging)
default boolean mouseScrolled(double mouseX, double mouseY, double amount)
mouseScrolled
in interface Element
default boolean keyPressed(int keyCode, int scanCode, int modifiers)
keyPressed
in interface Element
default boolean keyReleased(int keyCode, int scanCode, int modifiers)
keyReleased
in interface Element
default boolean charTyped(char chr, int keyCode)
default boolean changeFocus(boolean lookForwards)
changeFocus
in interface Element