Package org.lwjgl.nuklear
Class NkListView
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct nk_list_view {
int begin;
int end;
int count;
int total_height;
{@link NkContext struct nk_context} * ctx;
nk_uint * scroll_pointer;
nk_uint scroll_value;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkListView(ByteBuffer container) Creates aNkListViewinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbegin()static NkListViewcalloc()Returns a newNkListViewinstance allocated withmemCalloc.static NkListView.Buffercalloc(int capacity) Returns a newNkListView.Bufferinstance allocated withmemCalloc.static NkListView.Buffercalloc(int capacity, MemoryStack stack) Returns a newNkListView.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkListViewcalloc(MemoryStack stack) Returns a newNkListViewinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkListViewDeprecated.static NkListView.BuffercallocStack(int capacity) Deprecated.static NkListView.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static NkListViewcallocStack(MemoryStack stack) Deprecated.intcount()static NkListViewcreate()Returns a newNkListViewinstance allocated withBufferUtils.static NkListView.Buffercreate(int capacity) Returns a newNkListView.Bufferinstance allocated withBufferUtils.static NkListViewcreate(long address) Returns a newNkListViewinstance for the specified memory address.static NkListView.Buffercreate(long address, int capacity) Create aNkListView.Bufferinstance at the specified memory.static @Nullable NkListViewcreateSafe(long address) static @Nullable NkListView.BuffercreateSafe(long address, int capacity) intend()static NkListViewmalloc()Returns a newNkListViewinstance allocated withmemAlloc.static NkListView.Buffermalloc(int capacity) Returns a newNkListView.Bufferinstance allocated withmemAlloc.static NkListView.Buffermalloc(int capacity, MemoryStack stack) Returns a newNkListView.Bufferinstance allocated on the specifiedMemoryStack.static NkListViewmalloc(MemoryStack stack) Returns a newNkListViewinstance allocated on the specifiedMemoryStack.static NkListViewDeprecated.static NkListView.BuffermallocStack(int capacity) Deprecated.static NkListView.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static NkListViewmallocStack(MemoryStack stack) Deprecated.static intnbegin(long struct) Unsafe version ofbegin().static intncount(long struct) Unsafe version ofcount().static NkContextnctx(long struct) static intnend(long struct) Unsafe version ofend().static IntBuffernscroll_pointer(long struct, int capacity) static intnscroll_value(long struct) static intntotal_height(long struct) 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. -
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 aNkListViewinstance 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).- Specified by:
sizeofin classStruct<NkListView>
-
begin
public int begin()- Returns:
- the value of the
beginfield.
-
end
public int end()- Returns:
- the value of the
endfield.
-
count
public int count()- Returns:
- the value of the
countfield.
-
malloc
Returns a newNkListViewinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkListViewinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkListViewinstance allocated withBufferUtils. -
create
Returns a newNkListViewinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkListView.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkListView.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkListView.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkListView.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 newNkListViewinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkListViewinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkListView.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkListView.Bufferinstance allocated on the specifiedMemoryStackand 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)
-