struct nk_mouse {
struct nk_mouse_button buttons[NK_BUTTON_MAX];
struct nk_vec2 pos;
struct nk_vec2 down_pos;
struct nk_vec2 prev;
struct nk_vec2 delta;
struct nk_vec2 scroll_delta;
bool grab;
bool grabbed;
bool ungrab;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkMouse.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BUTTONS
The struct member offsets. |
| public static final int | DELTA
The struct member offsets. |
| public static final int | DOWN_POS
The struct member offsets. |
| public static final int | GRAB
The struct member offsets. |
| public static final int | GRABBED
The struct member offsets. |
| public static final int | POS
The struct member offsets. |
| public static final int | PREV
The struct member offsets. |
| public static final int | SCROLL_DELTA
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | UNGRAB
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkMouse(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public NkMouseButton. | |
| public NkMouseButton | |
| protected NkMouse | 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 NkMouse | |
| public static NkMouse. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkMouse | |
| public static NkMouse. | |
| public NkVec2 | |
| public NkVec2 | |
| public boolean | |
| public boolean | |
| public static NkMouseButton. | |
| public static NkMouseButton | |
| public static NkVec2 | |
| public static NkVec2 | |
| public static boolean | |
| public static boolean | |
| public static NkVec2 | |
| public static NkVec2 | |
| public static NkVec2 | |
| public static boolean | |
| public NkVec2 | |
| public NkVec2 | |
| public NkVec2 | |
| public int | |
| public boolean |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BUTTONS | back to summary |
|---|---|
| public static final int BUTTONS The struct member offsets. | |
| DELTA | back to summary |
|---|---|
| public static final int DELTA The struct member offsets. | |
| DOWN_POS | back to summary |
|---|---|
| public static final int DOWN_POS The struct member offsets. | |
| GRAB | back to summary |
|---|---|
| public static final int GRAB The struct member offsets. | |
| GRABBED | back to summary |
|---|---|
| public static final int GRABBED The struct member offsets. | |
| POS | back to summary |
|---|---|
| public static final int POS The struct member offsets. | |
| PREV | back to summary |
|---|---|
| public static final int PREV The struct member offsets. | |
| SCROLL_DELTA | back to summary |
|---|---|
| public static final int SCROLL_DELTA The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| UNGRAB | back to summary |
|---|---|
| public static final int UNGRAB The struct member offsets. | |
| NkMouse | back to summary |
|---|---|
| protected NkMouse(long address, ByteBuffer container) | |
| NkMouse | back to summary |
|---|---|
| public NkMouse(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| buttons | back to summary |
|---|---|
public NkMouseButton.
| |
| buttons | back to summary |
|---|---|
public NkMouseButton buttons(int index)
| |
| create | back to summary |
|---|---|
| protected NkMouse create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkMouse create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkMouse. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkMouse createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkMouse. Like
| |
| delta | back to summary |
|---|---|
public NkVec2 delta()
| |
| down_pos | back to summary |
|---|---|
public NkVec2 down_pos()
| |
| grab | back to summary |
|---|---|
public boolean grab()
| |
| grabbed | back to summary |
|---|---|
public boolean grabbed()
| |
| nbuttons | back to summary |
|---|---|
| public static NkMouseButton. Unsafe version of | |
| nbuttons | back to summary |
|---|---|
| public static NkMouseButton nbuttons(long struct, int index) Unsafe version of | |
| ndelta | back to summary |
|---|---|
| public static NkVec2 ndelta(long struct) Unsafe version of | |
| ndown_pos | back to summary |
|---|---|
| public static NkVec2 ndown_pos(long struct) Unsafe version of | |
| ngrab | back to summary |
|---|---|
| public static boolean ngrab(long struct) Unsafe version of | |
| ngrabbed | back to summary |
|---|---|
| public static boolean ngrabbed(long struct) Unsafe version of | |
| npos | back to summary |
|---|---|
| public static NkVec2 npos(long struct) Unsafe version of | |
| nprev | back to summary |
|---|---|
| public static NkVec2 nprev(long struct) Unsafe version of | |
| nscroll_delta | back to summary |
|---|---|
| public static NkVec2 nscroll_delta(long struct) Unsafe version of | |
| nungrab | back to summary |
|---|---|
| public static boolean nungrab(long struct) Unsafe version of | |
| pos | back to summary |
|---|---|
public NkVec2 pos()
| |
| prev | back to summary |
|---|---|
public NkVec2 prev()
| |
| scroll_delta | back to summary |
|---|---|
public NkVec2 scroll_delta()
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| ungrab | back to summary |
|---|---|
public boolean ungrab()
| |
NkMouse structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkMouse |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public NkMouseButton. | |
| public NkMouseButton | |
| public NkVec2 | |
| public NkVec2 | |
| protected NkMouse | |
| public boolean | |
| public boolean | |
| public NkVec2 | |
| public NkVec2 | |
| public NkVec2 | |
| protected NkMouse. | |
| public boolean |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkMouse 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) | |
| buttons | back to summary |
|---|---|
public NkMouseButton.
| |
| buttons | back to summary |
|---|---|
public NkMouseButton buttons(int index)
| |
| delta | back to summary |
|---|---|
public NkVec2 delta()
| |
| down_pos | back to summary |
|---|---|
public NkVec2 down_pos()
| |
| getElementFactory | back to summary |
|---|---|
| protected NkMouse getElementFactory() Implements abstract org.
| |
| grab | back to summary |
|---|---|
public boolean grab()
| |
| grabbed | back to summary |
|---|---|
public boolean grabbed()
| |
| pos | back to summary |
|---|---|
public NkVec2 pos()
| |
| prev | back to summary |
|---|---|
public NkVec2 prev()
| |
| scroll_delta | back to summary |
|---|---|
public NkVec2 scroll_delta()
| |
| self | back to summary |
|---|---|
| protected NkMouse. Implements abstract org.
| |
| ungrab | back to summary |
|---|---|
public boolean ungrab()
| |