struct nk_cursor {
struct nk_image img;
struct nk_vec2 size;
struct nk_vec2 offset;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkCursor.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | IMG
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | SIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkCursor(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static NkCursor | |
| public static NkCursor. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkCursor | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkCursor. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkCursor | |
| public static NkCursor | |
| public static NkCursor. | |
| public static NkCursor. | |
| protected NkCursor | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static NkCursor | |
| public static NkCursor | |
| public static NkCursor. | create(int
the buffer capacity capacity)Returns a new |
| public static NkCursor. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkCursor | |
| public static NkCursor. | |
| public NkImage | |
| public NkCursor | |
| public NkCursor | |
| public static NkCursor | |
| public static NkCursor. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkCursor | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkCursor. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkCursor | |
| public static NkCursor | |
| public static NkCursor. | |
| public static NkCursor. | |
| public static NkImage | |
| public static void | |
| public static NkVec2 | |
| public static void | |
| public static NkVec2 | |
| public static void | |
| public NkVec2 | |
| public NkCursor | |
| public NkCursor | |
| public NkCursor | |
| public NkCursor | |
| public NkVec2 | |
| public NkCursor | |
| public NkCursor | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| IMG | back to summary |
|---|---|
| public static final int IMG The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| NkCursor | back to summary |
|---|---|
| protected NkCursor(long address, ByteBuffer container) | |
| NkCursor | back to summary |
|---|---|
| public NkCursor(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static NkCursor calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkCursor. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkCursor calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkCursor. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static NkCursor callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkCursor callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkCursor. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkCursor. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected NkCursor create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkCursor create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkCursor create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkCursor. Returns a new
| |
| create | back to summary |
|---|---|
| public static NkCursor. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkCursor createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkCursor. Like
| |
| img | back to summary |
|---|---|
public NkImage img()
| |
| img | back to summary |
|---|---|
| public NkCursor img(NkImage value) Copies the specified | |
| img | back to summary |
|---|---|
| public NkCursor img(Consumer<NkImage> consumer) Passes the | |
| malloc | back to summary |
|---|---|
| public static NkCursor malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkCursor. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkCursor malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkCursor. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static NkCursor mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkCursor mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkCursor. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkCursor. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nimg | back to summary |
|---|---|
| public static NkImage nimg(long struct) Unsafe version of | |
| nimg | back to summary |
|---|---|
| public static void nimg(long struct, NkImage value) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static NkVec2 noffset(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, NkVec2 value) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static NkVec2 nsize(long struct) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static void nsize(long struct, NkVec2 value) Unsafe version of | |
| offset | back to summary |
|---|---|
public NkVec2 offset()
| |
| offset | back to summary |
|---|---|
| public NkCursor offset(NkVec2 value) Copies the specified | |
| offset | back to summary |
|---|---|
| public NkCursor offset(Consumer<NkVec2> consumer) Passes the | |
| set | back to summary |
|---|---|
| public NkCursor set(NkImage img, NkVec2 size, NkVec2 offset) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public NkCursor set(NkCursor src) Copies the specified struct data to this struct. | |
| size | back to summary |
|---|---|
public NkVec2 size()
| |
| size | back to summary |
|---|---|
| public NkCursor size(NkVec2 value) Copies the specified | |
| size | back to summary |
|---|---|
| public NkCursor size(Consumer<NkVec2> consumer) Passes the | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
NkCursor structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkCursor |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected NkCursor | |
| public NkImage | |
| public NkCursor. | |
| public NkCursor. | |
| public NkVec2 | |
| public NkCursor. | |
| public NkCursor. | |
| protected NkCursor. | |
| public NkVec2 | |
| public NkCursor. | |
| public NkCursor. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkCursor ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected NkCursor getElementFactory() Implements abstract org.
| |
| img | back to summary |
|---|---|
public NkImage img()
| |
| img | back to summary |
|---|---|
| public NkCursor. Copies the specified | |
| img | back to summary |
|---|---|
| public NkCursor. Passes the | |
| offset | back to summary |
|---|---|
public NkVec2 offset()
| |
| offset | back to summary |
|---|---|
| public NkCursor. Copies the specified | |
| offset | back to summary |
|---|---|
| public NkCursor. Passes the | |
| self | back to summary |
|---|---|
| protected NkCursor. Implements abstract org.
| |
| size | back to summary |
|---|---|
public NkVec2 size()
| |
| size | back to summary |
|---|---|
| public NkCursor. Copies the specified | |
| size | back to summary |
|---|---|
| public NkCursor. Passes the | |