Package org.lwjgl.nuklear
Class NkImage.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkImage,NkImage.Buffer>
-
- org.lwjgl.nuklear.NkImage.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkImage>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkImage
public static class NkImage.Buffer extends org.lwjgl.system.StructBuffer<NkImage,NkImage.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkImagestructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkImage.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shorth()Returns the value of thehfield.NkImage.Bufferh(short value)Sets the specified value to thehfield.NkHandlehandle()Returns aNkHandleview of thehandlefield.NkImage.Bufferhandle(java.util.function.Consumer<NkHandle> consumer)Passes thehandlefield to the specifiedConsumer.NkImage.Bufferhandle(NkHandle value)Copies the specifiedNkHandleto thehandlefield.java.nio.ShortBufferregion()Returns aShortBufferview of theregionfield.shortregion(int index)Returns the value at the specified index of theregionfield.NkImage.Bufferregion(int index, short value)Sets the specified value at the specified index of theregionfield.NkImage.Bufferregion(java.nio.ShortBuffer value)Copies the specifiedShortBufferto theregionfield.shortw()Returns the value of thewfield.NkImage.Bufferw(short value)Sets the specified value to thewfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkImage.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 byNkImage.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
-
handle
public NkImage.Buffer handle(java.util.function.Consumer<NkHandle> consumer)
Passes thehandlefield to the specifiedConsumer.
-
w
public short w()
Returns the value of thewfield.
-
h
public short h()
Returns the value of thehfield.
-
region
public java.nio.ShortBuffer region()
Returns aShortBufferview of theregionfield.
-
region
public short region(int index)
Returns the value at the specified index of theregionfield.
-
handle
public NkImage.Buffer handle(NkHandle value)
Copies the specifiedNkHandleto thehandlefield.
-
w
public NkImage.Buffer w(short value)
Sets the specified value to thewfield.
-
h
public NkImage.Buffer h(short value)
Sets the specified value to thehfield.
-
region
public NkImage.Buffer region(java.nio.ShortBuffer value)
Copies the specifiedShortBufferto theregionfield.
-
region
public NkImage.Buffer region(int index, short value)
Sets the specified value at the specified index of theregionfield.
-
-