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