Package org.lwjgl.nuklear
Class NkCommandBuffer
- All Implemented Interfaces:
Pointer
struct nk_command_buffer {
struct nk_buffer * base;
struct nk_rect clip;
int use_clipping;
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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 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
ConstructorsConstructorDescriptionNkCommandBuffer(ByteBuffer container) Creates aNkCommandBufferinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescription@Nullable NkBufferbase()longbegin()clip()static NkCommandBuffercreate(long address) Returns a newNkCommandBufferinstance for the specified memory address.static NkCommandBuffer.Buffercreate(long address, int capacity) Create aNkCommandBuffer.Bufferinstance at the specified memory.static @Nullable NkCommandBuffercreateSafe(long address) static @Nullable NkCommandBuffer.BuffercreateSafe(long address, int capacity) longend()longlast()static @Nullable NkBuffernbase(long struct) Unsafe version ofbase().static longnbegin(long struct) Unsafe version ofbegin().static NkRectnclip(long struct) Unsafe version ofclip().static longnend(long struct) Unsafe version ofend().static longnlast(long struct) Unsafe version oflast().static intnuse_clipping(long struct) Unsafe version ofuse_clipping().static NkHandlenuserdata(long struct) Unsafe version ofuserdata().intsizeof()Returnssizeof(struct).intuserdata()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 aNkCommandBufferinstance 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<NkCommandBuffer>
-
base
- Returns:
- a
NkBufferview of the struct pointed to by thebasefield.
-
clip
- Returns:
- a
NkRectview of theclipfield.
-
use_clipping
public int use_clipping()- Returns:
- the value of the
use_clippingfield.
-
userdata
- Returns:
- a
NkHandleview of theuserdatafield.
-
begin
public long begin()- Returns:
- the value of the
beginfield.
-
end
public long end()- Returns:
- the value of the
endfield.
-
last
public long last()- Returns:
- the value of the
lastfield.
-
create
Returns a newNkCommandBufferinstance for the specified memory address. -
createSafe
-
create
Create aNkCommandBuffer.Bufferinstance 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().
-