Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWWindowCloseCallback

extends Callback
implements GLFWWindowCloseCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.glfw.GLFWWindowCloseCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.glfw.GLFWWindowCloseCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the SetWindowCloseCallback method.

Type


void (*invoke) (
    GLFWwindow *window
)
Since
version 2.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
GLFWWindowCloseCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static GLFWWindowCloseCallback

Returns:

the new GLFWWindowCloseCallback
create
(long functionPointer)

Creates a GLFWWindowCloseCallback instance from the specified function pointer.

public static GLFWWindowCloseCallback
create(GLFWWindowCloseCallbackI instance)

Creates a GLFWWindowCloseCallback instance that delegates to the specified GLFWWindowCloseCallbackI instance.

public static GLFWWindowCloseCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWWindowCloseCallback
set(long window)

See SetWindowCloseCallback.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWWindowCloseCallbackback to summary
protected GLFWWindowCloseCallback()
GLFWWindowCloseCallbackback to summary
pack-priv GLFWWindowCloseCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWWindowCloseCallback create(long functionPointer)

Creates a GLFWWindowCloseCallback instance from the specified function pointer.

Returns:GLFWWindowCloseCallback

the new GLFWWindowCloseCallback

createback to summary
public static GLFWWindowCloseCallback create(GLFWWindowCloseCallbackI instance)

Creates a GLFWWindowCloseCallback instance that delegates to the specified GLFWWindowCloseCallbackI instance.

createSafeback to summary
public static GLFWWindowCloseCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
setback to summary
public GLFWWindowCloseCallback set(long window)

See SetWindowCloseCallback.

org.lwjgl.glfw back to summary

private final Class GLFWWindowCloseCallback.Container

extends GLFWWindowCloseCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWWindowCloseCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, GLFWWindowCloseCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the window that the user attempted to close
window
)

Implements org.lwjgl.glfw.GLFWWindowCloseCallbackI.invoke.

Will be called when the user attempts to close the specified window, for example by clicking the close widget in the title bar.
Inherited from org.lwjgl.glfw.GLFWWindowCloseCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWWindowCloseCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, GLFWWindowCloseCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long window)

Implements org.lwjgl.glfw.GLFWWindowCloseCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWWindowCloseCallbackI.invoke.

Will be called when the user attempts to close the specified window, for example by clicking the close widget in the title bar.

Parameters
window:long

the window that the user attempted to close

Annotations
@Override