public class NkInput
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct nk_input {
struct nk_keyboard keyboard;
struct nk_mouse mouse;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkInput.Buffer
An array of
NkInput structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
KEYBOARD
The struct member offsets.
|
static int |
MOUSE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkInput(java.nio.ByteBuffer container)
Creates a
NkInput instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkInput |
calloc()
Returns a new
NkInput instance allocated with memCalloc. |
static NkInput.Buffer |
calloc(int capacity)
Returns a new
NkInput.Buffer instance allocated with memCalloc. |
static NkInput |
callocStack()
Returns a new
NkInput instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkInput.Buffer |
callocStack(int capacity)
Returns a new
NkInput.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkInput.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkInput.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkInput |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkInput instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkInput |
create()
Returns a new
NkInput instance allocated with BufferUtils. |
static NkInput.Buffer |
create(int capacity)
Returns a new
NkInput.Buffer instance allocated with BufferUtils. |
static NkInput |
create(long address)
Returns a new
NkInput instance for the specified memory address. |
static NkInput.Buffer |
create(long address,
int capacity)
Create a
NkInput.Buffer instance at the specified memory. |
static NkInput |
createSafe(long address)
|
static NkInput.Buffer |
createSafe(long address,
int capacity)
|
NkKeyboard |
keyboard()
Returns a
NkKeyboard view of the keyboard field. |
static NkInput |
malloc()
Returns a new
NkInput instance allocated with memAlloc. |
static NkInput.Buffer |
malloc(int capacity)
Returns a new
NkInput.Buffer instance allocated with memAlloc. |
static NkInput |
mallocStack()
Returns a new
NkInput instance allocated on the thread-local MemoryStack. |
static NkInput.Buffer |
mallocStack(int capacity)
Returns a new
NkInput.Buffer instance allocated on the thread-local MemoryStack. |
static NkInput.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkInput.Buffer instance allocated on the specified MemoryStack. |
static NkInput |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkInput instance allocated on the specified MemoryStack. |
NkMouse |
mouse()
Returns a
NkMouse view of the mouse field. |
static NkKeyboard |
nkeyboard(long struct)
Unsafe version of
keyboard(). |
static NkMouse |
nmouse(long struct)
Unsafe version of
mouse(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int KEYBOARD
public static final int MOUSE
public NkInput(java.nio.ByteBuffer container)
NkInput instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic NkKeyboard keyboard()
NkKeyboard view of the keyboard field.public static NkInput malloc()
NkInput instance allocated with memAlloc. The instance must be explicitly freed.public static NkInput calloc()
NkInput instance allocated with memCalloc. The instance must be explicitly freed.public static NkInput create()
NkInput instance allocated with BufferUtils.public static NkInput create(long address)
NkInput instance for the specified memory address.@Nullable public static NkInput createSafe(long address)
public static NkInput.Buffer malloc(int capacity)
NkInput.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkInput.Buffer calloc(int capacity)
NkInput.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkInput.Buffer create(int capacity)
NkInput.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkInput.Buffer create(long address, int capacity)
NkInput.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkInput.Buffer createSafe(long address, int capacity)
public static NkInput mallocStack()
NkInput instance allocated on the thread-local MemoryStack.public static NkInput callocStack()
NkInput instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkInput mallocStack(org.lwjgl.system.MemoryStack stack)
NkInput instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkInput callocStack(org.lwjgl.system.MemoryStack stack)
NkInput instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkInput.Buffer mallocStack(int capacity)
NkInput.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkInput.Buffer callocStack(int capacity)
NkInput.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkInput.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkInput.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkInput.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkInput.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkKeyboard nkeyboard(long struct)
keyboard().Copyright LWJGL. All Rights Reserved. License terms.