Package org.lwjgl.nuklear
Class NkListView
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionNkListView
(ByteBuffer container) Creates aNkListView
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
begin()
static NkListView
calloc()
Returns a newNkListView
instance allocated withmemCalloc
.static NkListView.Buffer
calloc
(int capacity) Returns a newNkListView.Buffer
instance allocated withmemCalloc
.static NkListView.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkListView.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkListView
calloc
(MemoryStack stack) Returns a newNkListView
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkListView
Deprecated.static NkListView.Buffer
callocStack
(int capacity) Deprecated.static NkListView.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkListView
callocStack
(MemoryStack stack) Deprecated.int
count()
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()
static NkListView
malloc()
Returns a newNkListView
instance allocated withmemAlloc
.static NkListView.Buffer
malloc
(int capacity) Returns a newNkListView.Buffer
instance allocated withmemAlloc
.static NkListView.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkListView.Buffer
instance allocated on the specifiedMemoryStack
.static NkListView
malloc
(MemoryStack stack) Returns a newNkListView
instance allocated on the specifiedMemoryStack
.static NkListView
Deprecated.static NkListView.Buffer
mallocStack
(int capacity) Deprecated.static NkListView.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkListView
mallocStack
(MemoryStack stack) Deprecated.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 IntBuffer
nscroll_pointer
(long struct, int capacity) static int
nscroll_value
(long struct) static int
ntotal_height
(long struct) int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
BEGIN
public static final int BEGINThe struct member offsets. -
END
public static final int ENDThe struct member offsets. -
COUNT
public static final int COUNTThe struct member offsets. -
TOTAL_HEIGHT
public static final int TOTAL_HEIGHTThe struct member offsets. -
CTX
public static final int CTXThe struct member offsets. -
SCROLL_POINTER
public static final int SCROLL_POINTERThe struct member offsets. -
SCROLL_VALUE
public static final int SCROLL_VALUEThe struct member offsets.
-
-
Constructor Details
-
NkListView
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkListView>
-
begin
public int begin()- Returns:
- the value of the
begin
field.
-
end
public int end()- Returns:
- the value of the
end
field.
-
count
public int count()- Returns:
- the value of the
count
field.
-
malloc
Returns a newNkListView
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkListView
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkListView
instance allocated withBufferUtils
. -
create
Returns a newNkListView
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkListView.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkListView.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkListView.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkListView.Buffer
instance 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 newNkListView
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkListView
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkListView.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkListView.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
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
-
nscroll_pointer
-
nscroll_value
public static int nscroll_value(long struct)
-