Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWCharModsCallback

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

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

Deprecared: scheduled for removal in version 4.0.

Type


void (*invoke) (
    GLFWwindow *window,
    unsigned int codepoint,
    int mods
)
Since
version 3.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static GLFWCharModsCallback

Returns:

the new GLFWCharModsCallback
create
(long functionPointer)

Creates a GLFWCharModsCallback instance from the specified function pointer.

public static GLFWCharModsCallback
create(GLFWCharModsCallbackI instance)

Creates a GLFWCharModsCallback instance that delegates to the specified GLFWCharModsCallbackI instance.

public static GLFWCharModsCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWCharModsCallback
set(long window)

See SetCharModsCallback.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWCharModsCallbackback to summary
protected GLFWCharModsCallback()
GLFWCharModsCallbackback to summary
pack-priv GLFWCharModsCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWCharModsCallback create(long functionPointer)

Creates a GLFWCharModsCallback instance from the specified function pointer.

Returns:GLFWCharModsCallback

the new GLFWCharModsCallback

createback to summary
public static GLFWCharModsCallback create(GLFWCharModsCallbackI instance)

Creates a GLFWCharModsCallback instance that delegates to the specified GLFWCharModsCallbackI instance.

createSafeback to summary
public static GLFWCharModsCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

See SetCharModsCallback.

org.lwjgl.glfw back to summary

private final Class GLFWCharModsCallback.Container

extends GLFWCharModsCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWCharModsCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the window that received the event
window
,
int
the Unicode code point of the character
codepoint
,
int
bitfield describing which modifier keys were held down
mods
)

Implements org.lwjgl.glfw.GLFWCharModsCallbackI.invoke.

Will be called when a Unicode character is input regardless of what modifier keys are used.
Inherited from org.lwjgl.glfw.GLFWCharModsCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWCharModsCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long window, int codepoint, int mods)

Implements org.lwjgl.glfw.GLFWCharModsCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWCharModsCallbackI.invoke.

Will be called when a Unicode character is input regardless of what modifier keys are used.

Parameters
window:long

the window that received the event

codepoint:int

the Unicode code point of the character

mods:int

bitfield describing which modifier keys were held down

Annotations
@Override