Top Description Inners Constructors Methods
org.lwjgl.stb

public abstract Class STBIEOFCallback

extends Callback
implements STBIEOFCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.stb.STBIEOFCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.stb.STBIEOFCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be set to the eof field of the STBIIOCallbacks struct.

Type


int (*invoke) (
    void *user
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static STBIEOFCallback

Returns:

the new STBIEOFCallback
create
(long functionPointer)

Creates a STBIEOFCallback instance from the specified function pointer.

public static STBIEOFCallback
create(STBIEOFCallbackI instance)

Creates a STBIEOFCallback instance that delegates to the specified STBIEOFCallbackI instance.

public static STBIEOFCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

STBIEOFCallbackback to summary
protected STBIEOFCallback()
STBIEOFCallbackback to summary
pack-priv STBIEOFCallback(long functionPointer)

Method Detail

createback to summary
public static STBIEOFCallback create(long functionPointer)

Creates a STBIEOFCallback instance from the specified function pointer.

Returns:STBIEOFCallback

the new STBIEOFCallback

createback to summary
public static STBIEOFCallback create(STBIEOFCallbackI instance)

Creates a STBIEOFCallback instance that delegates to the specified STBIEOFCallbackI instance.

createSafeback to summary
public static STBIEOFCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.stb back to summary

private final Class STBIEOFCallback.Container

extends STBIEOFCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final STBIEOFCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
invoke(long
a pointer to user data
user
)

Implements org.lwjgl.stb.STBIEOFCallbackI.invoke.

The stbi_io_callbacks.eof callback.
Inherited from org.lwjgl.stb.STBIEOFCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final STBIEOFCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public int invoke(long user)

Implements org.lwjgl.stb.STBIEOFCallbackI.invoke.

Doc from org.lwjgl.stb.STBIEOFCallbackI.invoke.

The stbi_io_callbacks.eof callback.

Parameters
user:long

a pointer to user data

Returns:int

nonzero if we are at the end of file/data

Annotations
@Override