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.StructLayout
struct nk_popup_state {struct nk_window* win; enum nk_panel_typetype();struct nk_popup_bufferbuf; nk_hash name; nk_bool active; unsigned combo_count; unsigned con_count; unsigned con_old; unsigned active_con;struct nk_rectheader; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkPopupState.BufferAn array ofNkPopupStatestructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVE
ACTIVE_CONThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intBUF
COMBO_COUNT
CON_COUNT
CON_OLD
HEADER
NAMEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPE
WINThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkPopupState(java.nio.ByteBuffer container)Creates aNkPopupStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactive()intactive_con()NkPopupBufferbuf()intcombo_count()intcon_count()intcon_old()static NkPopupStatecreate(long address)Returns a newNkPopupStateinstance for the specified memory address.static NkPopupState.Buffercreate(long address, int capacity)Create aNkPopupState.Bufferinstance at the specified memory.static NkPopupStatecreateSafe(long address)static NkPopupState.BuffercreateSafe(long address, int capacity)NkRectheader()static booleannactive(long struct)Unsafe version ofactive().static intnactive_con(long struct)Unsafe version ofactive_con().intname()static NkPopupBuffernbuf(long struct)Unsafe version ofbuf().static intncombo_count(long struct)Unsafe version ofcombo_count().static intncon_count(long struct)Unsafe version ofcon_count().static intncon_old(long struct)Unsafe version ofcon_old().static NkRectnheader(long struct)Unsafe version ofheader().static intnname(long struct)Unsafe version ofname().static intntype(long struct)Unsafe version oftype().static NkWindownwin(long struct)Unsafe version ofwin().intsizeof()inttype()NkWindowwin()
-
-
-
Constructor Detail
-
NkPopupState
public NkPopupState(java.nio.ByteBuffer container)
Creates aNkPopupStateinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
-
buf
public NkPopupBuffer buf()
- Returns:
- a
NkPopupBufferview of thebuffield.
-
name
public int name()
- Returns:
- the value of the
namefield.
-
active
public boolean active()
- Returns:
- the value of the
activefield.
-
combo_count
public int combo_count()
- Returns:
- the value of the
combo_countfield.
-
con_count
public int con_count()
- Returns:
- the value of the
con_countfield.
-
con_old
public int con_old()
- Returns:
- the value of the
con_oldfield.
-
active_con
public int active_con()
- Returns:
- the value of the
active_confield.
-
create
public static NkPopupState create(long address)
Returns a newNkPopupStateinstance 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.Bufferinstance 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 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().
-
-