Package org.lwjgl.nuklear
Class NkMouseButton
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkMouseButton
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkMouseButton extends org.lwjgl.system.Struct
Layout
struct nk_mouse_button { int down; unsigned int clicked;
struct nk_vec2
clicked_pos; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkMouseButton.Buffer
An array ofNkMouseButton
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CLICKED
CLICKED_POS
DOWNThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description NkMouseButton(java.nio.ByteBuffer container)
Creates aNkMouseButton
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
clicked()
Returns the value of theclicked
field.NkVec2
clicked_pos()
Returns aNkVec2
view of theclicked_pos
field.static NkMouseButton
create(long address)
Returns a newNkMouseButton
instance for the specified memory address.static NkMouseButton.Buffer
create(long address, int capacity)
Create aNkMouseButton.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 thedown
field.static int
nclicked(long struct)
Unsafe version ofclicked()
.static NkVec2
nclicked_pos(long struct)
Unsafe version ofclicked_pos()
.static int
ndown(long struct)
Unsafe version ofdown()
.int
sizeof()
-
-
-
Constructor Detail
-
NkMouseButton
public NkMouseButton(java.nio.ByteBuffer container)
Creates aNkMouseButton
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
down
public int down()
Returns the value of thedown
field.
-
clicked
public int clicked()
Returns the value of theclicked
field.
-
create
public static NkMouseButton create(long address)
Returns a newNkMouseButton
instance for the specified memory address.
-
createSafe
@Nullable public static NkMouseButton createSafe(long address)
-
create
public static NkMouseButton.Buffer create(long address, int capacity)
Create aNkMouseButton.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkMouseButton.Buffer createSafe(long address, int capacity)
-
ndown
public static int ndown(long struct)
Unsafe version ofdown()
.
-
nclicked
public static int nclicked(long struct)
Unsafe version ofclicked()
.
-
nclicked_pos
public static NkVec2 nclicked_pos(long struct)
Unsafe version ofclicked_pos()
.
-
-