public static class NVGPaint.Buffer extends org.lwjgl.system.StructBuffer<NVGPaint,NVGPaint.Buffer> implements org.lwjgl.system.NativeResource
NVGPaint structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NVGPaint.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.FloatBuffer |
extent()
Returns a
FloatBuffer view of the extent field. |
NVGPaint.Buffer |
extent(java.nio.FloatBuffer value)
Copies the specified
FloatBuffer to the extent field. |
float |
extent(int index)
Returns the value at the specified index of the
extent field. |
NVGPaint.Buffer |
extent(int index,
float value)
Sets the specified value at the specified index of the
extent field. |
float |
feather()
Returns the value of the
feather field. |
NVGPaint.Buffer |
feather(float value)
Sets the specified value to the
feather field. |
int |
image()
Returns the value of the
image field. |
NVGPaint.Buffer |
image(int value)
Sets the specified value to the
image field. |
NVGColor |
innerColor()
Returns a
NVGColor view of the innerColor field. |
NVGPaint.Buffer |
innerColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
innerColor field to the specified Consumer. |
NVGPaint.Buffer |
innerColor(NVGColor value)
Copies the specified
NVGColor to the innerColor field. |
NVGColor |
outerColor()
Returns a
NVGColor view of the outerColor field. |
NVGPaint.Buffer |
outerColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
outerColor field to the specified Consumer. |
NVGPaint.Buffer |
outerColor(NVGColor value)
Copies the specified
NVGColor to the outerColor field. |
float |
radius()
Returns the value of the
radius field. |
NVGPaint.Buffer |
radius(float value)
Sets the specified value to the
radius field. |
java.nio.FloatBuffer |
xform()
Returns a
FloatBuffer view of the xform field. |
NVGPaint.Buffer |
xform(java.nio.FloatBuffer value)
Copies the specified
FloatBuffer to the xform field. |
float |
xform(int index)
Returns the value at the specified index of the
xform field. |
NVGPaint.Buffer |
xform(int index,
float value)
Sets the specified value at the specified index of the
xform field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NVGPaint.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 NVGPaint.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 java.nio.FloatBuffer xform()
FloatBuffer view of the xform field.public float xform(int index)
xform field.public java.nio.FloatBuffer extent()
FloatBuffer view of the extent field.public float extent(int index)
extent field.public float radius()
radius field.public float feather()
feather field.public int image()
image field.public NVGPaint.Buffer xform(java.nio.FloatBuffer value)
FloatBuffer to the xform field.public NVGPaint.Buffer xform(int index, float value)
xform field.public NVGPaint.Buffer extent(java.nio.FloatBuffer value)
FloatBuffer to the extent field.public NVGPaint.Buffer extent(int index, float value)
extent field.public NVGPaint.Buffer radius(float value)
radius field.public NVGPaint.Buffer feather(float value)
feather field.public NVGPaint.Buffer innerColor(NVGColor value)
NVGColor to the innerColor field.public NVGPaint.Buffer innerColor(java.util.function.Consumer<NVGColor> consumer)
innerColor field to the specified Consumer.public NVGPaint.Buffer outerColor(NVGColor value)
NVGColor to the outerColor field.public NVGPaint.Buffer outerColor(java.util.function.Consumer<NVGColor> consumer)
outerColor field to the specified Consumer.public NVGPaint.Buffer image(int value)
image field.Copyright LWJGL. All Rights Reserved. License terms.