public class NkMouse
extends org.lwjgl.system.Struct
struct nk_mouse {
struct nk_mouse_button buttons[NK_BUTTON_MAX];
struct nk_vec2 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 |
|---|---|
static class |
NkMouse.Buffer
An array of
NkMouse structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUTTONS
The struct member offsets.
|
static int |
DELTA
The struct member offsets.
|
static int |
GRAB
The struct member offsets.
|
static int |
GRABBED
The struct member offsets.
|
static int |
POS
The struct member offsets.
|
static int |
PREV
The struct member offsets.
|
static int |
SCROLL_DELTA
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
UNGRAB
The struct member offsets.
|
| Constructor and Description |
|---|
NkMouse(java.nio.ByteBuffer container)
Creates a
NkMouse instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkMouseButton.Buffer |
buttons()
Returns a
NkMouseButton.Buffer view of the buttons field. |
NkMouseButton |
buttons(int index)
Returns a
NkMouseButton view of the struct at the specified index of the buttons field. |
static NkMouse |
create(long address)
Returns a new
NkMouse instance for the specified memory address. |
static NkMouse.Buffer |
create(long address,
int capacity)
Create a
NkMouse.Buffer instance at the specified memory. |
static NkMouse |
createSafe(long address)
|
static NkMouse.Buffer |
createSafe(long address,
int capacity)
|
NkVec2 |
delta()
Returns a
NkVec2 view of the delta field. |
boolean |
grab()
Returns the value of the
grab field. |
boolean |
grabbed()
Returns the value of the
grabbed field. |
static NkMouseButton.Buffer |
nbuttons(long struct)
Unsafe version of
buttons(). |
static NkMouseButton |
nbuttons(long struct,
int index)
Unsafe version of
buttons. |
static NkVec2 |
ndelta(long struct)
Unsafe version of
delta(). |
static boolean |
ngrab(long struct)
Unsafe version of
grab(). |
static boolean |
ngrabbed(long struct)
Unsafe version of
grabbed(). |
static NkVec2 |
npos(long struct)
Unsafe version of
pos(). |
static NkVec2 |
nprev(long struct)
Unsafe version of
prev(). |
static NkVec2 |
nscroll_delta(long struct)
Unsafe version of
scroll_delta(). |
static boolean |
nungrab(long struct)
Unsafe version of
ungrab(). |
NkVec2 |
pos()
Returns a
NkVec2 view of the pos field. |
NkVec2 |
prev()
Returns a
NkVec2 view of the prev field. |
NkVec2 |
scroll_delta()
Returns a
NkVec2 view of the scroll_delta field. |
int |
sizeof() |
boolean |
ungrab()
Returns the value of the
ungrab field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BUTTONS
public static final int POS
public static final int PREV
public static final int DELTA
public static final int SCROLL_DELTA
public static final int GRAB
public static final int GRABBED
public static final int UNGRAB
public NkMouse(java.nio.ByteBuffer container)
NkMouse instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic NkMouseButton.Buffer buttons()
NkMouseButton.Buffer view of the buttons field.public NkMouseButton buttons(int index)
NkMouseButton view of the struct at the specified index of the buttons field.public boolean grab()
grab field.public boolean grabbed()
grabbed field.public boolean ungrab()
ungrab field.public static NkMouse create(long address)
NkMouse instance for the specified memory address.@Nullable public static NkMouse createSafe(long address)
public static NkMouse.Buffer create(long address, int capacity)
NkMouse.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkMouse.Buffer createSafe(long address, int capacity)
public static NkMouseButton.Buffer nbuttons(long struct)
buttons().public static NkMouseButton nbuttons(long struct, int index)
buttons.public static NkVec2 nscroll_delta(long struct)
scroll_delta().public static boolean ngrab(long struct)
grab().public static boolean ngrabbed(long struct)
grabbed().public static boolean nungrab(long struct)
ungrab().Copyright LWJGL. All Rights Reserved. License terms.