Package org.lwjgl.nuklear
Class NkPopupState
- All Implemented Interfaces:
Pointer
struct nk_popup_state {
struct nk_window * win;
enum nk_panel_type type;
struct nk_popup_buffer buf;
nk_hash name;
nk_bool active;
unsigned combo_count;
unsigned con_count;
unsigned con_old;
unsigned active_con;
struct nk_rect header;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aNkPopupStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()intbuf()intintintcon_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 @Nullable NkPopupStatecreateSafe(long address) static @Nullable NkPopupState.BuffercreateSafe(long address, int capacity) header()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()Returnssizeof(struct).inttype()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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkPopupState>
-
win
- Returns:
- a
NkWindowview of the struct pointed to by thewinfield.
-
type
public int type()- Returns:
- the value of the
typefield.
-
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.
-
header
- Returns:
- a
NkRectview of theheaderfield.
-
create
Returns a newNkPopupStateinstance for the specified memory address. -
createSafe
-
create
Create aNkPopupState.Bufferinstance 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().
-