Class ScreenObject
java.lang.Object
com.iragui.objects.GUIObject
com.iragui.objects.ScreenObject
Light-weight extender for GUIObject to use all of it's utilities.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionScreenObject
(String name, int layer, GUI gui, int x, int y, int sizeX, int sizeY, boolean nearestFilter, boolean rgba, boolean preserveTextureIDOverride) -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendKey
(int key, int action) Handles key input events.void
sendMouseButton
(long window, int button, int action, int mods) Handles mouse button input.void
sendMousePos
(long window, double xPos, double yPos) Handles mouse position updates.void
sendMouseScroll
(long window, double xOffset, double yOffset) Handles mouse scroll input.void
update
(boolean showFrame) Update logic called each frame.Methods inherited from class com.iragui.objects.GUIObject
allowReTexture, destroyObject, focus, getGlPixelInt, getHFlip, getLayer, getLimitX, getLimitY, getMinX, getMinY, getRotation, getScale, getSizeX, getSizeY, getTextureID, getVFlip, getVisible, getWinLimitX, getWinLimitY, getWinMinX, getWinMinY, getX, getY, hide, includesKeyCallback, includesMouseCallback, interactionInVisibleBounds, isDestroyed, isFocused, isNearestFilter, render, resetTextureID, setAll, setAll, setHFlip, setLayer, setLimitX, setLimitY, setMinX, setMinY, setNearestFilter, setPixel, setPreserveTextureIDOverride, setRotation, setScale, setTextureID, setVFlip, setVisible, setWinLimitX, setWinLimitY, setWinMinX, setWinMinY, setX, setY, unfocus, updates
-
Constructor Details
-
ScreenObject
-
-
Method Details
-
update
-
sendKey
-
sendMousePos
public void sendMousePos(long window, double xPos, double yPos) Description copied from class:GUIObject
Handles mouse position updates.- Specified by:
sendMousePos
in classGUIObject
-
sendMouseButton
public void sendMouseButton(long window, int button, int action, int mods) Description copied from class:GUIObject
Handles mouse button input.- Specified by:
sendMouseButton
in classGUIObject
-
sendMouseScroll
public void sendMouseScroll(long window, double xOffset, double yOffset) Description copied from class:GUIObject
Handles mouse scroll input.- Specified by:
sendMouseScroll
in classGUIObject
-