Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWWindowContentScaleCallback

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

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

Type


void (*invoke) (
    GLFWwindow *window,
    float xscale,
    float yscale
)
Since
version 3.3

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static GLFWWindowContentScaleCallback

Returns:

the new GLFWWindowContentScaleCallback
create
(long functionPointer)

Creates a GLFWWindowContentScaleCallback instance from the specified function pointer.

public static GLFWWindowContentScaleCallback
create(GLFWWindowContentScaleCallbackI instance)

Creates a GLFWWindowContentScaleCallback instance that delegates to the specified GLFWWindowContentScaleCallbackI instance.

public static GLFWWindowContentScaleCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

Constructor Detail

GLFWWindowContentScaleCallbackback to summary
protected GLFWWindowContentScaleCallback()
GLFWWindowContentScaleCallbackback to summary
pack-priv GLFWWindowContentScaleCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWWindowContentScaleCallback create(long functionPointer)

Creates a GLFWWindowContentScaleCallback instance from the specified function pointer.

Returns:GLFWWindowContentScaleCallback

the new GLFWWindowContentScaleCallback

createback to summary
public static GLFWWindowContentScaleCallback create(GLFWWindowContentScaleCallbackI instance)

Creates a GLFWWindowContentScaleCallback instance that delegates to the specified GLFWWindowContentScaleCallbackI instance.

createSafeback to summary
public static GLFWWindowContentScaleCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

See SetWindowContentScaleCallback.

org.lwjgl.glfw back to summary

private final Class GLFWWindowContentScaleCallback.Container

extends GLFWWindowContentScaleCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWWindowContentScaleCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the window whose content scale changed
window
,
float
the new x-axis content scale of the window
xscale
,
float
the new y-axis content scale of the window
yscale
)

Implements org.lwjgl.glfw.GLFWWindowContentScaleCallbackI.invoke.

Will be called when the window content scale changes.
Inherited from org.lwjgl.glfw.GLFWWindowContentScaleCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWWindowContentScaleCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long window, float xscale, float yscale)

Implements org.lwjgl.glfw.GLFWWindowContentScaleCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWWindowContentScaleCallbackI.invoke.

Will be called when the window content scale changes.

Parameters
window:long

the window whose content scale changed

xscale:float

the new x-axis content scale of the window

yscale:float

the new y-axis content scale of the window

Annotations
@Override