Package org.lwjgl.nuklear
Class NkPopupState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkPopupState
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkPopupState extends org.lwjgl.system.Struct
Member documentation
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
Layout
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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkPopupState.Buffer
An array ofNkPopupState
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVE
ACTIVE_CONThe struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
BUF
COMBO_COUNT
CON_COUNT
CON_OLD
HEADER
NAMEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TYPE
WINThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkPopupState(java.nio.ByteBuffer container)
Creates aNkPopupState
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
active()
Returns the value of theactive
field.int
active_con()
Returns the value of theactive_con
field.NkPopupBuffer
buf()
Returns aNkPopupBuffer
view of thebuf
field.int
combo_count()
Returns the value of thecombo_count
field.int
con_count()
Returns the value of thecon_count
field.int
con_old()
Returns the value of thecon_old
field.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 NkPopupState
createSafe(long address)
static NkPopupState.Buffer
createSafe(long address, int capacity)
NkRect
header()
Returns aNkRect
view of theheader
field.static int
nactive(long struct)
Unsafe version ofactive()
.static int
nactive_con(long struct)
Unsafe version ofactive_con()
.int
name()
Returns the value of thename
field.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()
int
type()
Returns the value of thetype
field.NkWindow
win()
Returns aNkWindow
view of the struct pointed to by thewin
field.
-
-
-
Constructor Detail
-
NkPopupState
public NkPopupState(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
type
public int type()
Returns the value of thetype
field.
-
buf
public NkPopupBuffer buf()
Returns aNkPopupBuffer
view of thebuf
field.
-
name
public int name()
Returns the value of thename
field.
-
active
public int active()
Returns the value of theactive
field.
-
combo_count
public int combo_count()
Returns the value of thecombo_count
field.
-
con_count
public int con_count()
Returns the value of thecon_count
field.
-
con_old
public int con_old()
Returns the value of thecon_old
field.
-
active_con
public int active_con()
Returns the value of theactive_con
field.
-
create
public static NkPopupState create(long address)
Returns a newNkPopupState
instance for the specified memory address.
-
createSafe
@Nullable public static NkPopupState createSafe(long address)
-
create
public static NkPopupState.Buffer create(long address, int capacity)
Create aNkPopupState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkPopupState.Buffer createSafe(long address, int capacity)
-
ntype
public static int ntype(long struct)
Unsafe version oftype()
.
-
nbuf
public static NkPopupBuffer nbuf(long struct)
Unsafe version ofbuf()
.
-
nname
public static int nname(long struct)
Unsafe version ofname()
.
-
nactive
public static int 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()
.
-
-