Top Description Inners Constructors Methods
org.lwjgl.nuklear

public abstract Class NkTextWidthCallback

extends Callback
implements NkTextWidthCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.nuklear.NkTextWidthCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.nuklear.NkTextWidthCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be set to the NkUserFont struct.

Type


float (*invoke) (
    nk_handle handle,
    float h,
    char const *text,
    int len
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static NkTextWidthCallback

Returns:

the new NkTextWidthCallback
create
(long functionPointer)

Creates a NkTextWidthCallback instance from the specified function pointer.

public static NkTextWidthCallback
create(NkTextWidthCallbackI instance)

Creates a NkTextWidthCallback instance that delegates to the specified NkTextWidthCallbackI instance.

public static NkTextWidthCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

NkTextWidthCallbackback to summary
protected NkTextWidthCallback()
NkTextWidthCallbackback to summary
pack-priv NkTextWidthCallback(long functionPointer)

Method Detail

createback to summary
public static NkTextWidthCallback create(long functionPointer)

Creates a NkTextWidthCallback instance from the specified function pointer.

Returns:NkTextWidthCallback

the new NkTextWidthCallback

createback to summary
public static NkTextWidthCallback create(NkTextWidthCallbackI instance)

Creates a NkTextWidthCallback instance that delegates to the specified NkTextWidthCallbackI instance.

createSafeback to summary
public static NkTextWidthCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.nuklear back to summary

private final Class NkTextWidthCallback.Container

extends NkTextWidthCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final NkTextWidthCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public float
invoke(long handle, float h, long text, int len)

Implements org.lwjgl.nuklear.NkTextWidthCallbackI.invoke.

Inherited from org.lwjgl.nuklear.NkTextWidthCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final NkTextWidthCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public float invoke(long handle, float h, long text, int len)

Implements org.lwjgl.nuklear.NkTextWidthCallbackI.invoke.

Annotations
@Override