Package org.lwjgl.nuklear
Class NkMouse.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkMouse,NkMouse.Buffer>
-
- org.lwjgl.nuklear.NkMouse.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<NkMouse>
,org.lwjgl.system.Pointer
- Enclosing class:
- NkMouse
public static class NkMouse.Buffer extends org.lwjgl.system.StructBuffer<NkMouse,NkMouse.Buffer>
An array ofNkMouse
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkMouseButton.Buffer
buttons()
Returns aNkMouseButton
.Buffer view of thebuttons
field.NkMouseButton
buttons(int index)
Returns aNkMouseButton
view of the struct at the specified index of thebuttons
field.NkVec2
delta()
Returns aNkVec2
view of thedelta
field.boolean
grab()
Returns the value of thegrab
field.boolean
grabbed()
Returns the value of thegrabbed
field.NkVec2
pos()
Returns aNkVec2
view of thepos
field.NkVec2
prev()
Returns aNkVec2
view of theprev
field.NkVec2
scroll_delta()
Returns aNkVec2
view of thescroll_delta
field.boolean
ungrab()
Returns the value of theungrab
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkMouse.Buffer
instance backed by the specified container. 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 byNkMouse.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
buttons
public NkMouseButton.Buffer buttons()
Returns aNkMouseButton
.Buffer view of thebuttons
field.
-
buttons
public NkMouseButton buttons(int index)
Returns aNkMouseButton
view of the struct at the specified index of thebuttons
field.
-
grab
public boolean grab()
Returns the value of thegrab
field.
-
grabbed
public boolean grabbed()
Returns the value of thegrabbed
field.
-
ungrab
public boolean ungrab()
Returns the value of theungrab
field.
-
-