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 |
|---|---|
| public static final int | ACTIVE
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BEGIN
The struct member offsets. |
| public static final int | BUILD
The struct member offsets. |
| public static final int | BUTTON_BEHAVIOR
The struct member offsets. |
| public static final int | CLIP
The struct member offsets. |
| public static final int | COUNT
The struct member offsets. |
| public static final int | CURRENT
The struct member offsets. |
| public static final int | DELTA_TIME_SECONDS
The struct member offsets. |
| public static final int | DRAW_LIST
The struct member offsets. |
| public static final int | END
The struct member offsets. |
| public static final int | FREELIST
The struct member offsets. |
| public static final int | INPUT
The struct member offsets. |
| public static final int | LAST_WIDGET_STATE
The struct member offsets. |
| public static final int | MEMORY
The struct member offsets. |
| public static final int | OVERLAY
The struct member offsets. |
| public static final int | POOL
The struct member offsets. |
| public static final int | SEQ
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STACKS
The struct member offsets. |
| public static final int | STYLE
The struct member offsets. |
| public static final int | TEXT_EDIT
The struct member offsets. |
| public static final int | USE_POOL
The struct member offsets. |
| public static final int | USERDATA
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkContext(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static NkContext | |
| public static NkContext | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkContext | |
| public static NkContext | |
| public NkClipboard | |
| protected NkContext | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static NkContext | |
| public static NkContext | |
| public static NkContext | |
| public float | |
| public NkInput | |
| public int | |
| public static NkContext | |
| public static NkContext | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkContext | |
| public static NkContext | |
| public NkBuffer | |
| public static NkWindow | |
| public static NkWindow | |
| public static int | |
| public static int | |
| public static NkClipboard | |
| public static int | |
| public static NkWindow | |
| public static float | |
| public static NkDrawList | |
| public static NkWindow | |
| public static long | |
| public static NkInput | |
| public static int | |
| public static NkBuffer | |
| public static NkCommandBuffer | |
| public static NkPool | |
| public static int | |
| public static NkConfigurationStacks | |
| public static NkStyle | |
| public static NkTextEdit | |
| public static int | |
| public static NkHandle | |
| public int | |
| public NkConfigurationStacks | |
| public NkStyle |
| ACTIVE | back to summary |
|---|---|
| public static final int ACTIVE The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BEGIN | back to summary |
|---|---|
| public static final int BEGIN The struct member offsets. | |
| BUILD | back to summary |
|---|---|
| public static final int BUILD The struct member offsets. | |
| BUTTON_BEHAVIOR | back to summary |
|---|---|
| public static final int BUTTON_BEHAVIOR The struct member offsets. | |
| CLIP | back to summary |
|---|---|
| public static final int CLIP The struct member offsets. | |
| COUNT | back to summary |
|---|---|
| public static final int COUNT The struct member offsets. | |
| CURRENT | back to summary |
|---|---|
| public static final int CURRENT The struct member offsets. | |
| DELTA_TIME_SECONDS | back to summary |
|---|---|
| public static final int DELTA_TIME_SECONDS The struct member offsets. | |
| DRAW_LIST | back to summary |
|---|---|
| public static final int DRAW_LIST The struct member offsets. | |
| END | back to summary |
|---|---|
| public static final int END The struct member offsets. | |
| FREELIST | back to summary |
|---|---|
| public static final int FREELIST The struct member offsets. | |
| INPUT | back to summary |
|---|---|
| public static final int INPUT The struct member offsets. | |
| LAST_WIDGET_STATE | back to summary |
|---|---|
| public static final int LAST_WIDGET_STATE The struct member offsets. | |
| MEMORY | back to summary |
|---|---|
| public static final int MEMORY The struct member offsets. | |
| OVERLAY | back to summary |
|---|---|
| public static final int OVERLAY The struct member offsets. | |
| POOL | back to summary |
|---|---|
| public static final int POOL The struct member offsets. | |
| SEQ | back to summary |
|---|---|
| public static final int SEQ The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STACKS | back to summary |
|---|---|
| public static final int STACKS The struct member offsets. | |
| STYLE | back to summary |
|---|---|
| public static final int STYLE The struct member offsets. | |
| TEXT_EDIT | back to summary |
|---|---|
| public static final int TEXT_EDIT The struct member offsets. | |
| USE_POOL | back to summary |
|---|---|
| public static final int USE_POOL The struct member offsets. | |
| USERDATA | back to summary |
|---|---|
| public static final int USERDATA The struct member offsets. | |
| NkContext | back to summary |
|---|---|
| protected NkContext(long address, ByteBuffer container) | |
| NkContext | back to summary |
|---|---|
| public NkContext(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| button_behavior | back to summary |
|---|---|
public int button_behavior()
| |
| calloc | back to summary |
|---|---|
| public static NkContext calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkContext calloc(MemoryStack stack) Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static NkContext callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkContext callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| clip | back to summary |
|---|---|
public NkClipboard clip()
| |
| create | back to summary |
|---|---|
| protected NkContext create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkContext create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkContext create(long address) Returns a new | |
| createSafe | back to summary |
|---|---|
| public static NkContext createSafe(long address) Like
| |
| delta_time_seconds | back to summary |
|---|---|
public float delta_time_seconds()
| |
| input | back to summary |
|---|---|
public NkInput input()
| |
| last_widget_state | back to summary |
|---|---|
public int last_widget_state()
| |
| malloc | back to summary |
|---|---|
| public static NkContext malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkContext malloc(MemoryStack stack) Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static NkContext mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkContext mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| memory | back to summary |
|---|---|
public NkBuffer memory()
| |
| nactive | back to summary |
|---|---|
public static NkWindow nactive(long struct)
| |
| nbegin | back to summary |
|---|---|
public static NkWindow nbegin(long struct)
| |
| nbuild | back to summary |
|---|---|
| public static int nbuild(long struct) | |
| nbutton_behavior | back to summary |
|---|---|
| public static int nbutton_behavior(long struct) Unsafe version of | |
| nclip | back to summary |
|---|---|
| public static NkClipboard nclip(long struct) Unsafe version of | |
| ncount | back to summary |
|---|---|
| public static int ncount(long struct) | |
| ncurrent | back to summary |
|---|---|
public static NkWindow ncurrent(long struct)
| |
| ndelta_time_seconds | back to summary |
|---|---|
| public static float ndelta_time_seconds(long struct) Unsafe version of | |
| ndraw_list | back to summary |
|---|---|
| public static NkDrawList ndraw_list(long struct) | |
| nend | back to summary |
|---|---|
public static NkWindow nend(long struct)
| |
| nfreelist | back to summary |
|---|---|
| public static long nfreelist(long struct) | |
| ninput | back to summary |
|---|---|
| public static NkInput ninput(long struct) Unsafe version of | |
| nlast_widget_state | back to summary |
|---|---|
| public static int nlast_widget_state(long struct) Unsafe version of | |
| nmemory | back to summary |
|---|---|
| public static NkBuffer nmemory(long struct) Unsafe version of | |
| noverlay | back to summary |
|---|---|
| public static NkCommandBuffer noverlay(long struct) | |
| npool | back to summary |
|---|---|
| public static NkPool npool(long struct) | |
| nseq | back to summary |
|---|---|
| public static int nseq(long struct) | |
| nstacks | back to summary |
|---|---|
| public static NkConfigurationStacks nstacks(long struct) Unsafe version of | |
| nstyle | back to summary |
|---|---|
| public static NkStyle nstyle(long struct) Unsafe version of | |
| ntext_edit | back to summary |
|---|---|
| public static NkTextEdit ntext_edit(long struct) | |
| nuse_pool | back to summary |
|---|---|
| public static int nuse_pool(long struct) | |
| nuserdata | back to summary |
|---|---|
| public static NkHandle nuserdata(long struct) | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| stacks | back to summary |
|---|---|
public NkConfigurationStacks stacks()
| |
| style | back to summary |
|---|---|
public NkStyle style()
| |