public class NSVGPath
extends org.lwjgl.system.Struct
pts – cubic bezier points: x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], ...npts – total number of bezier pointsclosed – flag indicating if shapes should be treated as closedbounds[4] – tight bounding box of the shape [minx,miny,maxx,maxy]next – pointer to next path, or NULL if last element
struct NSVGpath {
float * pts;
int npts;
char closed;
float bounds[4];
NSVGpath * next;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NSVGPath.Buffer
An array of
NSVGPath structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BOUNDS
The struct member offsets.
|
static int |
CLOSED
The struct member offsets.
|
static int |
NEXT
The struct member offsets.
|
static int |
NPTS
The struct member offsets.
|
static int |
PTS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NSVGPath(java.nio.ByteBuffer container)
Creates a
NSVGPath instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
java.nio.FloatBuffer |
bounds()
Returns a
FloatBuffer view of the bounds field. |
float |
bounds(int index)
Returns the value at the specified index of the
bounds field. |
byte |
closed()
Returns the value of the
closed field. |
static NSVGPath |
create(long address)
Returns a new
NSVGPath instance for the specified memory address. |
static NSVGPath.Buffer |
create(long address,
int capacity)
Create a
NSVGPath.Buffer instance at the specified memory. |
static NSVGPath |
createSafe(long address)
|
static NSVGPath.Buffer |
createSafe(long address,
int capacity)
|
static java.nio.FloatBuffer |
nbounds(long struct)
Unsafe version of
bounds(). |
static float |
nbounds(long struct,
int index)
Unsafe version of
bounds. |
static byte |
nclosed(long struct)
Unsafe version of
closed(). |
NSVGPath |
next()
Returns a
NSVGPath view of the struct pointed to by the next field. |
static NSVGPath |
nnext(long struct)
Unsafe version of
next(). |
static int |
nnpts(long struct)
Unsafe version of
npts(). |
int |
npts()
Returns the value of the
npts field. |
static java.nio.FloatBuffer |
npts(long struct)
Unsafe version of
pts. |
java.nio.FloatBuffer |
pts()
Returns a
FloatBuffer view of the data pointed to by the pts field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PTS
public static final int NPTS
public static final int CLOSED
public static final int BOUNDS
public static final int NEXT
public NSVGPath(java.nio.ByteBuffer container)
NSVGPath 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 pts()
FloatBuffer view of the data pointed to by the pts field.public int npts()
npts field.public byte closed()
closed field.public java.nio.FloatBuffer bounds()
FloatBuffer view of the bounds field.public float bounds(int index)
bounds field.public static NSVGPath create(long address)
NSVGPath instance for the specified memory address.@Nullable public static NSVGPath createSafe(long address)
public static NSVGPath.Buffer create(long address, int capacity)
NSVGPath.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NSVGPath.Buffer createSafe(long address, int capacity)
public static java.nio.FloatBuffer npts(long struct)
pts.public static int nnpts(long struct)
npts().public static byte nclosed(long struct)
closed().public static java.nio.FloatBuffer nbounds(long struct)
bounds().public static float nbounds(long struct,
int index)
bounds.Copyright LWJGL. All Rights Reserved. License terms.