Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWCharCallback

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

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

Type


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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static GLFWCharCallback

Returns:

the new GLFWCharCallback
create
(long functionPointer)

Creates a GLFWCharCallback instance from the specified function pointer.

public static GLFWCharCallback
create(GLFWCharCallbackI instance)

Creates a GLFWCharCallback instance that delegates to the specified GLFWCharCallbackI instance.

public static GLFWCharCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWCharCallback
set(long window)

See SetCharCallback.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWCharCallbackback to summary
protected GLFWCharCallback()
GLFWCharCallbackback to summary
pack-priv GLFWCharCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWCharCallback create(long functionPointer)

Creates a GLFWCharCallback instance from the specified function pointer.

Returns:GLFWCharCallback

the new GLFWCharCallback

createback to summary
public static GLFWCharCallback create(GLFWCharCallbackI instance)

Creates a GLFWCharCallback instance that delegates to the specified GLFWCharCallbackI instance.

createSafeback to summary
public static GLFWCharCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

See SetCharCallback.

org.lwjgl.glfw back to summary

private final Class GLFWCharCallback.Container

extends GLFWCharCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWCharCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, GLFWCharCallbackI 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
)

Implements org.lwjgl.glfw.GLFWCharCallbackI.invoke.

Will be called when a Unicode character is input.
Inherited from org.lwjgl.glfw.GLFWCharCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWCharCallbackI delegate

Constructor Detail

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

Method Detail

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

Implements org.lwjgl.glfw.GLFWCharCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWCharCallbackI.invoke.

Will be called when a Unicode character is input.

Parameters
window:long

the window that received the event

codepoint:int

the Unicode code point of the character

Annotations
@Override