public class NkCommandBuffer
extends org.lwjgl.system.Struct
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkCommandBuffer.Buffer
An array of
NkCommandBuffer structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BASE
The struct member offsets.
|
static int |
BEGIN
The struct member offsets.
|
static int |
CLIP
The struct member offsets.
|
static int |
END
The struct member offsets.
|
static int |
LAST
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
USE_CLIPPING
The struct member offsets.
|
static int |
USERDATA
The struct member offsets.
|
| Constructor and Description |
|---|
NkCommandBuffer(java.nio.ByteBuffer container)
Creates a
NkCommandBuffer instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkBuffer |
base()
Returns a
NkBuffer view of the struct pointed to by the base field. |
long |
begin()
Returns the value of the
begin field. |
NkRect |
clip()
Returns a
NkRect view of the clip field. |
static NkCommandBuffer |
create(long address)
Returns a new
NkCommandBuffer instance for the specified memory address. |
static NkCommandBuffer.Buffer |
create(long address,
int capacity)
Create a
NkCommandBuffer.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 the
end field. |
long |
last()
Returns the value of the
last field. |
static NkBuffer |
nbase(long struct)
Unsafe version of
base(). |
static long |
nbegin(long struct)
Unsafe version of
begin(). |
static NkRect |
nclip(long struct)
Unsafe version of
clip(). |
static long |
nend(long struct)
Unsafe version of
end(). |
static long |
nlast(long struct)
Unsafe version of
last(). |
static int |
nuse_clipping(long struct)
Unsafe version of
use_clipping(). |
static NkHandle |
nuserdata(long struct)
Unsafe version of
userdata(). |
int |
sizeof() |
int |
use_clipping()
Returns the value of the
use_clipping field. |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BASE
public static final int CLIP
public static final int USE_CLIPPING
public static final int USERDATA
public static final int BEGIN
public static final int END
public static final int LAST
public NkCommandBuffer(java.nio.ByteBuffer container)
NkCommandBuffer instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Struct@Nullable public NkBuffer base()
NkBuffer view of the struct pointed to by the base field.public int use_clipping()
use_clipping field.public long begin()
begin field.public long end()
end field.public long last()
last field.public static NkCommandBuffer create(long address)
NkCommandBuffer instance for the specified memory address.@Nullable public static NkCommandBuffer createSafe(long address)
public static NkCommandBuffer.Buffer create(long address, int capacity)
NkCommandBuffer.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkCommandBuffer.Buffer createSafe(long address, int capacity)
public static int nuse_clipping(long struct)
use_clipping().public static NkHandle nuserdata(long struct)
userdata().public static long nbegin(long struct)
begin().public static long nend(long struct)
end().public static long nlast(long struct)
last().Copyright LWJGL. All Rights Reserved. License terms.