public class NkKey
extends org.lwjgl.system.Struct
struct nk_key {
int down;
unsigned int clicked;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkKey.Buffer
An array of
NkKey structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CLICKED
The struct member offsets.
|
static int |
DOWN
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkKey(java.nio.ByteBuffer container)
Creates a
NkKey instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
clicked()
Returns the value of the
clicked field. |
static NkKey |
create(long address)
Returns a new
NkKey instance for the specified memory address. |
static NkKey.Buffer |
create(long address,
int capacity)
Create a
NkKey.Buffer instance at the specified memory. |
static NkKey |
createSafe(long address)
|
static NkKey.Buffer |
createSafe(long address,
int capacity)
|
int |
down()
Returns the value of the
down field. |
static int |
nclicked(long struct)
Unsafe version of
clicked(). |
static int |
ndown(long struct)
Unsafe version of
down(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DOWN
public static final int CLICKED
public NkKey(java.nio.ByteBuffer container)
NkKey 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 down()
down field.public int clicked()
clicked field.public static NkKey create(long address)
NkKey instance for the specified memory address.@Nullable public static NkKey createSafe(long address)
public static NkKey.Buffer create(long address, int capacity)
NkKey.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkKey.Buffer createSafe(long address, int capacity)
public static int ndown(long struct)
down().public static int nclicked(long struct)
clicked().Copyright LWJGL. All Rights Reserved. License terms.