Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWWindowPosCallback

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

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

Type


void (*invoke) (
    GLFWwindow *window,
    int xpos,
    int ypos
)
Since
version 3.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static GLFWWindowPosCallback

Returns:

the new GLFWWindowPosCallback
create
(long functionPointer)

Creates a GLFWWindowPosCallback instance from the specified function pointer.

public static GLFWWindowPosCallback
create(GLFWWindowPosCallbackI instance)

Creates a GLFWWindowPosCallback instance that delegates to the specified GLFWWindowPosCallbackI instance.

public static GLFWWindowPosCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWWindowPosCallback
set(long window)

See SetWindowPosCallback.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWWindowPosCallbackback to summary
protected GLFWWindowPosCallback()
GLFWWindowPosCallbackback to summary
pack-priv GLFWWindowPosCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWWindowPosCallback create(long functionPointer)

Creates a GLFWWindowPosCallback instance from the specified function pointer.

Returns:GLFWWindowPosCallback

the new GLFWWindowPosCallback

createback to summary
public static GLFWWindowPosCallback create(GLFWWindowPosCallbackI instance)

Creates a GLFWWindowPosCallback instance that delegates to the specified GLFWWindowPosCallbackI instance.

createSafeback to summary
public static GLFWWindowPosCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

See SetWindowPosCallback.

org.lwjgl.glfw back to summary

private final Class GLFWWindowPosCallback.Container

extends GLFWWindowPosCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWWindowPosCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the window that was moved
window
,
int
the new x-coordinate, in screen coordinates, of the upper-left corner of the content area of the window
xpos
,
int
the new y-coordinate, in screen coordinates, of the upper-left corner of the content area of the window
ypos
)

Implements org.lwjgl.glfw.GLFWWindowPosCallbackI.invoke.

Will be called when the specified window moves.
Inherited from org.lwjgl.glfw.GLFWWindowPosCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWWindowPosCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long window, int xpos, int ypos)

Implements org.lwjgl.glfw.GLFWWindowPosCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWWindowPosCallbackI.invoke.

Will be called when the specified window moves.

Parameters
window:long

the window that was moved

xpos:int

the new x-coordinate, in screen coordinates, of the upper-left corner of the content area of the window

ypos:int

the new y-coordinate, in screen coordinates, of the upper-left corner of the content area of the window

Annotations
@Override