struct NSVGshape {
char id[64];
NSVGpaint fill;
NSVGpaint stroke;
float opacity;
float strokeWidth;
float strokeDashOffset;
float strokeDashArray[8];
char strokeDashCount;
char strokeLineJoin;
char strokeLineCap;
float miterLimit;
char fillRule;
unsigned char flags;
float bounds[4];
char fillGradient[64];
char strokeGradient[64];
float xform[6];
NSVGpath * paths;
NSVGshape * next;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NSVGShape.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BOUNDS
The struct member offsets. |
| public static final int | FILL
The struct member offsets. |
| public static final int | FILLGRADIENT
The struct member offsets. |
| public static final int | FILLRULE
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | ID
The struct member offsets. |
| public static final int | MITERLIMIT
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | OPACITY
The struct member offsets. |
| public static final int | PATHS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STROKE
The struct member offsets. |
| public static final int | STROKEDASHARRAY
The struct member offsets. |
| public static final int | STROKEDASHCOUNT
The struct member offsets. |
| public static final int | STROKEDASHOFFSET
The struct member offsets. |
| public static final int | STROKEGRADIENT
The struct member offsets. |
| public static final int | STROKELINECAP
The struct member offsets. |
| public static final int | STROKELINEJOIN
The struct member offsets. |
| public static final int | STROKEWIDTH
The struct member offsets. |
| public static final int | XFORM
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NSVGShape(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public FloatBuffer | |
| public float | |
| protected NSVGShape | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static NSVGShape | |
| public static NSVGShape. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NSVGShape | |
| public static NSVGShape. | |
| public NSVGPaint | |
| public ByteBuffer | |
| public String | |
| public byte | |
| public byte | |
| public ByteBuffer | |
| public String | |
| public float | |
| public static FloatBuffer | |
| public static float | |
| public NSVGShape | |
| public static NSVGPaint | |
| public static ByteBuffer | |
| public static String | |
| public static byte | |
| public static byte | |
| public static ByteBuffer | |
| public static String | |
| public static float | |
| public static NSVGShape | |
| public static float | |
| public static NSVGPath | |
| public static NSVGPaint | |
| public static FloatBuffer | |
| public static float | |
| public static byte | |
| public static float | |
| public static ByteBuffer | |
| public static String | |
| public static byte | |
| public static byte | |
| public static float | |
| public static FloatBuffer | |
| public static float | |
| public float | |
| public NSVGPath | |
| public int | |
| public NSVGPaint | |
| public FloatBuffer | |
| public float | |
| public byte | |
| public float | |
| public ByteBuffer | |
| public String | |
| public byte | |
| public byte | |
| public float | |
| public FloatBuffer | |
| public float |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BOUNDS | back to summary |
|---|---|
| public static final int BOUNDS The struct member offsets. | |
| FILL | back to summary |
|---|---|
| public static final int FILL The struct member offsets. | |
| FILLGRADIENT | back to summary |
|---|---|
| public static final int FILLGRADIENT The struct member offsets. | |
| FILLRULE | back to summary |
|---|---|
| public static final int FILLRULE The struct member offsets. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| ID | back to summary |
|---|---|
| public static final int ID The struct member offsets. | |
| MITERLIMIT | back to summary |
|---|---|
| public static final int MITERLIMIT The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| OPACITY | back to summary |
|---|---|
| public static final int OPACITY The struct member offsets. | |
| PATHS | back to summary |
|---|---|
| public static final int PATHS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STROKE | back to summary |
|---|---|
| public static final int STROKE The struct member offsets. | |
| STROKEDASHARRAY | back to summary |
|---|---|
| public static final int STROKEDASHARRAY The struct member offsets. | |
| STROKEDASHCOUNT | back to summary |
|---|---|
| public static final int STROKEDASHCOUNT The struct member offsets. | |
| STROKEDASHOFFSET | back to summary |
|---|---|
| public static final int STROKEDASHOFFSET The struct member offsets. | |
| STROKEGRADIENT | back to summary |
|---|---|
| public static final int STROKEGRADIENT The struct member offsets. | |
| STROKELINECAP | back to summary |
|---|---|
| public static final int STROKELINECAP The struct member offsets. | |
| STROKELINEJOIN | back to summary |
|---|---|
| public static final int STROKELINEJOIN The struct member offsets. | |
| STROKEWIDTH | back to summary |
|---|---|
| public static final int STROKEWIDTH The struct member offsets. | |
| XFORM | back to summary |
|---|---|
| public static final int XFORM The struct member offsets. | |
| NSVGShape | back to summary |
|---|---|
| protected NSVGShape(long address, ByteBuffer container) | |
| NSVGShape | back to summary |
|---|---|
| public NSVGShape(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| bounds | back to summary |
|---|---|
| public FloatBuffer bounds() tight bounding box of the shape
| |
| bounds | back to summary |
|---|---|
| public float bounds(int index) tight bounding box of the shape | |
| create | back to summary |
|---|---|
| protected NSVGShape create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NSVGShape create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NSVGShape. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NSVGShape createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NSVGShape. Like
| |
| fill | back to summary |
|---|---|
| public NSVGPaint fill() fill paint
| |
| fillGradient | back to summary |
|---|---|
| public ByteBuffer fillGradient() optional 'id' of fill gradient
| |
| fillGradientString | back to summary |
|---|---|
| public String fillGradientString() optional 'id' of fill gradient
| |
| fillRule | back to summary |
|---|---|
| public byte fillRule() fill rule, see NSVGfillRule
| |
| flags | back to summary |
|---|---|
| public byte flags() logical or of NSVG_FLAGS_* flags
| |
| id | back to summary |
|---|---|
| public ByteBuffer id() optional 'id' attr of the shape or its group
| |
| idString | back to summary |
|---|---|
| public String idString() optional 'id' attr of the shape or its group
| |
| miterLimit | back to summary |
|---|---|
| public float miterLimit() miter limit | |
| nbounds | back to summary |
|---|---|
| public static FloatBuffer nbounds(long struct) Unsafe version of | |
| nbounds | back to summary |
|---|---|
| public static float nbounds(long struct, int index) Unsafe version of | |
| next | back to summary |
|---|---|
| public NSVGShape next() pointer to next shape, or
| |
| nfill | back to summary |
|---|---|
| public static NSVGPaint nfill(long struct) Unsafe version of | |
| nfillGradient | back to summary |
|---|---|
| public static ByteBuffer nfillGradient(long struct) Unsafe version of | |
| nfillGradientString | back to summary |
|---|---|
| public static String nfillGradientString(long struct) Unsafe version of | |
| nfillRule | back to summary |
|---|---|
| public static byte nfillRule(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static byte nflags(long struct) Unsafe version of | |
| nid | back to summary |
|---|---|
| public static ByteBuffer nid(long struct) Unsafe version of | |
| nidString | back to summary |
|---|---|
| public static String nidString(long struct) Unsafe version of | |
| nmiterLimit | back to summary |
|---|---|
| public static float nmiterLimit(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static NSVGShape nnext(long struct) Unsafe version of | |
| nopacity | back to summary |
|---|---|
| public static float nopacity(long struct) Unsafe version of | |
| npaths | back to summary |
|---|---|
| public static NSVGPath npaths(long struct) Unsafe version of | |
| nstroke | back to summary |
|---|---|
| public static NSVGPaint nstroke(long struct) Unsafe version of | |
| nstrokeDashArray | back to summary |
|---|---|
| public static FloatBuffer nstrokeDashArray(long struct) Unsafe version of | |
| nstrokeDashArray | back to summary |
|---|---|
| public static float nstrokeDashArray(long struct, int index) Unsafe version of | |
| nstrokeDashCount | back to summary |
|---|---|
| public static byte nstrokeDashCount(long struct) Unsafe version of | |
| nstrokeDashOffset | back to summary |
|---|---|
| public static float nstrokeDashOffset(long struct) Unsafe version of | |
| nstrokeGradient | back to summary |
|---|---|
| public static ByteBuffer nstrokeGradient(long struct) Unsafe version of | |
| nstrokeGradientString | back to summary |
|---|---|
| public static String nstrokeGradientString(long struct) Unsafe version of | |
| nstrokeLineCap | back to summary |
|---|---|
| public static byte nstrokeLineCap(long struct) Unsafe version of | |
| nstrokeLineJoin | back to summary |
|---|---|
| public static byte nstrokeLineJoin(long struct) Unsafe version of | |
| nstrokeWidth | back to summary |
|---|---|
| public static float nstrokeWidth(long struct) Unsafe version of | |
| nxform | back to summary |
|---|---|
| public static FloatBuffer nxform(long struct) Unsafe version of | |
| nxform | back to summary |
|---|---|
| public static float nxform(long struct, int index) Unsafe version of | |
| opacity | back to summary |
|---|---|
| public float opacity() opacity of the shape | |
| paths | back to summary |
|---|---|
| public NSVGPath paths() linked list of paths in the image
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| stroke | back to summary |
|---|---|
| public NSVGPaint stroke() stroke paint
| |
| strokeDashArray | back to summary |
|---|---|
| public FloatBuffer strokeDashArray() stroke dash array (scaled)
| |
| strokeDashArray | back to summary |
|---|---|
| public float strokeDashArray(int index) stroke dash array (scaled) | |
| strokeDashCount | back to summary |
|---|---|
| public byte strokeDashCount() number of dash values in dash array
| |
| strokeDashOffset | back to summary |
|---|---|
| public float strokeDashOffset() stroke dash offset (scaled) | |
| strokeGradient | back to summary |
|---|---|
| public ByteBuffer strokeGradient() optional 'id' of stroke gradient
| |
| strokeGradientString | back to summary |
|---|---|
| public String strokeGradientString() optional 'id' of stroke gradient
| |
| strokeLineCap | back to summary |
|---|---|
| public byte strokeLineCap() stroke cap type
| |
| strokeLineJoin | back to summary |
|---|---|
| public byte strokeLineJoin() stroke join type
| |
| strokeWidth | back to summary |
|---|---|
| public float strokeWidth() stroke width (scaled) | |
| xform | back to summary |
|---|---|
| public FloatBuffer xform() root transformation for fill/stroke gradient
| |
| xform | back to summary |
|---|---|
| public float xform(int index) root transformation for fill/stroke gradient | |
NSVGShape structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NSVGShape |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public FloatBuffer | |
| public float | |
| public NSVGPaint | |
| public ByteBuffer | |
| public String | |
| public byte | |
| public byte | |
| protected NSVGShape | |
| public ByteBuffer | |
| public String | |
| public float | |
| public NSVGShape | |
| public float | |
| public NSVGPath | |
| protected NSVGShape. | |
| public NSVGPaint | |
| public FloatBuffer | |
| public float | Returns: the value at the specified index of theNSVGShape#strokeDashArray field.
|
| public byte | |
| public float | |
| public ByteBuffer | |
| public String | Returns: the null-terminated string stored in theNSVGShape#strokeGradient field.
|
| public byte | |
| public byte | |
| public float | |
| public FloatBuffer | |
| public float |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NSVGShape ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| bounds | back to summary |
|---|---|
public FloatBuffer bounds()
| |
| bounds | back to summary |
|---|---|
public float bounds(int index)
| |
| fill | back to summary |
|---|---|
public NSVGPaint fill()
| |
| fillGradient | back to summary |
|---|---|
public ByteBuffer fillGradient()
| |
| fillGradientString | back to summary |
|---|---|
public String fillGradientString()
| |
| fillRule | back to summary |
|---|---|
public byte fillRule()
| |
| flags | back to summary |
|---|---|
public byte flags()
| |
| getElementFactory | back to summary |
|---|---|
| protected NSVGShape getElementFactory() Implements abstract org.
| |
| id | back to summary |
|---|---|
public ByteBuffer id()
| |
| idString | back to summary |
|---|---|
public String idString()
| |
| miterLimit | back to summary |
|---|---|
public float miterLimit()
| |
| next | back to summary |
|---|---|
public NSVGShape next()
| |
| opacity | back to summary |
|---|---|
public float opacity()
| |
| paths | back to summary |
|---|---|
public NSVGPath paths()
| |
| self | back to summary |
|---|---|
| protected NSVGShape. Implements abstract org.
| |
| stroke | back to summary |
|---|---|
public NSVGPaint stroke()
| |
| strokeDashArray | back to summary |
|---|---|
public FloatBuffer strokeDashArray()
| |
| strokeDashArray | back to summary |
|---|---|
public float strokeDashArray(int index)
| |
| strokeDashCount | back to summary |
|---|---|
public byte strokeDashCount()
| |
| strokeDashOffset | back to summary |
|---|---|
public float strokeDashOffset()
| |
| strokeGradient | back to summary |
|---|---|
public ByteBuffer strokeGradient()
| |
| strokeGradientString | back to summary |
|---|---|
public String strokeGradientString()
| |
| strokeLineCap | back to summary |
|---|---|
public byte strokeLineCap()
| |
| strokeLineJoin | back to summary |
|---|---|
public byte strokeLineJoin()
| |
| strokeWidth | back to summary |
|---|---|
public float strokeWidth()
| |
| xform | back to summary |
|---|---|
public FloatBuffer xform()
| |
| xform | back to summary |
|---|---|
public float xform(int index)
| |