Top Description Inners Constructors Methods
org.lwjgl.nanovg

public abstract Class UIHandler

extends Callback
implements UIHandlerI
Class Inheritance
All Implemented Interfaces
org.lwjgl.nanovg.UIHandlerI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.nanovg.UIHandler.Container
Imports
javax.annotation.*, org.lwjgl.system.*

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

Type


void (*invoke) (
    int item,
    UIevent event
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static UIHandler

Returns:

the new UIHandler
create
(long functionPointer)

Creates a UIHandler instance from the specified function pointer.

public static UIHandler
create(UIHandlerI instance)

Creates a UIHandler instance that delegates to the specified UIHandlerI instance.

public static UIHandler
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

UIHandlerback to summary
protected UIHandler()
UIHandlerback to summary
pack-priv UIHandler(long functionPointer)

Method Detail

createback to summary
public static UIHandler create(long functionPointer)

Creates a UIHandler instance from the specified function pointer.

Returns:UIHandler

the new UIHandler

createback to summary
public static UIHandler create(UIHandlerI instance)

Creates a UIHandler instance that delegates to the specified UIHandlerI instance.

createSafeback to summary
public static UIHandler createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.nanovg back to summary

private final Class UIHandler.Container

extends UIHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final UIHandlerI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(int item, int event)

Implements org.lwjgl.nanovg.UIHandlerI.invoke.

handler callback; event is one of UI_EVENT_*
Inherited from org.lwjgl.nanovg.UIHandler:
createcreatecreateSafe

Field Detail

delegateback to summary
private final UIHandlerI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(int item, int event)

Implements org.lwjgl.nanovg.UIHandlerI.invoke.

Doc from org.lwjgl.nanovg.UIHandlerI.invoke.

handler callback; event is one of UI_EVENT_*

Annotations
@Override