Top Description Inners Constructors Methods
org.lwjgl.stb

public abstract Class STBIWriteCallback

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

Instances of this class may be used with the STBImageWrite write_type_to_func functions.

Type


void (*invoke) (
    void *context,
    void *data,
    int size
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static STBIWriteCallback

Returns:

the new STBIWriteCallback
create
(long functionPointer)

Creates a STBIWriteCallback instance from the specified function pointer.

public static STBIWriteCallback
create(STBIWriteCallbackI instance)

Creates a STBIWriteCallback instance that delegates to the specified STBIWriteCallbackI instance.

public static STBIWriteCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static ByteBuffer

Returns:

the data as a ByteBuffer
getData
(long
the STBIWriteCallback data argument
data
,
int
the STBIWriteCallback size argument
size
)

Converts the specified STBIWriteCallback arguments to a ByteBuffer.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

STBIWriteCallbackback to summary
protected STBIWriteCallback()
STBIWriteCallbackback to summary
pack-priv STBIWriteCallback(long functionPointer)

Method Detail

createback to summary
public static STBIWriteCallback create(long functionPointer)

Creates a STBIWriteCallback instance from the specified function pointer.

Returns:STBIWriteCallback

the new STBIWriteCallback

createback to summary
public static STBIWriteCallback create(STBIWriteCallbackI instance)

Creates a STBIWriteCallback instance that delegates to the specified STBIWriteCallbackI instance.

createSafeback to summary
public static STBIWriteCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
getDataback to summary
public static ByteBuffer getData(long data, int size)

Converts the specified STBIWriteCallback arguments to a ByteBuffer.

This method may only be used inside a STBIWriteCallback invocation.

Parameters
data:long

the STBIWriteCallback data argument

size:int

the STBIWriteCallback size argument

Returns:ByteBuffer

the data as a ByteBuffer

org.lwjgl.stb back to summary

private final Class STBIWriteCallback.Container

extends STBIWriteCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final STBIWriteCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the context passed to the write function
context
,
long
the data to write
data
,
int
the number of bytes in data
size
)

Implements org.lwjgl.stb.STBIWriteCallbackI.invoke.

The stbi_write_func callback.
Inherited from org.lwjgl.stb.STBIWriteCallback:
createcreatecreateSafegetData

Field Detail

delegateback to summary
private final STBIWriteCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long context, long data, int size)

Implements org.lwjgl.stb.STBIWriteCallbackI.invoke.

Doc from org.lwjgl.stb.STBIWriteCallbackI.invoke.

The stbi_write_func callback.

Parameters
context:long

the context passed to the write function

data:long

the data to write

size:int

the number of bytes in data

Annotations
@Override