public class NkPopupState
extends org.lwjgl.system.Struct
type – one of:PANEL_NONE | PANEL_WINDOW | PANEL_GROUP | PANEL_POPUP | PANEL_CONTEXTUAL | PANEL_COMBO |
PANEL_MENU | PANEL_TOOLTIP | PANEL_SET_NONBLOCK | PANEL_SET_POPUP | PANEL_SET_SUB |
struct nk_popup_state {
struct nk_window * win;
enum nk_panel_type type;
struct nk_popup_buffer buf;
nk_hash name;
int active;
unsigned combo_count;
unsigned con_count;
unsigned con_old;
unsigned active_con;
struct nk_rect header;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkPopupState.Buffer
An array of
NkPopupState structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The struct member offsets.
|
static int |
ACTIVE_CON
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUF
The struct member offsets.
|
static int |
COMBO_COUNT
The struct member offsets.
|
static int |
CON_COUNT
The struct member offsets.
|
static int |
CON_OLD
The struct member offsets.
|
static int |
HEADER
The struct member offsets.
|
static int |
NAME
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
static int |
WIN
The struct member offsets.
|
| Constructor and Description |
|---|
NkPopupState(java.nio.ByteBuffer container)
Creates a
NkPopupState instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
active_con()
Returns the value of the
active_con field. |
int |
active()
Returns the value of the
active field. |
NkPopupBuffer |
buf()
Returns a
NkPopupBuffer view of the buf field. |
int |
combo_count()
Returns the value of the
combo_count field. |
int |
con_count()
Returns the value of the
con_count field. |
int |
con_old()
Returns the value of the
con_old field. |
static NkPopupState |
create(long address)
Returns a new
NkPopupState instance for the specified memory address. |
static NkPopupState.Buffer |
create(long address,
int capacity)
Create a
NkPopupState.Buffer instance at the specified memory. |
static NkPopupState |
createSafe(long address)
|
static NkPopupState.Buffer |
createSafe(long address,
int capacity)
|
NkRect |
header()
Returns a
NkRect view of the header field. |
static int |
nactive_con(long struct)
Unsafe version of
active_con(). |
static int |
nactive(long struct)
Unsafe version of
active(). |
int |
name()
Returns the value of the
name field. |
static NkPopupBuffer |
nbuf(long struct)
Unsafe version of
buf(). |
static int |
ncombo_count(long struct)
Unsafe version of
combo_count(). |
static int |
ncon_count(long struct)
Unsafe version of
con_count(). |
static int |
ncon_old(long struct)
Unsafe version of
con_old(). |
static NkRect |
nheader(long struct)
Unsafe version of
header(). |
static int |
nname(long struct)
Unsafe version of
name(). |
static int |
ntype(long struct)
Unsafe version of
type(). |
static NkWindow |
nwin(long struct)
Unsafe version of
win(). |
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
NkWindow |
win()
Returns a
NkWindow view of the struct pointed to by the win field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int WIN
public static final int TYPE
public static final int BUF
public static final int NAME
public static final int ACTIVE
public static final int COMBO_COUNT
public static final int CON_COUNT
public static final int CON_OLD
public static final int ACTIVE_CON
public static final int HEADER
public NkPopupState(java.nio.ByteBuffer container)
NkPopupState 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 type()
type field.public NkPopupBuffer buf()
NkPopupBuffer view of the buf field.public int name()
name field.public int active()
active field.public int combo_count()
combo_count field.public int con_count()
con_count field.public int con_old()
con_old field.public int active_con()
active_con field.public static NkPopupState create(long address)
NkPopupState instance for the specified memory address.@Nullable public static NkPopupState createSafe(long address)
public static NkPopupState.Buffer create(long address, int capacity)
NkPopupState.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkPopupState.Buffer createSafe(long address, int capacity)
public static int ntype(long struct)
type().public static NkPopupBuffer nbuf(long struct)
buf().public static int nname(long struct)
name().public static int nactive(long struct)
active().public static int ncombo_count(long struct)
combo_count().public static int ncon_count(long struct)
con_count().public static int ncon_old(long struct)
con_old().public static int nactive_con(long struct)
active_con().Copyright LWJGL. All Rights Reserved. License terms.