public class NkKeyboard
extends org.lwjgl.system.Struct
struct nk_keyboard {
struct nk_key keys[NK_KEY_MAX];
char text[NK_INPUT_MAX];
int text_len;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkKeyboard.Buffer
An array of
NkKeyboard structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
KEYS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEXT
The struct member offsets.
|
static int |
TEXT_LEN
The struct member offsets.
|
| Constructor and Description |
|---|
NkKeyboard(java.nio.ByteBuffer container)
Creates a
NkKeyboard instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkKeyboard |
create(long address)
Returns a new
NkKeyboard instance for the specified memory address. |
static NkKeyboard.Buffer |
create(long address,
int capacity)
Create a
NkKeyboard.Buffer instance at the specified memory. |
static NkKeyboard |
createSafe(long address)
|
static NkKeyboard.Buffer |
createSafe(long address,
int capacity)
|
NkKey.Buffer |
keys()
Returns a
NkKey.Buffer view of the keys field. |
NkKey |
keys(int index)
Returns a
NkKey view of the struct at the specified index of the keys field. |
static NkKey.Buffer |
nkeys(long struct)
Unsafe version of
keys(). |
static NkKey |
nkeys(long struct,
int index)
Unsafe version of
keys. |
static int |
ntext_len(long struct)
Unsafe version of
text_len(). |
static java.nio.ByteBuffer |
ntext(long struct)
Unsafe version of
text(). |
static byte |
ntext(long struct,
int index)
Unsafe version of
text. |
int |
sizeof() |
int |
text_len()
Returns the value of the
text_len field. |
java.nio.ByteBuffer |
text()
Returns a
ByteBuffer view of the text field. |
byte |
text(int index)
Returns the value at the specified index of the
text field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int KEYS
public static final int TEXT
public static final int TEXT_LEN
public NkKeyboard(java.nio.ByteBuffer container)
NkKeyboard 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 NkKey.Buffer keys()
NkKey.Buffer view of the keys field.public NkKey keys(int index)
NkKey view of the struct at the specified index of the keys field.public java.nio.ByteBuffer text()
ByteBuffer view of the text field.public byte text(int index)
text field.public int text_len()
text_len field.public static NkKeyboard create(long address)
NkKeyboard instance for the specified memory address.@Nullable public static NkKeyboard createSafe(long address)
public static NkKeyboard.Buffer create(long address, int capacity)
NkKeyboard.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkKeyboard.Buffer createSafe(long address, int capacity)
public static NkKey.Buffer nkeys(long struct)
keys().public static java.nio.ByteBuffer ntext(long struct)
text().public static byte ntext(long struct,
int index)
text.public static int ntext_len(long struct)
text_len().Copyright LWJGL. All Rights Reserved. License terms.