Package org.lwjgl.nuklear
Class NkCommandBuffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkCommandBuffer
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkCommandBuffer extends org.lwjgl.system.StructLayout
struct nk_command_buffer {struct nk_buffer* base;struct nk_rectclip; int use_clipping;nk_handleuserdata; nk_size begin; nk_size end; nk_size last; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkCommandBuffer.BufferAn array ofNkCommandBufferstructs.
-
Constructor Summary
Constructors Constructor Description NkCommandBuffer(java.nio.ByteBuffer container)Creates aNkCommandBufferinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkBufferbase()Returns aNkBufferview of the struct pointed to by thebasefield.longbegin()Returns the value of thebeginfield.NkRectclip()Returns aNkRectview of theclipfield.NkCommandBufferclip(java.util.function.Consumer<NkRect> consumer)Passes theclipfield to the specifiedConsumer.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 NkCommandBuffercreateSafe(long address)static NkCommandBuffer.BuffercreateSafe(long address, int capacity)longend()Returns the value of theendfield.longlast()Returns the value of thelastfield.static 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()intuse_clipping()Returns the value of theuse_clippingfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkCommandBufferuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.
-
-
-
Constructor Detail
-
NkCommandBuffer
public NkCommandBuffer(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
base
@Nullable public NkBuffer base()
Returns aNkBufferview of the struct pointed to by thebasefield.
-
clip
public NkCommandBuffer clip(java.util.function.Consumer<NkRect> consumer)
Passes theclipfield to the specifiedConsumer.
-
use_clipping
public int use_clipping()
Returns the value of theuse_clippingfield.
-
userdata
public NkCommandBuffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
begin
public long begin()
Returns the value of thebeginfield.
-
end
public long end()
Returns the value of theendfield.
-
last
public long last()
Returns the value of thelastfield.
-
create
public static NkCommandBuffer create(long address)
Returns a newNkCommandBufferinstance for the specified memory address.
-
createSafe
@Nullable public static NkCommandBuffer createSafe(long address)
-
create
public static NkCommandBuffer.Buffer create(long address, int capacity)
Create aNkCommandBuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkCommandBuffer.Buffer createSafe(long address, int capacity)
-
nuse_clipping
public static int nuse_clipping(long struct)
Unsafe version ofuse_clipping().
-
nuserdata
public static NkHandle nuserdata(long struct)
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().
-
-