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.NativeResourceLayout
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 classNkListView.BufferAn array ofNkListViewstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBEGIN
COUNT
CTX
END
SCROLL_POINTER
SCROLL_VALUEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTOTAL_HEIGHTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkListView(java.nio.ByteBuffer container)Creates aNkListViewinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbegin()Returns the value of thebeginfield.static NkListViewcalloc()Returns a newNkListViewinstance allocated withmemCalloc.static NkListView.Buffercalloc(int capacity)Returns a newNkListView.Bufferinstance allocated withmemCalloc.static NkListViewcallocStack()Returns a newNkListViewinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkListView.BuffercallocStack(int capacity)Returns a newNkListView.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkListView.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkListView.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkListViewcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkListViewinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcount()Returns the value of thecountfield.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 NkListViewcreateSafe(long address)static NkListView.BuffercreateSafe(long address, int capacity)intend()Returns the value of theendfield.static NkListViewmalloc()Returns a newNkListViewinstance allocated withmemAlloc.static NkListView.Buffermalloc(int capacity)Returns a newNkListView.Bufferinstance allocated withmemAlloc.static NkListViewmallocStack()Returns a newNkListViewinstance allocated on the thread-localMemoryStack.static NkListView.BuffermallocStack(int capacity)Returns a newNkListView.Bufferinstance allocated on the thread-localMemoryStack.static NkListView.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkListView.Bufferinstance allocated on the specifiedMemoryStack.static NkListViewmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkListViewinstance allocated on the specifiedMemoryStack.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 java.nio.IntBuffernscroll_pointer(long struct, int capacity)static intnscroll_value(long struct)static intntotal_height(long struct)intsizeof()
-
-
-
Constructor Detail
-
NkListView
public NkListView(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
begin
public int begin()
Returns the value of thebeginfield.
-
end
public int end()
Returns the value of theendfield.
-
count
public int count()
Returns the value of thecountfield.
-
malloc
public static NkListView malloc()
Returns a newNkListViewinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkListView calloc()
Returns a newNkListViewinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkListView create()
Returns a newNkListViewinstance allocated withBufferUtils.
-
create
public static NkListView create(long address)
Returns a newNkListViewinstance for the specified memory address.
-
createSafe
@Nullable public static NkListView createSafe(long address)
-
malloc
public static NkListView.Buffer malloc(int capacity)
Returns a newNkListView.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkListView.Buffer calloc(int capacity)
Returns a newNkListView.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkListView.Buffer create(int capacity)
Returns a newNkListView.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkListView.Buffer create(long address, int capacity)
Create aNkListView.Bufferinstance 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 newNkListViewinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkListView callocStack()
Returns a newNkListViewinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkListView mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkListViewinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkListView callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkListViewinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkListView.Buffer callocStack(int capacity)
Returns a newNkListView.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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)
-
-