Class GLFWCursor

java.lang.Object
com.blackrook.gloop.glfw.GLFWHandle
com.blackrook.gloop.glfw.GLFWCursor

public class GLFWCursor extends GLFWHandle
A GLFW cursor instance.
Author:
Matthew Tropiano
  • Method Details

    • createArrowCursor

      public static GLFWCursor createArrowCursor()
      This must only be called from the main thread.
      Returns:
      the arrow cursor.
    • createIBeamCursor

      public static GLFWCursor createIBeamCursor()
      This must only be called from the main thread.
      Returns:
      the I-Beam (text carat) cursor.
    • createCrosshairCursor

      public static GLFWCursor createCrosshairCursor()
      This must only be called from the main thread.
      Returns:
      the crosshair cursor.
    • createHandCursor

      public static GLFWCursor createHandCursor()
      This must only be called from the main thread.
      Returns:
      the hand cursor.
    • createHorizontalResizeCursor

      public static GLFWCursor createHorizontalResizeCursor()
      This must only be called from the main thread.
      Returns:
      the horizontal resize cursor.
    • createVerticalResizeCursor

      public static GLFWCursor createVerticalResizeCursor()
      This must only be called from the main thread.
      Returns:
      the vertical resize cursor.
    • getHandle

      public long getHandle()
      Specified by:
      getHandle in class GLFWHandle
      Returns:
      this handle's GLFW address handle.
    • isCreated

      public boolean isCreated()
      Specified by:
      isCreated in class GLFWHandle
      Returns:
      true if this handle was allocated, false if not.
    • destroy

      public void destroy()
      Description copied from class: GLFWHandle
      Destroys this handle. Does nothing if already destroyed.
      Specified by:
      destroy in class GLFWHandle