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 { int down; unsigned int clicked; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkKey.BufferAn array ofNkKeystructs.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intclicked()Returns the value of theclickedfield.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)intdown()Returns the value of thedownfield.static intnclicked(long struct)Unsafe version ofclicked().static intndown(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 int down()
Returns the value of thedownfield.
-
clicked
public int clicked()
Returns the value of theclickedfield.
-
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 int ndown(long struct)
Unsafe version ofdown().
-
nclicked
public static int nclicked(long struct)
Unsafe version ofclicked().
-
-