Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWMouseButtonCallback

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

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

Type


void (*invoke) (
    GLFWwindow *window,
    int button,
    int action,
    int mods
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static GLFWMouseButtonCallback

Returns:

the new GLFWMouseButtonCallback
create
(long functionPointer)

Creates a GLFWMouseButtonCallback instance from the specified function pointer.

public static GLFWMouseButtonCallback
create(GLFWMouseButtonCallbackI instance)

Creates a GLFWMouseButtonCallback instance that delegates to the specified GLFWMouseButtonCallbackI instance.

public static GLFWMouseButtonCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWMouseButtonCallback
set(long window)

See SetMouseButtonCallback.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWMouseButtonCallbackback to summary
protected GLFWMouseButtonCallback()
GLFWMouseButtonCallbackback to summary
pack-priv GLFWMouseButtonCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWMouseButtonCallback create(long functionPointer)

Creates a GLFWMouseButtonCallback instance from the specified function pointer.

Returns:GLFWMouseButtonCallback

the new GLFWMouseButtonCallback

createback to summary
public static GLFWMouseButtonCallback create(GLFWMouseButtonCallbackI instance)

Creates a GLFWMouseButtonCallback instance that delegates to the specified GLFWMouseButtonCallbackI instance.

createSafeback to summary
public static GLFWMouseButtonCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

See SetMouseButtonCallback.

org.lwjgl.glfw back to summary

private final Class GLFWMouseButtonCallback.Container

extends GLFWMouseButtonCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWMouseButtonCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the window that received the event
window
,
int
the mouse button that was pressed or released
button
,
int
the button action. One of:
PRESSRELEASE
action
,
int
bitfield describing which modifiers keys were held down
mods
)

Implements org.lwjgl.glfw.GLFWMouseButtonCallbackI.invoke.

Will be called when a mouse button is pressed or released.
Inherited from org.lwjgl.glfw.GLFWMouseButtonCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWMouseButtonCallbackI delegate

Constructor Detail

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

Method Detail

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

Implements org.lwjgl.glfw.GLFWMouseButtonCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWMouseButtonCallbackI.invoke.

Will be called when a mouse button is pressed or released.

Parameters
window:long

the window that received the event

button:int

the mouse button that was pressed or released

action:int

the button action. One of:

PRESSRELEASE
mods:int

bitfield describing which modifiers keys were held down

Annotations
@Override