Package org.lwjgl.nuklear
Class NkPopupState
- All Implemented Interfaces:
Pointer
struct nk_popup_state {
{@link NkWindow struct nk_window} * win;
enum nk_panel_type type;
{@link NkPopupBuffer struct nk_popup_buffer} buf;
nk_hash name;
nk_bool active;
unsigned combo_count;
unsigned con_count;
unsigned con_old;
unsigned active_con;
{@link NkRect struct nk_rect} header;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNkPopupState
(ByteBuffer container) Creates aNkPopupState
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
int
buf()
int
int
int
con_old()
static NkPopupState
create
(long address) Returns a newNkPopupState
instance for the specified memory address.static NkPopupState.Buffer
create
(long address, int capacity) Create aNkPopupState.Buffer
instance at the specified memory.static @Nullable NkPopupState
createSafe
(long address) static @Nullable NkPopupState.Buffer
createSafe
(long address, int capacity) header()
static boolean
nactive
(long struct) Unsafe version ofactive()
.static int
nactive_con
(long struct) Unsafe version ofactive_con()
.int
name()
static NkPopupBuffer
nbuf
(long struct) Unsafe version ofbuf()
.static int
ncombo_count
(long struct) Unsafe version ofcombo_count()
.static int
ncon_count
(long struct) Unsafe version ofcon_count()
.static int
ncon_old
(long struct) Unsafe version ofcon_old()
.static NkRect
nheader
(long struct) Unsafe version ofheader()
.static int
nname
(long struct) Unsafe version ofname()
.static int
ntype
(long struct) Unsafe version oftype()
.static NkWindow
nwin
(long struct) Unsafe version ofwin()
.int
sizeof()
Returnssizeof(struct)
.int
type()
win()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
WIN
public static final int WINThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
BUF
public static final int BUFThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
ACTIVE
public static final int ACTIVEThe struct member offsets. -
COMBO_COUNT
public static final int COMBO_COUNTThe struct member offsets. -
CON_COUNT
public static final int CON_COUNTThe struct member offsets. -
CON_OLD
public static final int CON_OLDThe struct member offsets. -
ACTIVE_CON
public static final int ACTIVE_CONThe struct member offsets. -
HEADER
public static final int HEADERThe struct member offsets.
-
-
Constructor Details
-
NkPopupState
Creates aNkPopupState
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkPopupState>
-
win
- Returns:
- a
NkWindow
view of the struct pointed to by thewin
field.
-
type
public int type()- Returns:
- the value of the
type
field.
-
buf
- Returns:
- a
NkPopupBuffer
view of thebuf
field.
-
name
public int name()- Returns:
- the value of the
name
field.
-
active
public boolean active()- Returns:
- the value of the
active
field.
-
combo_count
public int combo_count()- Returns:
- the value of the
combo_count
field.
-
con_count
public int con_count()- Returns:
- the value of the
con_count
field.
-
con_old
public int con_old()- Returns:
- the value of the
con_old
field.
-
active_con
public int active_con()- Returns:
- the value of the
active_con
field.
-
header
- Returns:
- a
NkRect
view of theheader
field.
-
create
Returns a newNkPopupState
instance for the specified memory address. -
createSafe
-
create
Create aNkPopupState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nwin
Unsafe version ofwin()
. -
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nbuf
Unsafe version ofbuf()
. -
nname
public static int nname(long struct) Unsafe version ofname()
. -
nactive
public static boolean nactive(long struct) Unsafe version ofactive()
. -
ncombo_count
public static int ncombo_count(long struct) Unsafe version ofcombo_count()
. -
ncon_count
public static int ncon_count(long struct) Unsafe version ofcon_count()
. -
ncon_old
public static int ncon_old(long struct) Unsafe version ofcon_old()
. -
nactive_con
public static int nactive_con(long struct) Unsafe version ofactive_con()
. -
nheader
Unsafe version ofheader()
.
-