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.Struct
Layout
struct nk_key { int down; unsigned int clicked; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkKey.Buffer
An array ofNkKey
structs.
-
Constructor Summary
Constructors Constructor Description NkKey(java.nio.ByteBuffer container)
Creates aNkKey
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
clicked()
Returns the value of theclicked
field.static NkKey
create(long address)
Returns a newNkKey
instance for the specified memory address.static NkKey.Buffer
create(long address, int capacity)
Create aNkKey.Buffer
instance at the specified memory.static NkKey
createSafe(long address)
static NkKey.Buffer
createSafe(long address, int capacity)
int
down()
Returns the value of thedown
field.static int
nclicked(long struct)
Unsafe version ofclicked()
.static int
ndown(long struct)
Unsafe version ofdown()
.int
sizeof()
-
-
-
Constructor Detail
-
NkKey
public NkKey(java.nio.ByteBuffer container)
Creates aNkKey
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
down
public int down()
Returns the value of thedown
field.
-
clicked
public int clicked()
Returns the value of theclicked
field.
-
create
public static NkKey create(long address)
Returns a newNkKey
instance 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.Buffer
instance 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 int ndown(long struct)
Unsafe version ofdown()
.
-
nclicked
public static int nclicked(long struct)
Unsafe version ofclicked()
.
-
-