Package top.untold.frostlumen.core.gui
Class GuiNode<T extends GuiNode<T>>
java.lang.Object
top.untold.frostlumen.core.gui.ParentNode<T>
top.untold.frostlumen.core.gui.GuiNode<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected doubleprotected RGBAprotected ThicknessPositionprotected intprotected RGBAprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected booleanprotected Set<MouseButton> protected booleanprotected ParentNode<?> protected NodeRootprotected doubleprotected doubleprotected intFields inherited from class top.untold.frostlumen.core.gui.ParentNode
children, position, realAngle, realPositionMaxX, realPositionMaxY, realPositionX, realPositionY, realSizeX, realSizeY, self, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddispatchKeyEvent(KeyEvent event) voidvoidvoidvoidvoidvoiddispatchRender(GuiRender render, long delta) voidvoidvoidvoidvoidvoidvoidvoidprotected voiddrawDefaultFrameBackground(GuiRender render) floatgetAngle()doubleintintintintintintintintParentNode<?> doubledoubleintbooleanbooleanprotected voidprotected voidprotected voidonKeyEvent(KeyEvent event) protected voidprotected voidprotected voidprotected voidonMouseMoveEvent(MouseMoveEvent event) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidonWindowMoveEvent(WindowMoveEvent event) protected voidprotected voidoperationPosition(ParentNode<?> parentFrame, int parentRealPositionX, int parentRealPositionY) registerMouseEnterListener(Consumer<MouseMoveEvent> listener) registerMouseLeaveListener(Consumer<MouseMoveEvent> listener) protected abstract voidsetAnchor(double xAnchor, double yAnchor) setAngle(float angle) setBackgroundBlurStrength(double strength) setBackgroundBorderColor(RGBA color) setBackgroundBorderThickness(int backgroundBorderThickness) setBackgroundBottomBorderThickness(int backgroundBottomBorderThickness) setBackgroundColor(RGBA color) setBackgroundCornerRadius(int radius) setBackgroundLeftBorderThickness(int backgroundLeftBorderThickness) setBackgroundLeftBottomCornerRadius(int backgroundLeftBottomCornerRadius) setBackgroundLeftTopCornerRadius(int backgroundLeftTopCornerRadius) setBackgroundRightBorderThickness(int backgroundRightBorderThickness) setBackgroundRightBottomCornerRadius(int backgroundRightBottomCornerRadius) setBackgroundRightTopCornerRadius(int backgroundRightTopCornerRadius) setBackgroundTopBorderThickness(int backgroundTopBorderThickness) setClipChildren(boolean clipChildren) setParent(ParentNode<?> parent) setPosition(ScaleOffset position) setSize(ScaleOffset size) setXAnchor(double xAnchor) setYAnchor(double yAnchor) setZIndex(int zIndex) unregisterMouseEnterListener(Consumer<MouseMoveEvent> listener) unregisterMouseLeaveListener(Consumer<MouseMoveEvent> listener) Methods inherited from class top.untold.frostlumen.core.gui.ParentNode
addChildren, forwardFor, getChildren, getPosition, getRealPositionMaxX, getRealPositionMaxY, getRealPositionX, getRealPositionY, getRealSizeX, getRealSizeY, getSize, registerAfterRenderListener, registerBeforeRenderListener, removeChild, removeChildren, reverseFor, sortChildren, unregisterAfterRenderListener, unregisterBeforeRenderListener
-
Field Details
-
root
-
parent
-
zIndex
protected int zIndex -
backgroundColor
-
backgroundBorderColor
-
backgroundLeftBorderThickness
protected int backgroundLeftBorderThickness -
backgroundRightBorderThickness
protected int backgroundRightBorderThickness -
backgroundTopBorderThickness
protected int backgroundTopBorderThickness -
backgroundBottomBorderThickness
protected int backgroundBottomBorderThickness -
backgroundLeftTopCornerRadius
protected int backgroundLeftTopCornerRadius -
backgroundRightTopCornerRadius
protected int backgroundRightTopCornerRadius -
backgroundLeftBottomCornerRadius
protected int backgroundLeftBottomCornerRadius -
backgroundRightBottomCornerRadius
protected int backgroundRightBottomCornerRadius -
backgroundBorderThicknessPosition
-
clipChildren
protected boolean clipChildren -
xAnchor
protected double xAnchor -
yAnchor
protected double yAnchor -
angle
protected float angle -
currentMouseClickButtons
-
mouseInNode
protected boolean mouseInNode -
backgroundBlurStrength
protected double backgroundBlurStrength
-
-
Constructor Details
-
GuiNode
-
-
Method Details
-
registerMouseEnterListener
-
unregisterMouseEnterListener
-
registerMouseLeaveListener
-
unregisterMouseLeaveListener
-
drawDefaultFrameBackground
-
operationPosition
protected void operationPosition() -
operationPosition
protected void operationPosition(ParentNode<?> parentFrame, int parentRealPositionX, int parentRealPositionY) -
letChildrenOperationPosition
protected void letChildrenOperationPosition() -
dispatchRender
- Overrides:
dispatchRenderin classParentNode<T extends GuiNode<T>>
-
dispatchKeyEvent
- Overrides:
dispatchKeyEventin classParentNode<T extends GuiNode<T>>
-
dispatchMouseButtonEvent
- Overrides:
dispatchMouseButtonEventin classParentNode<T extends GuiNode<T>>
-
dispatchMouseMoveEvent
- Overrides:
dispatchMouseMoveEventin classParentNode<T extends GuiNode<T>>
-
dispatchMouseScrollEvent
- Overrides:
dispatchMouseScrollEventin classParentNode<T extends GuiNode<T>>
-
dispatchUserInputTextEvent
- Overrides:
dispatchUserInputTextEventin classParentNode<T extends GuiNode<T>>
-
dispatchUserDropFilesEvent
- Overrides:
dispatchUserDropFilesEventin classParentNode<T extends GuiNode<T>>
-
dispatchMouseEnterWindowEvent
- Overrides:
dispatchMouseEnterWindowEventin classParentNode<T extends GuiNode<T>>
-
dispatchMouseLeaveWindowEvent
- Overrides:
dispatchMouseLeaveWindowEventin classParentNode<T extends GuiNode<T>>
-
dispatchFrameBufferSizeChangeEvent
- Overrides:
dispatchFrameBufferSizeChangeEventin classParentNode<T extends GuiNode<T>>
-
dispatchUserRequestWindowCloseEvent
- Overrides:
dispatchUserRequestWindowCloseEventin classParentNode<T extends GuiNode<T>>
-
dispatchWindowCloseEvent
- Overrides:
dispatchWindowCloseEventin classParentNode<T extends GuiNode<T>>
-
dispatchWindowFocusChangeEvent
- Overrides:
dispatchWindowFocusChangeEventin classParentNode<T extends GuiNode<T>>
-
dispatchWindowMinimizeEvent
- Overrides:
dispatchWindowMinimizeEventin classParentNode<T extends GuiNode<T>>
-
dispatchWindowMaximizeEvent
- Overrides:
dispatchWindowMaximizeEventin classParentNode<T extends GuiNode<T>>
-
dispatchWindowMoveEvent
- Overrides:
dispatchWindowMoveEventin classParentNode<T extends GuiNode<T>>
-
render
-
onKeyEvent
-
onMouseButtonEvent
-
onMouseMoveEvent
-
onMouseEnterWindowEvent
-
onMouseLeaveWindowEvent
-
onMouseScrollEvent
-
onUserInputTextEvent
-
onFrameBufferSizeChangeEvent
-
onUserRequestWindowCloseEvent
-
onWindowCloseEvent
-
onWindowFocusChangeEvent
-
onUserDropFilesEvent
-
onWindowMinimizeEvent
-
onWindowMaximizeEvent
-
onWindowMoveEvent
-
addChild
- Overrides:
addChildin classParentNode<T extends GuiNode<T>>
-
setParent
-
getParent
-
setBackgroundBlurStrength
-
setZIndex
-
setAngle
-
setPosition
-
setSize
-
setBackgroundColor
-
setBackgroundBorderThicknessPosition
-
setXAnchor
-
setYAnchor
-
setAnchor
-
setBackgroundCornerRadius
-
setBackgroundLeftTopCornerRadius
-
setBackgroundRightTopCornerRadius
-
setBackgroundLeftBottomCornerRadius
-
setBackgroundRightBottomCornerRadius
-
setBackgroundLeftBorderThickness
-
setBackgroundRightBorderThickness
-
setBackgroundTopBorderThickness
-
setBackgroundBottomBorderThickness
-
setBackgroundBorderColor
-
setBackgroundBorderThickness
-
setClipChildren
-
isClipChildren
public boolean isClipChildren() -
getZIndex
public int getZIndex() -
getBackgroundBlurStrength
public double getBackgroundBlurStrength() -
getAngle
public float getAngle() -
getBackgroundColor
-
getXAnchor
public double getXAnchor() -
getYAnchor
public double getYAnchor() -
getBackgroundBorderThicknessPosition
-
getBackgroundLeftTopCornerRadius
public int getBackgroundLeftTopCornerRadius() -
getBackgroundRightTopCornerRadius
public int getBackgroundRightTopCornerRadius() -
getBackgroundLeftBottomCornerRadius
public int getBackgroundLeftBottomCornerRadius() -
getBackgroundRightBottomCornerRadius
public int getBackgroundRightBottomCornerRadius() -
getBackgroundLeftBorderThickness
public int getBackgroundLeftBorderThickness() -
getBackgroundRightBorderThickness
public int getBackgroundRightBorderThickness() -
getBackgroundTopBorderThickness
public int getBackgroundTopBorderThickness() -
getBackgroundBottomBorderThickness
public int getBackgroundBottomBorderThickness() -
isMouseInNode
public boolean isMouseInNode() -
getCurrentMouseClickButtons
-