Package org.lwjgl.nuklear
Class NkCommandBuffer
- All Implemented Interfaces:
Pointer
struct nk_command_buffer {
{@link NkBuffer struct nk_buffer} * base;
{@link NkRect struct nk_rect} clip;
int use_clipping;
{@link NkHandle nk_handle} userdata;
nk_size begin;
nk_size end;
nk_size last;
}
-
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 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 member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNkCommandBuffer
(ByteBuffer container) Creates aNkCommandBuffer
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescription@Nullable NkBuffer
base()
long
begin()
clip()
static NkCommandBuffer
create
(long address) Returns a newNkCommandBuffer
instance for the specified memory address.static NkCommandBuffer.Buffer
create
(long address, int capacity) Create aNkCommandBuffer.Buffer
instance at the specified memory.static @Nullable NkCommandBuffer
createSafe
(long address) static @Nullable NkCommandBuffer.Buffer
createSafe
(long address, int capacity) long
end()
long
last()
static @Nullable NkBuffer
nbase
(long struct) Unsafe version ofbase()
.static long
nbegin
(long struct) Unsafe version ofbegin()
.static NkRect
nclip
(long struct) Unsafe version ofclip()
.static long
nend
(long struct) Unsafe version ofend()
.static long
nlast
(long struct) Unsafe version oflast()
.static int
nuse_clipping
(long struct) Unsafe version ofuse_clipping()
.static NkHandle
nuserdata
(long struct) Unsafe version ofuserdata()
.int
sizeof()
Returnssizeof(struct)
.int
userdata()
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. -
BASE
public static final int BASEThe struct member offsets. -
CLIP
public static final int CLIPThe struct member offsets. -
USE_CLIPPING
public static final int USE_CLIPPINGThe struct member offsets. -
USERDATA
public static final int USERDATAThe struct member offsets. -
BEGIN
public static final int BEGINThe struct member offsets. -
END
public static final int ENDThe struct member offsets. -
LAST
public static final int LASTThe struct member offsets.
-
-
Constructor Details
-
NkCommandBuffer
Creates aNkCommandBuffer
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<NkCommandBuffer>
-
base
- Returns:
- a
NkBuffer
view of the struct pointed to by thebase
field.
-
clip
- Returns:
- a
NkRect
view of theclip
field.
-
use_clipping
public int use_clipping()- Returns:
- the value of the
use_clipping
field.
-
userdata
- Returns:
- a
NkHandle
view of theuserdata
field.
-
begin
public long begin()- Returns:
- the value of the
begin
field.
-
end
public long end()- Returns:
- the value of the
end
field.
-
last
public long last()- Returns:
- the value of the
last
field.
-
create
Returns a newNkCommandBuffer
instance for the specified memory address. -
createSafe
-
create
Create aNkCommandBuffer.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nbase
Unsafe version ofbase()
. -
nclip
Unsafe version ofclip()
. -
nuse_clipping
public static int nuse_clipping(long struct) Unsafe version ofuse_clipping()
. -
nuserdata
Unsafe version ofuserdata()
. -
nbegin
public static long nbegin(long struct) Unsafe version ofbegin()
. -
nend
public static long nend(long struct) Unsafe version ofend()
. -
nlast
public static long nlast(long struct) Unsafe version oflast()
.
-