public static class NkImage.Buffer extends org.lwjgl.system.StructBuffer<NkImage,NkImage.Buffer> implements org.lwjgl.system.NativeResource
NkImage structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkImage.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
short |
h()
Returns the value of the
h field. |
NkImage.Buffer |
h(short value)
Sets the specified value to the
h field. |
NkHandle |
handle()
Returns a
NkHandle view of the handle field. |
NkImage.Buffer |
handle(java.util.function.Consumer<NkHandle> consumer)
Passes the
handle field to the specified Consumer. |
NkImage.Buffer |
handle(NkHandle value)
Copies the specified
NkHandle to the handle field. |
java.nio.ShortBuffer |
region()
Returns a
ShortBuffer view of the region field. |
short |
region(int index)
Returns the value at the specified index of the
region field. |
NkImage.Buffer |
region(int index,
short value)
Sets the specified value at the specified index of the
region field. |
NkImage.Buffer |
region(java.nio.ShortBuffer value)
Copies the specified
ShortBuffer to the region field. |
short |
w()
Returns the value of the
w field. |
NkImage.Buffer |
w(short value)
Sets the specified value to the
w field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkImage.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
by NkImage.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public short w()
w field.public short h()
h field.public java.nio.ShortBuffer region()
ShortBuffer view of the region field.public short region(int index)
region field.public NkImage.Buffer handle(NkHandle value)
NkHandle to the handle field.public NkImage.Buffer handle(java.util.function.Consumer<NkHandle> consumer)
handle field to the specified Consumer.public NkImage.Buffer w(short value)
w field.public NkImage.Buffer h(short value)
h field.public NkImage.Buffer region(java.nio.ShortBuffer value)
ShortBuffer to the region field.public NkImage.Buffer region(int index, short value)
region field.Copyright LWJGL. All Rights Reserved. License terms.