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