Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWDropCallback

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

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

Type


void (*invoke) (
    GLFWwindow *window,
    int count,
    char const **names
)
Since
version 3.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static GLFWDropCallback

Returns:

the new GLFWDropCallback
create
(long functionPointer)

Creates a GLFWDropCallback instance from the specified function pointer.

public static GLFWDropCallback
create(GLFWDropCallbackI instance)

Creates a GLFWDropCallback instance that delegates to the specified GLFWDropCallbackI instance.

public static GLFWDropCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static String

Returns:

the name at the specified index as a String
getName
(long
pointer to the array of UTF-8 encoded path names of the dropped files
names
,
int
the index to decode
index
)

Decodes the specified GLFWDropCallback arguments to a String.

public GLFWDropCallback
set(long window)

See SetDropCallback.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWDropCallbackback to summary
protected GLFWDropCallback()
GLFWDropCallbackback to summary
pack-priv GLFWDropCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWDropCallback create(long functionPointer)

Creates a GLFWDropCallback instance from the specified function pointer.

Returns:GLFWDropCallback

the new GLFWDropCallback

createback to summary
public static GLFWDropCallback create(GLFWDropCallbackI instance)

Creates a GLFWDropCallback instance that delegates to the specified GLFWDropCallbackI instance.

createSafeback to summary
public static GLFWDropCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
getNameback to summary
public static String getName(long names, int index)

Decodes the specified GLFWDropCallback arguments to a String.

This method may only be used inside a GLFWDropCallback invocation.

Parameters
names:long

pointer to the array of UTF-8 encoded path names of the dropped files

index:int

the index to decode

Returns:String

the name at the specified index as a String

setback to summary
public GLFWDropCallback set(long window)

See SetDropCallback.

org.lwjgl.glfw back to summary

private final Class GLFWDropCallback.Container

extends GLFWDropCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWDropCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the window that received the event
window
,
int
the number of dropped files
count
,
long
pointer to the array of UTF-8 encoded path names of the dropped files
names
)

Implements org.lwjgl.glfw.GLFWDropCallbackI.invoke.

Will be called when one or more dragged files are dropped on the window.
Inherited from org.lwjgl.glfw.GLFWDropCallback:
createcreatecreateSafegetNameset

Field Detail

delegateback to summary
private final GLFWDropCallbackI delegate

Constructor Detail

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

Method Detail

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

Implements org.lwjgl.glfw.GLFWDropCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWDropCallbackI.invoke.

Will be called when one or more dragged files are dropped on the window.

Parameters
window:long

the window that received the event

count:int

the number of dropped files

names:long

pointer to the array of UTF-8 encoded path names of the dropped files

Annotations
@Override