public class NkMouseButton
extends org.lwjgl.system.Struct
struct nk_mouse_button {
int down;
unsigned int clicked;
struct nk_vec2 clicked_pos;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkMouseButton.Buffer
An array of
NkMouseButton structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CLICKED
The struct member offsets.
|
static int |
CLICKED_POS
The struct member offsets.
|
static int |
DOWN
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkMouseButton(java.nio.ByteBuffer container)
Creates a
NkMouseButton instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkVec2 |
clicked_pos()
Returns a
NkVec2 view of the clicked_pos field. |
int |
clicked()
Returns the value of the
clicked field. |
static NkMouseButton |
create(long address)
Returns a new
NkMouseButton instance for the specified memory address. |
static NkMouseButton.Buffer |
create(long address,
int capacity)
Create a
NkMouseButton.Buffer instance at the specified memory. |
static NkMouseButton |
createSafe(long address)
|
static NkMouseButton.Buffer |
createSafe(long address,
int capacity)
|
int |
down()
Returns the value of the
down field. |
static NkVec2 |
nclicked_pos(long struct)
Unsafe version of
clicked_pos(). |
static int |
nclicked(long struct)
Unsafe version of
clicked(). |
static int |
ndown(long struct)
Unsafe version of
down(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DOWN
public static final int CLICKED
public static final int CLICKED_POS
public NkMouseButton(java.nio.ByteBuffer container)
NkMouseButton 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 int down()
down field.public int clicked()
clicked field.public static NkMouseButton create(long address)
NkMouseButton instance for the specified memory address.@Nullable public static NkMouseButton createSafe(long address)
public static NkMouseButton.Buffer create(long address, int capacity)
NkMouseButton.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkMouseButton.Buffer createSafe(long address, int capacity)
public static int ndown(long struct)
down().public static int nclicked(long struct)
clicked().public static NkVec2 nclicked_pos(long struct)
clicked_pos().Copyright LWJGL. All Rights Reserved. License terms.