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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkMouse.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkMouseButton.Bufferbuttons()Returns aNkMouseButton.Buffer view of thebuttonsfield.NkMouseButtonbuttons(int index)Returns aNkMouseButtonview of the struct at the specified index of thebuttonsfield.NkVec2delta()Returns aNkVec2view of thedeltafield.NkMouse.Bufferdelta(java.util.function.Consumer<NkVec2> consumer)Passes thedeltafield to the specifiedConsumer.booleangrab()Returns the value of thegrabfield.booleangrabbed()Returns the value of thegrabbedfield.NkVec2pos()Returns aNkVec2view of theposfield.NkMouse.Bufferpos(java.util.function.Consumer<NkVec2> consumer)Passes theposfield to the specifiedConsumer.NkVec2prev()Returns aNkVec2view of theprevfield.NkMouse.Bufferprev(java.util.function.Consumer<NkVec2> consumer)Passes theprevfield to the specifiedConsumer.NkVec2scroll_delta()Returns aNkVec2view of thescroll_deltafield.NkMouse.Bufferscroll_delta(java.util.function.Consumer<NkVec2> consumer)Passes thescroll_deltafield to the specifiedConsumer.booleanungrab()Returns the value of theungrabfield.
-
-
-
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 aNkMouseButton.Buffer view of thebuttonsfield.
-
buttons
public NkMouseButton buttons(int index)
Returns aNkMouseButtonview of the struct at the specified index of thebuttonsfield.
-
pos
public NkMouse.Buffer pos(java.util.function.Consumer<NkVec2> consumer)
Passes theposfield to the specifiedConsumer.
-
prev
public NkMouse.Buffer prev(java.util.function.Consumer<NkVec2> consumer)
Passes theprevfield to the specifiedConsumer.
-
delta
public NkMouse.Buffer delta(java.util.function.Consumer<NkVec2> consumer)
Passes thedeltafield to the specifiedConsumer.
-
scroll_delta
public NkMouse.Buffer scroll_delta(java.util.function.Consumer<NkVec2> consumer)
Passes thescroll_deltafield to the specifiedConsumer.
-
grab
public boolean grab()
Returns the value of thegrabfield.
-
grabbed
public boolean grabbed()
Returns the value of thegrabbedfield.
-
ungrab
public boolean ungrab()
Returns the value of theungrabfield.
-
-