Package org.lwjgl.nuklear
Class NkPopupBuffer
- All Implemented Interfaces:
Pointer
struct nk_popup_buffer {
nk_size begin;
nk_size parent;
nk_size last;
nk_size end;
nk_bool active;
}-
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 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkPopupBuffer(ByteBuffer container) Creates aNkPopupBufferinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()longbegin()static NkPopupBuffercreate(long address) Returns a newNkPopupBufferinstance for the specified memory address.static NkPopupBuffer.Buffercreate(long address, int capacity) Create aNkPopupBuffer.Bufferinstance at the specified memory.static @Nullable NkPopupBuffercreateSafe(long address) static @Nullable NkPopupBuffer.BuffercreateSafe(long address, int capacity) longend()longlast()static booleannactive(long struct) Unsafe version ofactive().static longnbegin(long struct) Unsafe version ofbegin().static longnend(long struct) Unsafe version ofend().static longnlast(long struct) Unsafe version oflast().static longnparent(long struct) Unsafe version ofparent().longparent()intsizeof()Returnssizeof(struct).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. -
BEGIN
public static final int BEGINThe struct member offsets. -
PARENT
public static final int PARENTThe struct member offsets. -
LAST
public static final int LASTThe struct member offsets. -
END
public static final int ENDThe struct member offsets. -
ACTIVE
public static final int ACTIVEThe struct member offsets.
-
-
Constructor Details
-
NkPopupBuffer
Creates aNkPopupBufferinstance 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<NkPopupBuffer>
-
begin
public long begin()- Returns:
- the value of the
beginfield.
-
parent
public long parent()- Returns:
- the value of the
parentfield.
-
last
public long last()- Returns:
- the value of the
lastfield.
-
end
public long end()- Returns:
- the value of the
endfield.
-
active
public boolean active()- Returns:
- the value of the
activefield.
-
create
Returns a newNkPopupBufferinstance for the specified memory address. -
createSafe
-
create
Create aNkPopupBuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nbegin
public static long nbegin(long struct) Unsafe version ofbegin(). -
nparent
public static long nparent(long struct) Unsafe version ofparent(). -
nlast
public static long nlast(long struct) Unsafe version oflast(). -
nend
public static long nend(long struct) Unsafe version ofend(). -
nactive
public static boolean nactive(long struct) Unsafe version ofactive().
-