Package org.lwjgl.glfw
Class GLFWScrollCallback
- java.lang.Object
-
- org.lwjgl.system.Callback
-
- org.lwjgl.glfw.GLFWScrollCallback
-
- All Implemented Interfaces:
java.lang.AutoCloseable,GLFWScrollCallbackI,org.lwjgl.system.CallbackI,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public abstract class GLFWScrollCallback extends org.lwjgl.system.Callback implements GLFWScrollCallbackI
Instances of this class may be passed to theSetScrollCallbackmethod.Type
void (*GLFWScrollCallbackI.invoke(long, double, double)) ( GLFWwindow *window, double xoffset, double yoffset )- Since:
- version 3.0
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.glfw.GLFWScrollCallbackI
CIF
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GLFWScrollCallbackcreate(long functionPointer)Creates aGLFWScrollCallbackinstance from the specified function pointer.static GLFWScrollCallbackcreate(GLFWScrollCallbackI instance)Creates aGLFWScrollCallbackinstance that delegates to the specifiedGLFWScrollCallbackIinstance.static GLFWScrollCallbackcreateSafe(long functionPointer)GLFWScrollCallbackset(long window)SeeSetScrollCallback.-
Methods inherited from class org.lwjgl.system.Callback
address, equals, free, free, get, getSafe, hashCode, toString
-
Methods inherited from interface org.lwjgl.glfw.GLFWScrollCallbackI
callback, getCallInterface, invoke
-
-
-
-
Method Detail
-
create
public static GLFWScrollCallback create(long functionPointer)
Creates aGLFWScrollCallbackinstance from the specified function pointer.- Returns:
- the new
GLFWScrollCallback
-
createSafe
@Nullable public static GLFWScrollCallback createSafe(long functionPointer)
-
create
public static GLFWScrollCallback create(GLFWScrollCallbackI instance)
Creates aGLFWScrollCallbackinstance that delegates to the specifiedGLFWScrollCallbackIinstance.
-
set
public GLFWScrollCallback set(long window)
SeeSetScrollCallback.
-
-