Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWWindowFocusCallback

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

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

Type


void (*invoke) (
    GLFWwindow *window,
    int focused
)
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
GLFWWindowFocusCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static GLFWWindowFocusCallback

Returns:

the new GLFWWindowFocusCallback
create
(long functionPointer)

Creates a GLFWWindowFocusCallback instance from the specified function pointer.

public static GLFWWindowFocusCallback
create(GLFWWindowFocusCallbackI instance)

Creates a GLFWWindowFocusCallback instance that delegates to the specified GLFWWindowFocusCallbackI instance.

public static GLFWWindowFocusCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWWindowFocusCallback
set(long window)

See SetWindowFocusCallback.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWWindowFocusCallbackback to summary
protected GLFWWindowFocusCallback()
GLFWWindowFocusCallbackback to summary
pack-priv GLFWWindowFocusCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWWindowFocusCallback create(long functionPointer)

Creates a GLFWWindowFocusCallback instance from the specified function pointer.

Returns:GLFWWindowFocusCallback

the new GLFWWindowFocusCallback

createback to summary
public static GLFWWindowFocusCallback create(GLFWWindowFocusCallbackI instance)

Creates a GLFWWindowFocusCallback instance that delegates to the specified GLFWWindowFocusCallbackI instance.

createSafeback to summary
public static GLFWWindowFocusCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

See SetWindowFocusCallback.

org.lwjgl.glfw back to summary

private final Class GLFWWindowFocusCallback.Container

extends GLFWWindowFocusCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWWindowFocusCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the window that was focused or defocused
window
,
boolean
TRUE if the window was focused, or FALSE if it was defocused
focused
)

Implements org.lwjgl.glfw.GLFWWindowFocusCallbackI.invoke.

Will be called when the specified window gains or loses focus.
Inherited from org.lwjgl.glfw.GLFWWindowFocusCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWWindowFocusCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long window, boolean focused)

Implements org.lwjgl.glfw.GLFWWindowFocusCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWWindowFocusCallbackI.invoke.

Will be called when the specified window gains or loses focus.

Parameters
window:long

the window that was focused or defocused

focused:boolean

TRUE if the window was focused, or FALSE if it was defocused

Annotations
@Override