Package org.lwjgl.nuklear
Class NkInput
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct nk_input {
{@link NkKeyboard struct nk_keyboard} keyboard;
{@link NkMouse struct nk_mouse} mouse;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkInput(ByteBuffer container) Creates aNkInputinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic NkInputcalloc()Returns a newNkInputinstance allocated withmemCalloc.static NkInput.Buffercalloc(int capacity) Returns a newNkInput.Bufferinstance allocated withmemCalloc.static NkInput.Buffercalloc(int capacity, MemoryStack stack) Returns a newNkInput.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkInputcalloc(MemoryStack stack) Returns a newNkInputinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkInputDeprecated.static NkInput.BuffercallocStack(int capacity) Deprecated.static NkInput.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static NkInputcallocStack(MemoryStack stack) Deprecated.static NkInputcreate()Returns a newNkInputinstance allocated withBufferUtils.static NkInput.Buffercreate(int capacity) Returns a newNkInput.Bufferinstance allocated withBufferUtils.static NkInputcreate(long address) Returns a newNkInputinstance for the specified memory address.static NkInput.Buffercreate(long address, int capacity) Create aNkInput.Bufferinstance at the specified memory.static @Nullable NkInputcreateSafe(long address) static @Nullable NkInput.BuffercreateSafe(long address, int capacity) keyboard()static NkInputmalloc()Returns a newNkInputinstance allocated withmemAlloc.static NkInput.Buffermalloc(int capacity) Returns a newNkInput.Bufferinstance allocated withmemAlloc.static NkInput.Buffermalloc(int capacity, MemoryStack stack) Returns a newNkInput.Bufferinstance allocated on the specifiedMemoryStack.static NkInputmalloc(MemoryStack stack) Returns a newNkInputinstance allocated on the specifiedMemoryStack.static NkInputDeprecated.static NkInput.BuffermallocStack(int capacity) Deprecated.static NkInput.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static NkInputmallocStack(MemoryStack stack) Deprecated.mouse()static NkKeyboardnkeyboard(long struct) Unsafe version ofkeyboard().static NkMousenmouse(long struct) Unsafe version ofmouse().intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
KEYBOARD
public static final int KEYBOARDThe struct member offsets. -
MOUSE
public static final int MOUSEThe struct member offsets.
-
-
Constructor Details
-
NkInput
Creates aNkInputinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
keyboard
- Returns:
- a
NkKeyboardview of thekeyboardfield.
-
mouse
- Returns:
- a
NkMouseview of themousefield.
-
malloc
Returns a newNkInputinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkInputinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkInputinstance allocated withBufferUtils. -
create
Returns a newNkInputinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkInput.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkInput.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkInput.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkInput.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newNkInputinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkInputinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkInput.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkInput.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nkeyboard
Unsafe version ofkeyboard(). -
nmouse
Unsafe version ofmouse().
-