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.StructMember documentation
type– one of:PANEL_NONEPANEL_WINDOWPANEL_GROUPPANEL_POPUPPANEL_CONTEXTUALPANEL_COMBOPANEL_MENUPANEL_TOOLTIPPANEL_SET_NONBLOCKPANEL_SET_POPUPPANEL_SET_SUB
Layout
struct nk_popup_state {struct nk_window* win; enum nk_panel_type type;struct nk_popup_bufferbuf; nk_hash name; int 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 intactive()Returns the value of theactivefield.intactive_con()Returns the value of theactive_confield.NkPopupBufferbuf()Returns aNkPopupBufferview of thebuffield.intcombo_count()Returns the value of thecombo_countfield.intcon_count()Returns the value of thecon_countfield.intcon_old()Returns the value of thecon_oldfield.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()Returns aNkRectview of theheaderfield.NkPopupStateheader(java.util.function.Consumer<NkRect> consumer)Passes theheaderfield to the specifiedConsumer.static intnactive(long struct)Unsafe version ofactive().static intnactive_con(long struct)Unsafe version ofactive_con().intname()Returns the value of thenamefield.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()Returns the value of thetypefield.NkWindowwin()Returns aNkWindowview of the struct pointed to by thewinfield.
-
-
-
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()
Returns the value of thetypefield.
-
buf
public NkPopupBuffer buf()
Returns aNkPopupBufferview of thebuffield.
-
name
public int name()
Returns the value of thenamefield.
-
active
public int active()
Returns the value of theactivefield.
-
combo_count
public int combo_count()
Returns the value of thecombo_countfield.
-
con_count
public int con_count()
Returns the value of thecon_countfield.
-
con_old
public int con_old()
Returns the value of thecon_oldfield.
-
active_con
public int active_con()
Returns the value of theactive_confield.
-
header
public NkPopupState header(java.util.function.Consumer<NkRect> consumer)
Passes theheaderfield to the specifiedConsumer.
-
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 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().
-
-