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 ofNkImage
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
h()
Returns the value of theh
field.NkImage.Buffer
h(short value)
Sets the specified value to theh
field.NkHandle
handle()
Returns aNkHandle
view of thehandle
field.NkImage.Buffer
handle(java.util.function.Consumer<NkHandle> consumer)
Passes thehandle
field to the specifiedConsumer
.NkImage.Buffer
handle(NkHandle value)
Copies the specifiedNkHandle
to thehandle
field.java.nio.ShortBuffer
region()
Returns aShortBuffer
view of theregion
field.short
region(int index)
Returns the value at the specified index of theregion
field.NkImage.Buffer
region(int index, short value)
Sets the specified value at the specified index of theregion
field.NkImage.Buffer
region(java.nio.ShortBuffer value)
Copies the specifiedShortBuffer
to theregion
field.short
w()
Returns the value of thew
field.NkImage.Buffer
w(short value)
Sets the specified value to thew
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkImage.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 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 thew
field.
-
h
public short h()
Returns the value of theh
field.
-
region
public java.nio.ShortBuffer region()
Returns aShortBuffer
view of theregion
field.
-
region
public short region(int index)
Returns the value at the specified index of theregion
field.
-
handle
public NkImage.Buffer handle(NkHandle value)
Copies the specifiedNkHandle
to thehandle
field.
-
handle
public NkImage.Buffer handle(java.util.function.Consumer<NkHandle> consumer)
Passes thehandle
field to the specifiedConsumer
.
-
w
public NkImage.Buffer w(short value)
Sets the specified value to thew
field.
-
h
public NkImage.Buffer h(short value)
Sets the specified value to theh
field.
-
region
public NkImage.Buffer region(java.nio.ShortBuffer value)
Copies the specifiedShortBuffer
to theregion
field.
-
region
public NkImage.Buffer region(int index, short value)
Sets the specified value at the specified index of theregion
field.
-
-