Class GLFWCursor
java.lang.Object
com.blackrook.gloop.glfw.GLFWHandle
com.blackrook.gloop.glfw.GLFWCursor
-
Method Summary
Modifier and TypeMethodDescriptionstatic GLFWCursorThis must only be called from the main thread.static GLFWCursorThis must only be called from the main thread.static GLFWCursorThis must only be called from the main thread.static GLFWCursorThis must only be called from the main thread.static GLFWCursorThis must only be called from the main thread.static GLFWCursorThis must only be called from the main thread.voiddestroy()Destroys this handle.longboolean
-
Method Details
-
createArrowCursor
This must only be called from the main thread.- Returns:
- the arrow cursor.
-
createIBeamCursor
This must only be called from the main thread.- Returns:
- the I-Beam (text carat) cursor.
-
createCrosshairCursor
This must only be called from the main thread.- Returns:
- the crosshair cursor.
-
createHandCursor
This must only be called from the main thread.- Returns:
- the hand cursor.
-
createHorizontalResizeCursor
This must only be called from the main thread.- Returns:
- the horizontal resize cursor.
-
createVerticalResizeCursor
This must only be called from the main thread.- Returns:
- the vertical resize cursor.
-
getHandle
public long getHandle()- Specified by:
getHandlein classGLFWHandle- Returns:
- this handle's GLFW address handle.
-
isCreated
public boolean isCreated()- Specified by:
isCreatedin classGLFWHandle- Returns:
- true if this handle was allocated, false if not.
-
destroy
public void destroy()Description copied from class:GLFWHandleDestroys this handle. Does nothing if already destroyed.- Specified by:
destroyin classGLFWHandle
-