Package org.lwjgl.nuklear
Class NkKeyboard
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkKeyboard
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkKeyboard extends org.lwjgl.system.StructLayout
struct nk_keyboard {struct nk_keykeys[NK_KEY_MAX]; char text[NK_INPUT_MAX]; int text_len; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkKeyboard.BufferAn array ofNkKeyboardstructs.
-
Constructor Summary
Constructors Constructor Description NkKeyboard(java.nio.ByteBuffer container)Creates aNkKeyboardinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 NkKeyboardcreateSafe(long address)static NkKeyboard.BuffercreateSafe(long address, int capacity)NkKey.Bufferkeys()Returns aNkKey.Buffer view of thekeysfield.NkKeykeys(int index)Returns aNkKeyview of the struct at the specified index of thekeysfield.static NkKey.Buffernkeys(long struct)Unsafe version ofkeys().static NkKeynkeys(long struct, int index)Unsafe version ofkeys.static java.nio.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()java.nio.ByteBuffertext()Returns aByteBufferview of thetextfield.bytetext(int index)Returns the value at the specified index of thetextfield.inttext_len()Returns the value of thetext_lenfield.
-
-
-
Constructor Detail
-
NkKeyboard
public NkKeyboard(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
keys
public NkKey.Buffer keys()
Returns aNkKey.Buffer view of thekeysfield.
-
keys
public NkKey keys(int index)
Returns aNkKeyview of the struct at the specified index of thekeysfield.
-
text
public java.nio.ByteBuffer text()
Returns aByteBufferview of thetextfield.
-
text
public byte text(int index)
Returns the value at the specified index of thetextfield.
-
text_len
public int text_len()
Returns the value of thetext_lenfield.
-
create
public static NkKeyboard create(long address)
Returns a newNkKeyboardinstance for the specified memory address.
-
createSafe
@Nullable public static NkKeyboard createSafe(long address)
-
create
public static NkKeyboard.Buffer create(long address, int capacity)
Create aNkKeyboard.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkKeyboard.Buffer createSafe(long address, int capacity)
-
nkeys
public static NkKey.Buffer nkeys(long struct)
Unsafe version ofkeys().
-
ntext
public static java.nio.ByteBuffer ntext(long struct)
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().
-
-