public class NkCommand
extends org.lwjgl.system.Struct
struct nk_command {
enum nk_command_type type;
nk_size next;
nk_handle userdata;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkCommand.Buffer
An array of
NkCommand structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
static int |
USERDATA
The struct member offsets.
|
| Constructor and Description |
|---|
NkCommand(java.nio.ByteBuffer container)
Creates a
NkCommand instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkCommand |
create(long address)
Returns a new
NkCommand instance for the specified memory address. |
static NkCommand.Buffer |
create(long address,
int capacity)
Create a
NkCommand.Buffer instance at the specified memory. |
static NkCommand |
createSafe(long address)
|
static NkCommand.Buffer |
createSafe(long address,
int capacity)
|
long |
next()
Returns the value of the
next field. |
static long |
nnext(long struct)
Unsafe version of
next(). |
static int |
ntype(long struct)
Unsafe version of
type(). |
static NkHandle |
nuserdata(long struct)
Unsafe version of
userdata(). |
int |
sizeof() |
int |
type()
Returns the value of the
type 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 TYPE
public static final int NEXT
public static final int USERDATA
public NkCommand(java.nio.ByteBuffer container)
NkCommand 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.Structpublic int type()
type field.public long next()
next field.public static NkCommand create(long address)
NkCommand instance for the specified memory address.@Nullable public static NkCommand createSafe(long address)
public static NkCommand.Buffer create(long address, int capacity)
NkCommand.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkCommand.Buffer createSafe(long address, int capacity)
public static int ntype(long struct)
type().public static long nnext(long struct)
next().public static NkHandle nuserdata(long struct)
userdata().Copyright LWJGL. All Rights Reserved. License terms.