Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWScrollCallback

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

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

Type


void (*invoke) (
    GLFWwindow *window,
    double xoffset,
    double yoffset
)
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
GLFWScrollCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static GLFWScrollCallback

Returns:

the new GLFWScrollCallback
create
(long functionPointer)

Creates a GLFWScrollCallback instance from the specified function pointer.

public static GLFWScrollCallback
create(GLFWScrollCallbackI instance)

Creates a GLFWScrollCallback instance that delegates to the specified GLFWScrollCallbackI instance.

public static GLFWScrollCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWScrollCallback
set(long window)

See SetScrollCallback.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWScrollCallbackback to summary
protected GLFWScrollCallback()
GLFWScrollCallbackback to summary
pack-priv GLFWScrollCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWScrollCallback create(long functionPointer)

Creates a GLFWScrollCallback instance from the specified function pointer.

Returns:GLFWScrollCallback

the new GLFWScrollCallback

createback to summary
public static GLFWScrollCallback create(GLFWScrollCallbackI instance)

Creates a GLFWScrollCallback instance that delegates to the specified GLFWScrollCallbackI instance.

createSafeback to summary
public static GLFWScrollCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

See SetScrollCallback.

org.lwjgl.glfw back to summary

private final Class GLFWScrollCallback.Container

extends GLFWScrollCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWScrollCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the window that received the event
window
,
double
the scroll offset along the x-axis
xoffset
,
double
the scroll offset along the y-axis
yoffset
)

Implements org.lwjgl.glfw.GLFWScrollCallbackI.invoke.

Will be called when a scrolling device is used, such as a mouse wheel or scrolling area of a touchpad.
Inherited from org.lwjgl.glfw.GLFWScrollCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWScrollCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long window, double xoffset, double yoffset)

Implements org.lwjgl.glfw.GLFWScrollCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWScrollCallbackI.invoke.

Will be called when a scrolling device is used, such as a mouse wheel or scrolling area of a touchpad.

Parameters
window:long

the window that received the event

xoffset:double

the scroll offset along the x-axis

yoffset:double

the scroll offset along the y-axis

Annotations
@Override