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 ofNkMousestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkMouseButton.Bufferbuttons()NkMouseButtonbuttons(int index)NkVec2delta()booleangrab()booleangrabbed()NkVec2pos()NkVec2prev()NkVec2scroll_delta()booleanungrab()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkMouse.Bufferinstance 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:
- a
NkMouseButton.Buffer view of thebuttonsfield.
-
buttons
public NkMouseButton buttons(int index)
- Returns:
- a
NkMouseButtonview of the struct at the specified index of thebuttonsfield.
-
grab
public boolean grab()
- Returns:
- the value of the
grabfield.
-
grabbed
public boolean grabbed()
- Returns:
- the value of the
grabbedfield.
-
ungrab
public boolean ungrab()
- Returns:
- the value of the
ungrabfield.
-
-