public class NkListView
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct nk_list_view {
int begin;
int end;
int count;
int total_height;
struct nk_context * ctx;
nk_uint * scroll_pointer;
nk_uint scroll_value;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkListView.Buffer
An array of
NkListView structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BEGIN
The struct member offsets.
|
static int |
COUNT
The struct member offsets.
|
static int |
CTX
The struct member offsets.
|
static int |
END
The struct member offsets.
|
static int |
SCROLL_POINTER
The struct member offsets.
|
static int |
SCROLL_VALUE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TOTAL_HEIGHT
The struct member offsets.
|
| Constructor and Description |
|---|
NkListView(java.nio.ByteBuffer container)
Creates a
NkListView instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
begin()
Returns the value of the
begin field. |
static NkListView |
calloc()
Returns a new
NkListView instance allocated with memCalloc. |
static NkListView.Buffer |
calloc(int capacity)
Returns a new
NkListView.Buffer instance allocated with memCalloc. |
static NkListView |
callocStack()
Returns a new
NkListView instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkListView.Buffer |
callocStack(int capacity)
Returns a new
NkListView.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkListView.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkListView.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkListView |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkListView instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
count()
Returns the value of the
count field. |
static NkListView |
create()
Returns a new
NkListView instance allocated with BufferUtils. |
static NkListView.Buffer |
create(int capacity)
Returns a new
NkListView.Buffer instance allocated with BufferUtils. |
static NkListView |
create(long address)
Returns a new
NkListView instance for the specified memory address. |
static NkListView.Buffer |
create(long address,
int capacity)
Create a
NkListView.Buffer instance at the specified memory. |
static NkListView |
createSafe(long address)
|
static NkListView.Buffer |
createSafe(long address,
int capacity)
|
int |
end()
Returns the value of the
end field. |
static NkListView |
malloc()
Returns a new
NkListView instance allocated with memAlloc. |
static NkListView.Buffer |
malloc(int capacity)
Returns a new
NkListView.Buffer instance allocated with memAlloc. |
static NkListView |
mallocStack()
Returns a new
NkListView instance allocated on the thread-local MemoryStack. |
static NkListView.Buffer |
mallocStack(int capacity)
Returns a new
NkListView.Buffer instance allocated on the thread-local MemoryStack. |
static NkListView.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkListView.Buffer instance allocated on the specified MemoryStack. |
static NkListView |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkListView instance allocated on the specified MemoryStack. |
static int |
nbegin(long struct)
Unsafe version of
begin(). |
static int |
ncount(long struct)
Unsafe version of
count(). |
static NkContext |
nctx(long struct) |
static int |
nend(long struct)
Unsafe version of
end(). |
static java.nio.IntBuffer |
nscroll_pointer(long struct,
int capacity) |
static int |
nscroll_value(long struct) |
static int |
ntotal_height(long struct) |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BEGIN
public static final int END
public static final int COUNT
public static final int TOTAL_HEIGHT
public static final int CTX
public static final int SCROLL_POINTER
public static final int SCROLL_VALUE
public NkListView(java.nio.ByteBuffer container)
NkListView 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 begin()
begin field.public int end()
end field.public int count()
count field.public static NkListView malloc()
NkListView instance allocated with memAlloc. The instance must be explicitly freed.public static NkListView calloc()
NkListView instance allocated with memCalloc. The instance must be explicitly freed.public static NkListView create()
NkListView instance allocated with BufferUtils.public static NkListView create(long address)
NkListView instance for the specified memory address.@Nullable public static NkListView createSafe(long address)
public static NkListView.Buffer malloc(int capacity)
NkListView.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkListView.Buffer calloc(int capacity)
NkListView.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkListView.Buffer create(int capacity)
NkListView.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkListView.Buffer create(long address, int capacity)
NkListView.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkListView.Buffer createSafe(long address, int capacity)
public static NkListView mallocStack()
NkListView instance allocated on the thread-local MemoryStack.public static NkListView callocStack()
NkListView instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkListView mallocStack(org.lwjgl.system.MemoryStack stack)
NkListView instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkListView callocStack(org.lwjgl.system.MemoryStack stack)
NkListView instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkListView.Buffer mallocStack(int capacity)
NkListView.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkListView.Buffer callocStack(int capacity)
NkListView.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkListView.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkListView.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkListView.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkListView.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 nbegin(long struct)
begin().public static int nend(long struct)
end().public static int ncount(long struct)
count().public static int ntotal_height(long struct)
public static NkContext nctx(long struct)
public static java.nio.IntBuffer nscroll_pointer(long struct,
int capacity)
public static int nscroll_value(long struct)
Copyright LWJGL. All Rights Reserved. License terms.