Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWMonitorCallback

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

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

Type


void (*invoke) (
    GLFWmonitor *monitor,
    int event
)
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
GLFWMonitorCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static GLFWMonitorCallback

Returns:

the new GLFWMonitorCallback
create
(long functionPointer)

Creates a GLFWMonitorCallback instance from the specified function pointer.

public static GLFWMonitorCallback
create(GLFWMonitorCallbackI instance)

Creates a GLFWMonitorCallback instance that delegates to the specified GLFWMonitorCallbackI instance.

public static GLFWMonitorCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWMonitorCallback
Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWMonitorCallbackback to summary
protected GLFWMonitorCallback()
GLFWMonitorCallbackback to summary
pack-priv GLFWMonitorCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWMonitorCallback create(long functionPointer)

Creates a GLFWMonitorCallback instance from the specified function pointer.

Returns:GLFWMonitorCallback

the new GLFWMonitorCallback

createback to summary
public static GLFWMonitorCallback create(GLFWMonitorCallbackI instance)

Creates a GLFWMonitorCallback instance that delegates to the specified GLFWMonitorCallbackI instance.

createSafeback to summary
public static GLFWMonitorCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
setback to summary
public GLFWMonitorCallback set()

See SetMonitorCallback.

org.lwjgl.glfw back to summary

private final Class GLFWMonitorCallback.Container

extends GLFWMonitorCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWMonitorCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the monitor that was connected or disconnected
monitor
,
int
one of CONNECTED or DISCONNECTED. Remaining values reserved for future use.
event
)

Implements org.lwjgl.glfw.GLFWMonitorCallbackI.invoke.

Will be called when a monitor is connected to or disconnected from the system.
Inherited from org.lwjgl.glfw.GLFWMonitorCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWMonitorCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long monitor, int event)

Implements org.lwjgl.glfw.GLFWMonitorCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWMonitorCallbackI.invoke.

Will be called when a monitor is connected to or disconnected from the system.

Parameters
monitor:long

the monitor that was connected or disconnected

event:int

one of CONNECTED or DISCONNECTED. Remaining values reserved for future use.

Annotations
@Override