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.Struct
Layout
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 Classes Modifier and Type Class Description static class
NkCommandBuffer.Buffer
An array ofNkCommandBuffer
structs.
-
Constructor Summary
Constructors Constructor Description NkCommandBuffer(java.nio.ByteBuffer container)
Creates aNkCommandBuffer
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkBuffer
base()
Returns aNkBuffer
view of the struct pointed to by thebase
field.long
begin()
Returns the value of thebegin
field.NkRect
clip()
Returns aNkRect
view of theclip
field.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 NkCommandBuffer
createSafe(long address)
static NkCommandBuffer.Buffer
createSafe(long address, int capacity)
long
end()
Returns the value of theend
field.long
last()
Returns the value of thelast
field.static 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()
int
use_clipping()
Returns the value of theuse_clipping
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.
-
-
-
Constructor Detail
-
NkCommandBuffer
public NkCommandBuffer(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
base
@Nullable public NkBuffer base()
Returns aNkBuffer
view of the struct pointed to by thebase
field.
-
use_clipping
public int use_clipping()
Returns the value of theuse_clipping
field.
-
begin
public long begin()
Returns the value of thebegin
field.
-
end
public long end()
Returns the value of theend
field.
-
last
public long last()
Returns the value of thelast
field.
-
create
public static NkCommandBuffer create(long address)
Returns a newNkCommandBuffer
instance 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.Buffer
instance 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()
.
-
-