Package org.lwjgl.nuklear
Class NkKeyboard
- All Implemented Interfaces:
Pointer
struct nk_keyboard {
{@link NkKey struct nk_key} keys[NK_KEY_MAX];
char text[NK_INPUT_MAX];
int text_len;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNkKeyboard
(ByteBuffer container) Creates aNkKeyboard
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic NkKeyboard
create
(long address) Returns a newNkKeyboard
instance for the specified memory address.static NkKeyboard.Buffer
create
(long address, int capacity) Create aNkKeyboard.Buffer
instance at the specified memory.static @Nullable NkKeyboard
createSafe
(long address) static @Nullable NkKeyboard.Buffer
createSafe
(long address, int capacity) keys()
keys
(int index) static NkKey.Buffer
nkeys
(long struct) Unsafe version ofkeys()
.static NkKey
nkeys
(long struct, int index) Unsafe version ofkeys
.static ByteBuffer
ntext
(long struct) Unsafe version oftext()
.static byte
ntext
(long struct, int index) Unsafe version oftext
.static int
ntext_len
(long struct) Unsafe version oftext_len()
.int
sizeof()
Returnssizeof(struct)
.text()
byte
text
(int index) int
text_len()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
KEYS
public static final int KEYSThe struct member offsets. -
TEXT
public static final int TEXTThe struct member offsets. -
TEXT_LEN
public static final int TEXT_LENThe struct member offsets.
-
-
Constructor Details
-
NkKeyboard
Creates aNkKeyboard
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkKeyboard>
-
keys
- Returns:
- a
NkKey
.Buffer view of thekeys
field.
-
keys
- Returns:
- a
NkKey
view of the struct at the specified index of thekeys
field.
-
text
- Returns:
- a
ByteBuffer
view of thetext
field.
-
text
public byte text(int index) - Returns:
- the value at the specified index of the
text
field.
-
text_len
public int text_len()- Returns:
- the value of the
text_len
field.
-
create
Returns a newNkKeyboard
instance for the specified memory address. -
createSafe
-
create
Create aNkKeyboard.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nkeys
Unsafe version ofkeys()
. -
nkeys
Unsafe version ofkeys
. -
ntext
Unsafe version oftext()
. -
ntext
public static byte ntext(long struct, int index) Unsafe version oftext
. -
ntext_len
public static int ntext_len(long struct) Unsafe version oftext_len()
.
-