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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aNkPopupBuffer
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
long
begin()
static NkPopupBuffer
create
(long address) Returns a newNkPopupBuffer
instance for the specified memory address.static NkPopupBuffer.Buffer
create
(long address, int capacity) Create aNkPopupBuffer.Buffer
instance at the specified memory.static @Nullable NkPopupBuffer
createSafe
(long address) static @Nullable NkPopupBuffer.Buffer
createSafe
(long address, int capacity) long
end()
long
last()
static boolean
nactive
(long struct) Unsafe version ofactive()
.static long
nbegin
(long struct) Unsafe version ofbegin()
.static long
nend
(long struct) Unsafe version ofend()
.static long
nlast
(long struct) Unsafe version oflast()
.static long
nparent
(long struct) Unsafe version ofparent()
.long
parent()
int
sizeof()
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 aNkPopupBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkPopupBuffer>
-
begin
public long begin()- Returns:
- the value of the
begin
field.
-
parent
public long parent()- Returns:
- the value of the
parent
field.
-
last
public long last()- Returns:
- the value of the
last
field.
-
end
public long end()- Returns:
- the value of the
end
field.
-
active
public boolean active()- Returns:
- the value of the
active
field.
-
create
Returns a newNkPopupBuffer
instance for the specified memory address. -
createSafe
-
create
Create aNkPopupBuffer.Buffer
instance 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()
.
-