public class NkWindow
extends org.lwjgl.system.Struct
struct nk_window {
unsigned int seq;
nk_hash name;
char name_string[64];
nk_flags flags;
struct nk_rect bounds;
struct nk_scroll scrollbar;
struct nk_command_buffer buffer;
struct nk_panel * layout;
float scrollbar_hiding_timer;
struct nk_property_state property;
struct nk_popup_state popup;
struct nk_edit_state edit;
unsigned int scrolled;
struct nk_table * tables;
unsigned int table_count;
struct nk_window * next;
struct nk_window * prev;
struct nk_window * parent;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkWindow.Buffer
An array of
NkWindow structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BOUNDS
The struct member offsets.
|
static int |
BUFFER
The struct member offsets.
|
static int |
EDIT
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
LAYOUT
The struct member offsets.
|
static int |
NAME
The struct member offsets.
|
static int |
NAME_STRING
The struct member offsets.
|
static int |
NEXT
The struct member offsets.
|
static int |
PARENT
The struct member offsets.
|
static int |
POPUP
The struct member offsets.
|
static int |
PREV
The struct member offsets.
|
static int |
PROPERTY
The struct member offsets.
|
static int |
SCROLLBAR
The struct member offsets.
|
static int |
SCROLLBAR_HIDING_TIMER
The struct member offsets.
|
static int |
SCROLLED
The struct member offsets.
|
static int |
SEQ
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TABLE_COUNT
The struct member offsets.
|
static int |
TABLES
The struct member offsets.
|
| Constructor and Description |
|---|
NkWindow(java.nio.ByteBuffer container)
Creates a
NkWindow instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkRect |
bounds()
Returns a
NkRect view of the bounds field. |
NkCommandBuffer |
buffer()
Returns a
NkCommandBuffer view of the buffer field. |
static NkWindow |
create(long address)
Returns a new
NkWindow instance for the specified memory address. |
static NkWindow.Buffer |
create(long address,
int capacity)
Create a
NkWindow.Buffer instance at the specified memory. |
static NkWindow |
createSafe(long address)
|
static NkWindow.Buffer |
createSafe(long address,
int capacity)
|
NkEditState |
edit()
Returns a
NkEditState view of the edit field. |
int |
flags()
Returns the value of the
flags field. |
NkPanel |
layout()
Returns a
NkPanel view of the struct pointed to by the layout field. |
java.nio.ByteBuffer |
name_string()
Returns a
ByteBuffer view of the name_string field. |
java.lang.String |
name_stringString()
Decodes the null-terminated string stored in the
name_string field. |
int |
name()
Returns the value of the
name field. |
static NkRect |
nbounds(long struct)
Unsafe version of
bounds(). |
static NkCommandBuffer |
nbuffer(long struct)
Unsafe version of
buffer(). |
static NkEditState |
nedit(long struct)
Unsafe version of
edit(). |
NkWindow |
next()
Returns a
NkWindow view of the struct pointed to by the next field. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static NkPanel |
nlayout(long struct)
Unsafe version of
layout(). |
static java.nio.ByteBuffer |
nname_string(long struct)
Unsafe version of
name_string(). |
static java.lang.String |
nname_stringString(long struct)
Unsafe version of
name_stringString(). |
static int |
nname(long struct)
Unsafe version of
name(). |
static NkWindow |
nnext(long struct)
Unsafe version of
next(). |
static NkWindow |
nparent(long struct)
Unsafe version of
parent(). |
static NkPopupState |
npopup(long struct)
Unsafe version of
popup(). |
static NkWindow |
nprev(long struct)
Unsafe version of
prev(). |
static NkPropertyState |
nproperty(long struct)
Unsafe version of
property(). |
static float |
nscrollbar_hiding_timer(long struct)
Unsafe version of
scrollbar_hiding_timer(). |
static NkScroll |
nscrollbar(long struct)
Unsafe version of
scrollbar(). |
static int |
nscrolled(long struct)
Unsafe version of
scrolled(). |
static int |
nseq(long struct)
Unsafe version of
seq(). |
static int |
ntable_count(long struct)
Unsafe version of
table_count(). |
static long |
ntables(long struct)
Unsafe version of
tables(). |
NkWindow |
parent()
Returns a
NkWindow view of the struct pointed to by the parent field. |
NkPopupState |
popup()
Returns a
NkPopupState view of the popup field. |
NkWindow |
prev()
Returns a
NkWindow view of the struct pointed to by the prev field. |
NkPropertyState |
property()
Returns a
NkPropertyState view of the property field. |
float |
scrollbar_hiding_timer()
Returns the value of the
scrollbar_hiding_timer field. |
NkScroll |
scrollbar()
Returns a
NkScroll view of the scrollbar field. |
int |
scrolled()
Returns the value of the
scrolled field. |
int |
seq()
Returns the value of the
seq field. |
int |
sizeof() |
int |
table_count()
Returns the value of the
table_count field. |
long |
tables()
Returns the value of the
tables field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SEQ
public static final int NAME
public static final int NAME_STRING
public static final int FLAGS
public static final int BOUNDS
public static final int SCROLLBAR
public static final int BUFFER
public static final int LAYOUT
public static final int SCROLLBAR_HIDING_TIMER
public static final int PROPERTY
public static final int POPUP
public static final int EDIT
public static final int SCROLLED
public static final int TABLES
public static final int TABLE_COUNT
public static final int NEXT
public static final int PREV
public static final int PARENT
public NkWindow(java.nio.ByteBuffer container)
NkWindow 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 int seq()
seq field.public int name()
name field.public java.nio.ByteBuffer name_string()
ByteBuffer view of the name_string field.public java.lang.String name_stringString()
name_string field.public int flags()
flags field.public NkCommandBuffer buffer()
NkCommandBuffer view of the buffer field.public float scrollbar_hiding_timer()
scrollbar_hiding_timer field.public NkPropertyState property()
NkPropertyState view of the property field.public NkPopupState popup()
NkPopupState view of the popup field.public NkEditState edit()
NkEditState view of the edit field.public int scrolled()
scrolled field.public long tables()
tables field.public int table_count()
table_count field.public NkWindow parent()
NkWindow view of the struct pointed to by the parent field.public static NkWindow create(long address)
NkWindow instance for the specified memory address.@Nullable public static NkWindow createSafe(long address)
public static NkWindow.Buffer create(long address, int capacity)
NkWindow.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkWindow.Buffer createSafe(long address, int capacity)
public static int nseq(long struct)
seq().public static int nname(long struct)
name().public static java.nio.ByteBuffer nname_string(long struct)
name_string().public static java.lang.String nname_stringString(long struct)
name_stringString().public static int nflags(long struct)
flags().public static NkScroll nscrollbar(long struct)
scrollbar().public static NkCommandBuffer nbuffer(long struct)
buffer().public static float nscrollbar_hiding_timer(long struct)
scrollbar_hiding_timer().public static NkPropertyState nproperty(long struct)
property().public static NkPopupState npopup(long struct)
popup().public static NkEditState nedit(long struct)
edit().public static int nscrolled(long struct)
scrolled().public static long ntables(long struct)
tables().public static int ntable_count(long struct)
table_count().Copyright LWJGL. All Rights Reserved. License terms.