public class NkContext
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct nk_context {
struct nk_input input;
struct nk_style style;
struct nk_buffer memory;
struct nk_clipboard clip;
nk_flags last_widget_state;
enum nk_button_behavior button_behavior;
struct nk_configuration_stacks stacks;
float delta_time_seconds;
struct nk_draw_list draw_list;
nk_handle userdata;
struct nk_text_edit text_edit;
struct nk_command_buffer overlay;
int build;
int use_pool;
struct nk_pool pool;
struct nk_window * begin;
struct nk_window * end;
struct nk_window * active;
struct nk_window * current;
struct nk_page_element * freelist;
unsigned int count;
unsigned int seq;
}| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BEGIN
The struct member offsets.
|
static int |
BUILD
The struct member offsets.
|
static int |
BUTTON_BEHAVIOR
The struct member offsets.
|
static int |
CLIP
The struct member offsets.
|
static int |
COUNT
The struct member offsets.
|
static int |
CURRENT
The struct member offsets.
|
static int |
DELTA_TIME_SECONDS
The struct member offsets.
|
static int |
DRAW_LIST
The struct member offsets.
|
static int |
END
The struct member offsets.
|
static int |
FREELIST
The struct member offsets.
|
static int |
INPUT
The struct member offsets.
|
static int |
LAST_WIDGET_STATE
The struct member offsets.
|
static int |
MEMORY
The struct member offsets.
|
static int |
OVERLAY
The struct member offsets.
|
static int |
POOL
The struct member offsets.
|
static int |
SEQ
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STACKS
The struct member offsets.
|
static int |
STYLE
The struct member offsets.
|
static int |
TEXT_EDIT
The struct member offsets.
|
static int |
USE_POOL
The struct member offsets.
|
static int |
USERDATA
The struct member offsets.
|
| Constructor and Description |
|---|
NkContext(java.nio.ByteBuffer container)
Creates a
NkContext instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
button_behavior()
Returns the value of the
button_behavior field. |
static NkContext |
calloc()
Returns a new
NkContext instance allocated with memCalloc. |
static NkContext |
callocStack()
Returns a new
NkContext instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkContext |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkContext instance allocated on the specified MemoryStack and initializes all its bits to zero. |
NkClipboard |
clip()
Returns a
NkClipboard view of the clip field. |
static NkContext |
create()
Returns a new
NkContext instance allocated with BufferUtils. |
static NkContext |
create(long address)
Returns a new
NkContext instance for the specified memory address. |
static NkContext |
createSafe(long address)
|
float |
delta_time_seconds()
Returns the value of the
delta_time_seconds field. |
NkInput |
input()
Returns a
NkInput view of the input field. |
int |
last_widget_state()
Returns the value of the
last_widget_state field. |
static NkContext |
malloc()
Returns a new
NkContext instance allocated with memAlloc. |
static NkContext |
mallocStack()
Returns a new
NkContext instance allocated on the thread-local MemoryStack. |
static NkContext |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkContext instance allocated on the specified MemoryStack. |
NkBuffer |
memory()
Returns a
NkBuffer view of the memory field. |
static NkWindow |
nactive(long struct) |
static NkWindow |
nbegin(long struct) |
static int |
nbuild(long struct) |
static int |
nbutton_behavior(long struct)
Unsafe version of
button_behavior(). |
static NkClipboard |
nclip(long struct)
Unsafe version of
clip(). |
static int |
ncount(long struct) |
static NkWindow |
ncurrent(long struct) |
static float |
ndelta_time_seconds(long struct)
Unsafe version of
delta_time_seconds(). |
static NkDrawList |
ndraw_list(long struct) |
static NkWindow |
nend(long struct) |
static long |
nfreelist(long struct) |
static NkInput |
ninput(long struct)
Unsafe version of
input(). |
static int |
nlast_widget_state(long struct)
Unsafe version of
last_widget_state(). |
static NkBuffer |
nmemory(long struct)
Unsafe version of
memory(). |
static NkCommandBuffer |
noverlay(long struct) |
static org.lwjgl.nuklear.NkPool |
npool(long struct) |
static int |
nseq(long struct) |
static org.lwjgl.nuklear.NkConfigurationStacks |
nstacks(long struct)
Unsafe version of
stacks(). |
static NkStyle |
nstyle(long struct)
Unsafe version of
style(). |
static NkTextEdit |
ntext_edit(long struct) |
static int |
nuse_pool(long struct) |
static NkHandle |
nuserdata(long struct) |
int |
sizeof() |
org.lwjgl.nuklear.NkConfigurationStacks |
stacks()
Returns a
NkConfigurationStacks view of the stacks field. |
NkStyle |
style()
Returns a
NkStyle view of the style field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int INPUT
public static final int STYLE
public static final int MEMORY
public static final int CLIP
public static final int LAST_WIDGET_STATE
public static final int BUTTON_BEHAVIOR
public static final int STACKS
public static final int DELTA_TIME_SECONDS
public static final int DRAW_LIST
public static final int USERDATA
public static final int TEXT_EDIT
public static final int OVERLAY
public static final int BUILD
public static final int USE_POOL
public static final int POOL
public static final int BEGIN
public static final int END
public static final int ACTIVE
public static final int CURRENT
public static final int FREELIST
public static final int COUNT
public static final int SEQ
public NkContext(java.nio.ByteBuffer container)
NkContext instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic NkClipboard clip()
NkClipboard view of the clip field.public int last_widget_state()
last_widget_state field.public int button_behavior()
button_behavior field.public org.lwjgl.nuklear.NkConfigurationStacks stacks()
NkConfigurationStacks view of the stacks field.public float delta_time_seconds()
delta_time_seconds field.public static NkContext malloc()
NkContext instance allocated with memAlloc. The instance must be explicitly freed.public static NkContext calloc()
NkContext instance allocated with memCalloc. The instance must be explicitly freed.public static NkContext create()
NkContext instance allocated with BufferUtils.public static NkContext create(long address)
NkContext instance for the specified memory address.@Nullable public static NkContext createSafe(long address)
public static NkContext mallocStack()
NkContext instance allocated on the thread-local MemoryStack.public static NkContext callocStack()
NkContext instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkContext mallocStack(org.lwjgl.system.MemoryStack stack)
NkContext instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkContext callocStack(org.lwjgl.system.MemoryStack stack)
NkContext instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkClipboard nclip(long struct)
clip().public static int nlast_widget_state(long struct)
last_widget_state().public static int nbutton_behavior(long struct)
button_behavior().public static org.lwjgl.nuklear.NkConfigurationStacks nstacks(long struct)
stacks().public static float ndelta_time_seconds(long struct)
delta_time_seconds().public static NkDrawList ndraw_list(long struct)
public static NkHandle nuserdata(long struct)
public static NkTextEdit ntext_edit(long struct)
public static NkCommandBuffer noverlay(long struct)
public static int nbuild(long struct)
public static int nuse_pool(long struct)
public static org.lwjgl.nuklear.NkPool npool(long struct)
@Nullable public static NkWindow nbegin(long struct)
@Nullable public static NkWindow nend(long struct)
@Nullable public static NkWindow nactive(long struct)
@Nullable public static NkWindow ncurrent(long struct)
public static long nfreelist(long struct)
public static int ncount(long struct)
public static int nseq(long struct)
Copyright LWJGL. All Rights Reserved. License terms.