Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWWindowSizeCallback

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

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

Type


void (*invoke) (
    GLFWwindow *window,
    int width,
    int height
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static GLFWWindowSizeCallback

Returns:

the new GLFWWindowSizeCallback
create
(long functionPointer)

Creates a GLFWWindowSizeCallback instance from the specified function pointer.

public static GLFWWindowSizeCallback
create(GLFWWindowSizeCallbackI instance)

Creates a GLFWWindowSizeCallback instance that delegates to the specified GLFWWindowSizeCallbackI instance.

public static GLFWWindowSizeCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWWindowSizeCallback
set(long window)

See SetWindowSizeCallback.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWWindowSizeCallbackback to summary
protected GLFWWindowSizeCallback()
GLFWWindowSizeCallbackback to summary
pack-priv GLFWWindowSizeCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWWindowSizeCallback create(long functionPointer)

Creates a GLFWWindowSizeCallback instance from the specified function pointer.

Returns:GLFWWindowSizeCallback

the new GLFWWindowSizeCallback

createback to summary
public static GLFWWindowSizeCallback create(GLFWWindowSizeCallbackI instance)

Creates a GLFWWindowSizeCallback instance that delegates to the specified GLFWWindowSizeCallbackI instance.

createSafeback to summary
public static GLFWWindowSizeCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

See SetWindowSizeCallback.

org.lwjgl.glfw back to summary

private final Class GLFWWindowSizeCallback.Container

extends GLFWWindowSizeCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWWindowSizeCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the window that was resized
window
,
int
the new width, in screen coordinates, of the window
width
,
int
the new height, in screen coordinates, of the window
height
)

Implements org.lwjgl.glfw.GLFWWindowSizeCallbackI.invoke.

Will be called when the specified window is resized.
Inherited from org.lwjgl.glfw.GLFWWindowSizeCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWWindowSizeCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long window, int width, int height)

Implements org.lwjgl.glfw.GLFWWindowSizeCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWWindowSizeCallbackI.invoke.

Will be called when the specified window is resized.

Parameters
window:long

the window that was resized

width:int

the new width, in screen coordinates, of the window

height:int

the new height, in screen coordinates, of the window

Annotations
@Override