Package org.lwjgl.nuklear
Class NkListView
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkListView
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class NkListView extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkListView.Buffer
An array ofNkListView
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BEGIN
COUNT
CTX
END
SCROLL_POINTER
SCROLL_VALUEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TOTAL_HEIGHT
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkListView(java.nio.ByteBuffer container)
Creates aNkListView
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
begin()
Returns the value of thebegin
field.static NkListView
calloc()
Returns a newNkListView
instance allocated withmemCalloc
.static NkListView.Buffer
calloc(int capacity)
Returns a newNkListView.Buffer
instance allocated withmemCalloc
.static NkListView
callocStack()
Returns a newNkListView
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkListView.Buffer
callocStack(int capacity)
Returns a newNkListView.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkListView.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkListView.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkListView
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkListView
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
count()
Returns the value of thecount
field.static NkListView
create()
Returns a newNkListView
instance allocated withBufferUtils
.static NkListView.Buffer
create(int capacity)
Returns a newNkListView.Buffer
instance allocated withBufferUtils
.static NkListView
create(long address)
Returns a newNkListView
instance for the specified memory address.static NkListView.Buffer
create(long address, int capacity)
Create aNkListView.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 theend
field.static NkListView
malloc()
Returns a newNkListView
instance allocated withmemAlloc
.static NkListView.Buffer
malloc(int capacity)
Returns a newNkListView.Buffer
instance allocated withmemAlloc
.static NkListView
mallocStack()
Returns a newNkListView
instance allocated on the thread-localMemoryStack
.static NkListView.Buffer
mallocStack(int capacity)
Returns a newNkListView.Buffer
instance allocated on the thread-localMemoryStack
.static NkListView.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkListView.Buffer
instance allocated on the specifiedMemoryStack
.static NkListView
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkListView
instance allocated on the specifiedMemoryStack
.static int
nbegin(long struct)
Unsafe version ofbegin()
.static int
ncount(long struct)
Unsafe version ofcount()
.static NkContext
nctx(long struct)
static int
nend(long struct)
Unsafe version ofend()
.static java.nio.IntBuffer
nscroll_pointer(long struct, int capacity)
static int
nscroll_value(long struct)
static int
ntotal_height(long struct)
int
sizeof()
-
-
-
Constructor Detail
-
NkListView
public NkListView(java.nio.ByteBuffer container)
Creates aNkListView
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
begin
public int begin()
Returns the value of thebegin
field.
-
end
public int end()
Returns the value of theend
field.
-
count
public int count()
Returns the value of thecount
field.
-
malloc
public static NkListView malloc()
Returns a newNkListView
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkListView calloc()
Returns a newNkListView
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkListView create()
Returns a newNkListView
instance allocated withBufferUtils
.
-
create
public static NkListView create(long address)
Returns a newNkListView
instance for the specified memory address.
-
createSafe
@Nullable public static NkListView createSafe(long address)
-
malloc
public static NkListView.Buffer malloc(int capacity)
Returns a newNkListView.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkListView.Buffer calloc(int capacity)
Returns a newNkListView.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkListView.Buffer create(int capacity)
Returns a newNkListView.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkListView.Buffer create(long address, int capacity)
Create aNkListView.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkListView.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkListView mallocStack()
Returns a newNkListView
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkListView callocStack()
Returns a newNkListView
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkListView mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkListView
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkListView callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkListView
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static NkListView.Buffer mallocStack(int capacity)
Returns a newNkListView.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkListView.Buffer callocStack(int capacity)
Returns a newNkListView.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static NkListView.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkListView.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static NkListView.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkListView.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nbegin
public static int nbegin(long struct)
Unsafe version ofbegin()
.
-
nend
public static int nend(long struct)
Unsafe version ofend()
.
-
ncount
public static int ncount(long struct)
Unsafe version ofcount()
.
-
ntotal_height
public static int ntotal_height(long struct)
-
nctx
public static NkContext nctx(long struct)
-
nscroll_pointer
public static java.nio.IntBuffer nscroll_pointer(long struct, int capacity)
-
nscroll_value
public static int nscroll_value(long struct)
-
-