public class NSVGGradient
extends org.lwjgl.system.Struct
struct NSVGgradient {
float xform[6];
char spread;
float fx;
float fy;
int nstops;
NSVGgradientStop pstops[1];
}| Modifier and Type | Class and Description |
|---|---|
static class |
NSVGGradient.Buffer
An array of
NSVGGradient structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FX
The struct member offsets.
|
static int |
FY
The struct member offsets.
|
static int |
NSTOPS
The struct member offsets.
|
static int |
PSTOPS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPREAD
The struct member offsets.
|
static int |
XFORM
The struct member offsets.
|
| Constructor and Description |
|---|
NSVGGradient(java.nio.ByteBuffer container)
Creates a
NSVGGradient instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NSVGGradient |
create(long address)
Returns a new
NSVGGradient instance for the specified memory address. |
static NSVGGradient.Buffer |
create(long address,
int capacity)
Create a
NSVGGradient.Buffer instance at the specified memory. |
static NSVGGradient |
createSafe(long address)
|
static NSVGGradient.Buffer |
createSafe(long address,
int capacity)
|
float |
fx()
Returns the value of the
fx field. |
float |
fy()
Returns the value of the
fy field. |
static float |
nfx(long struct)
Unsafe version of
fx(). |
static float |
nfy(long struct)
Unsafe version of
fy(). |
static int |
nnstops(long struct)
Unsafe version of
nstops(). |
static NSVGGradientStop.Buffer |
npstops(long struct)
Unsafe version of
pstops(). |
static NSVGGradientStop |
npstops(long struct,
int index)
Unsafe version of
pstops. |
static byte |
nspread(long struct)
Unsafe version of
spread(). |
int |
nstops()
Returns the value of the
nstops field. |
static java.nio.FloatBuffer |
nxform(long struct)
Unsafe version of
xform(). |
static float |
nxform(long struct,
int index)
Unsafe version of
xform. |
NSVGGradientStop.Buffer |
pstops()
Returns a
NSVGGradientStop.Buffer view of the pstops field. |
NSVGGradientStop |
pstops(int index)
Returns a
NSVGGradientStop view of the struct at the specified index of the pstops field. |
int |
sizeof() |
byte |
spread()
Returns the value of the
spread field. |
java.nio.FloatBuffer |
xform()
Returns a
FloatBuffer view of the xform field. |
float |
xform(int index)
Returns the value at the specified index of the
xform field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int XFORM
public static final int SPREAD
public static final int FX
public static final int FY
public static final int NSTOPS
public static final int PSTOPS
public NSVGGradient(java.nio.ByteBuffer container)
NSVGGradient 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 java.nio.FloatBuffer xform()
FloatBuffer view of the xform field.public float xform(int index)
xform field.public byte spread()
spread field.public float fx()
fx field.public float fy()
fy field.public int nstops()
nstops field.public NSVGGradientStop.Buffer pstops()
NSVGGradientStop.Buffer view of the pstops field.public NSVGGradientStop pstops(int index)
NSVGGradientStop view of the struct at the specified index of the pstops field.public static NSVGGradient create(long address)
NSVGGradient instance for the specified memory address.@Nullable public static NSVGGradient createSafe(long address)
public static NSVGGradient.Buffer create(long address, int capacity)
NSVGGradient.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NSVGGradient.Buffer createSafe(long address, int capacity)
public static java.nio.FloatBuffer nxform(long struct)
xform().public static float nxform(long struct,
int index)
xform.public static byte nspread(long struct)
spread().public static float nfx(long struct)
fx().public static float nfy(long struct)
fy().public static int nnstops(long struct)
nstops().public static NSVGGradientStop.Buffer npstops(long struct)
pstops().public static NSVGGradientStop npstops(long struct, int index)
pstops.Copyright LWJGL. All Rights Reserved. License terms.