Package org.lwjgl.nuklear
Class NkKey
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkKey
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkKey extends org.lwjgl.system.StructLayout
struct nk_key { nk_bool down; unsigned int clicked; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkKey.BufferAn array ofNkKeystructs.
-
Constructor Summary
Constructors Constructor Description NkKey(java.nio.ByteBuffer container)Creates aNkKeyinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intclicked()static NkKeycreate(long address)Returns a newNkKeyinstance for the specified memory address.static NkKey.Buffercreate(long address, int capacity)Create aNkKey.Bufferinstance at the specified memory.static NkKeycreateSafe(long address)static NkKey.BuffercreateSafe(long address, int capacity)booleandown()static intnclicked(long struct)Unsafe version ofclicked().static booleanndown(long struct)Unsafe version ofdown().intsizeof()
-
-
-
Constructor Detail
-
NkKey
public NkKey(java.nio.ByteBuffer container)
Creates aNkKeyinstance 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
-
down
public boolean down()
- Returns:
- the value of the
downfield.
-
clicked
public int clicked()
- Returns:
- the value of the
clickedfield.
-
create
public static NkKey create(long address)
Returns a newNkKeyinstance for the specified memory address.
-
createSafe
@Nullable public static NkKey createSafe(long address)
-
create
public static NkKey.Buffer create(long address, int capacity)
Create aNkKey.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkKey.Buffer createSafe(long address, int capacity)
-
ndown
public static boolean ndown(long struct)
Unsafe version ofdown().
-
nclicked
public static int nclicked(long struct)
Unsafe version ofclicked().
-
-