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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aNkKeyboardinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic NkKeyboardcreate(long address) Returns a newNkKeyboardinstance for the specified memory address.static NkKeyboard.Buffercreate(long address, int capacity) Create aNkKeyboard.Bufferinstance at the specified memory.static @Nullable NkKeyboardcreateSafe(long address) static @Nullable NkKeyboard.BuffercreateSafe(long address, int capacity) keys()keys(int index) static NkKey.Buffernkeys(long struct) Unsafe version ofkeys().static NkKeynkeys(long struct, int index) Unsafe version ofkeys.static ByteBufferntext(long struct) Unsafe version oftext().static bytentext(long struct, int index) Unsafe version oftext.static intntext_len(long struct) Unsafe version oftext_len().intsizeof()Returnssizeof(struct).text()bytetext(int index) inttext_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 aNkKeyboardinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkKeyboard>
-
keys
- Returns:
- a
NkKey.Buffer view of thekeysfield.
-
keys
- Returns:
- a
NkKeyview of the struct at the specified index of thekeysfield.
-
text
- Returns:
- a
ByteBufferview of thetextfield.
-
text
public byte text(int index) - Returns:
- the value at the specified index of the
textfield.
-
text_len
public int text_len()- Returns:
- the value of the
text_lenfield.
-
create
Returns a newNkKeyboardinstance for the specified memory address. -
createSafe
-
create
Create aNkKeyboard.Bufferinstance 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().
-