public class NSVGGradientStop
extends org.lwjgl.system.Struct
struct NSVGgradientStop {
unsigned int color;
float offset;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NSVGGradientStop.Buffer
An array of
NSVGGradientStop structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COLOR
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NSVGGradientStop(java.nio.ByteBuffer container)
Creates a
NSVGGradientStop instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
color()
Returns the value of the
color field. |
static NSVGGradientStop |
create(long address)
Returns a new
NSVGGradientStop instance for the specified memory address. |
static NSVGGradientStop.Buffer |
create(long address,
int capacity)
Create a
NSVGGradientStop.Buffer instance at the specified memory. |
static NSVGGradientStop |
createSafe(long address)
|
static NSVGGradientStop.Buffer |
createSafe(long address,
int capacity)
|
static int |
ncolor(long struct)
Unsafe version of
color(). |
static float |
noffset(long struct)
Unsafe version of
offset(). |
float |
offset()
Returns the value of the
offset field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int COLOR
public static final int OFFSET
public NSVGGradientStop(java.nio.ByteBuffer container)
NSVGGradientStop instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int color()
color field.public float offset()
offset field.public static NSVGGradientStop create(long address)
NSVGGradientStop instance for the specified memory address.@Nullable public static NSVGGradientStop createSafe(long address)
public static NSVGGradientStop.Buffer create(long address, int capacity)
NSVGGradientStop.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NSVGGradientStop.Buffer createSafe(long address, int capacity)
public static int ncolor(long struct)
color().public static float noffset(long struct)
offset().Copyright LWJGL. All Rights Reserved. License terms.