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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shorth()NkImage.Bufferh(short value)Sets the specified value to thehfield.NkHandlehandle()NkImage.Bufferhandle(java.util.function.Consumer<NkHandle> consumer)Passes thehandlefield to the specifiedConsumer.NkImage.Bufferhandle(NkHandle value)Copies the specifiedNkHandleto thehandlefield.java.nio.ShortBufferregion()shortregion(int index)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()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
-
w
public short w()
- Returns:
- the value of the
wfield.
-
h
public short h()
- Returns:
- the value of the
hfield.
-
region
public java.nio.ShortBuffer region()
- Returns:
- a
ShortBufferview of theregionfield.
-
region
public short region(int index)
- Returns:
- the value at the specified index of the
regionfield.
-
handle
public NkImage.Buffer handle(NkHandle value)
Copies the specifiedNkHandleto thehandlefield.
-
handle
public NkImage.Buffer handle(java.util.function.Consumer<NkHandle> consumer)
Passes thehandlefield to the specifiedConsumer.
-
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.
-
-