Package org.lwjgl.nanovg
Class NSVGShape
- All Implemented Interfaces:
Pointer
struct NSVGshape {
char id[64];
{@link NSVGPaint NSVGpaint} fill;
{@link NSVGPaint 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];
{@link NSVGPath NSVGpath} * paths;
{@link NSVGShape NSVGshape} * next;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNSVGShape
(ByteBuffer container) Creates aNSVGShape
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbounds()
float
bounds
(int index) static NSVGShape
create
(long address) Returns a newNSVGShape
instance for the specified memory address.static NSVGShape.Buffer
create
(long address, int capacity) Create aNSVGShape.Buffer
instance at the specified memory.static @Nullable NSVGShape
createSafe
(long address) static @Nullable NSVGShape.Buffer
createSafe
(long address, int capacity) fill()
byte
fillRule()
byte
flags()
id()
idString()
float
static FloatBuffer
nbounds
(long struct) Unsafe version ofbounds()
.static float
nbounds
(long struct, int index) Unsafe version ofbounds
.next()
static NSVGPaint
nfill
(long struct) Unsafe version offill()
.static ByteBuffer
nfillGradient
(long struct) Unsafe version offillGradient()
.static String
nfillGradientString
(long struct) Unsafe version offillGradientString()
.static byte
nfillRule
(long struct) Unsafe version offillRule()
.static byte
nflags
(long struct) Unsafe version offlags()
.static ByteBuffer
nid
(long struct) Unsafe version ofid()
.static String
nidString
(long struct) Unsafe version ofidString()
.static float
nmiterLimit
(long struct) Unsafe version ofmiterLimit()
.static NSVGShape
nnext
(long struct) Unsafe version ofnext()
.static float
nopacity
(long struct) Unsafe version ofopacity()
.static NSVGPath
npaths
(long struct) Unsafe version ofpaths()
.static NSVGPaint
nstroke
(long struct) Unsafe version ofstroke()
.static FloatBuffer
nstrokeDashArray
(long struct) Unsafe version ofstrokeDashArray()
.static float
nstrokeDashArray
(long struct, int index) Unsafe version ofstrokeDashArray
.static byte
nstrokeDashCount
(long struct) Unsafe version ofstrokeDashCount()
.static float
nstrokeDashOffset
(long struct) Unsafe version ofstrokeDashOffset()
.static ByteBuffer
nstrokeGradient
(long struct) Unsafe version ofstrokeGradient()
.static String
nstrokeGradientString
(long struct) Unsafe version ofstrokeGradientString()
.static byte
nstrokeLineCap
(long struct) Unsafe version ofstrokeLineCap()
.static byte
nstrokeLineJoin
(long struct) Unsafe version ofstrokeLineJoin()
.static float
nstrokeWidth
(long struct) Unsafe version ofstrokeWidth()
.static FloatBuffer
nxform
(long struct) Unsafe version ofxform()
.static float
nxform
(long struct, int index) Unsafe version ofxform
.float
opacity()
paths()
int
sizeof()
Returnssizeof(struct)
.stroke()
float
strokeDashArray
(int index) byte
float
byte
byte
float
xform()
float
xform
(int index) Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ID
public static final int IDThe struct member offsets. -
FILL
public static final int FILLThe struct member offsets. -
STROKE
public static final int STROKEThe struct member offsets. -
OPACITY
public static final int OPACITYThe struct member offsets. -
STROKEWIDTH
public static final int STROKEWIDTHThe struct member offsets. -
STROKEDASHOFFSET
public static final int STROKEDASHOFFSETThe struct member offsets. -
STROKEDASHARRAY
public static final int STROKEDASHARRAYThe struct member offsets. -
STROKEDASHCOUNT
public static final int STROKEDASHCOUNTThe struct member offsets. -
STROKELINEJOIN
public static final int STROKELINEJOINThe struct member offsets. -
STROKELINECAP
public static final int STROKELINECAPThe struct member offsets. -
MITERLIMIT
public static final int MITERLIMITThe struct member offsets. -
FILLRULE
public static final int FILLRULEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
BOUNDS
public static final int BOUNDSThe struct member offsets. -
FILLGRADIENT
public static final int FILLGRADIENTThe struct member offsets. -
STROKEGRADIENT
public static final int STROKEGRADIENTThe struct member offsets. -
XFORM
public static final int XFORMThe struct member offsets. -
PATHS
public static final int PATHSThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets.
-
-
Constructor Details
-
NSVGShape
Creates aNSVGShape
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
id
- Returns:
- a
ByteBuffer
view of theid
field.
-
idString
- Returns:
- the null-terminated string stored in the
id
field.
-
fill
- Returns:
- a
NSVGPaint
view of thefill
field.
-
stroke
- Returns:
- a
NSVGPaint
view of thestroke
field.
-
opacity
public float opacity()- Returns:
- the value of the
opacity
field.
-
strokeWidth
public float strokeWidth()- Returns:
- the value of the
strokeWidth
field.
-
strokeDashOffset
public float strokeDashOffset()- Returns:
- the value of the
strokeDashOffset
field.
-
strokeDashArray
- Returns:
- a
FloatBuffer
view of thestrokeDashArray
field.
-
strokeDashArray
public float strokeDashArray(int index) - Returns:
- the value at the specified index of the
strokeDashArray
field.
-
strokeDashCount
public byte strokeDashCount()- Returns:
- the value of the
strokeDashCount
field.
-
strokeLineJoin
public byte strokeLineJoin()- Returns:
- the value of the
strokeLineJoin
field.
-
strokeLineCap
public byte strokeLineCap()- Returns:
- the value of the
strokeLineCap
field.
-
miterLimit
public float miterLimit()- Returns:
- the value of the
miterLimit
field.
-
fillRule
public byte fillRule()- Returns:
- the value of the
fillRule
field.
-
flags
public byte flags()- Returns:
- the value of the
flags
field.
-
bounds
- Returns:
- a
FloatBuffer
view of thebounds
field.
-
bounds
public float bounds(int index) - Returns:
- the value at the specified index of the
bounds
field.
-
fillGradient
- Returns:
- a
ByteBuffer
view of thefillGradient
field.
-
fillGradientString
- Returns:
- the null-terminated string stored in the
fillGradient
field.
-
strokeGradient
- Returns:
- a
ByteBuffer
view of thestrokeGradient
field.
-
strokeGradientString
- Returns:
- the null-terminated string stored in the
strokeGradient
field.
-
xform
- Returns:
- a
FloatBuffer
view of thexform
field.
-
xform
public float xform(int index) - Returns:
- the value at the specified index of the
xform
field.
-
paths
- Returns:
- a
NSVGPath
view of the struct pointed to by thepaths
field.
-
next
- Returns:
- a
NSVGShape
view of the struct pointed to by thenext
field.
-
create
Returns a newNSVGShape
instance for the specified memory address. -
createSafe
-
create
Create aNSVGShape.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nid
Unsafe version ofid()
. -
nidString
Unsafe version ofidString()
. -
nfill
Unsafe version offill()
. -
nstroke
Unsafe version ofstroke()
. -
nopacity
public static float nopacity(long struct) Unsafe version ofopacity()
. -
nstrokeWidth
public static float nstrokeWidth(long struct) Unsafe version ofstrokeWidth()
. -
nstrokeDashOffset
public static float nstrokeDashOffset(long struct) Unsafe version ofstrokeDashOffset()
. -
nstrokeDashArray
Unsafe version ofstrokeDashArray()
. -
nstrokeDashArray
public static float nstrokeDashArray(long struct, int index) Unsafe version ofstrokeDashArray
. -
nstrokeDashCount
public static byte nstrokeDashCount(long struct) Unsafe version ofstrokeDashCount()
. -
nstrokeLineJoin
public static byte nstrokeLineJoin(long struct) Unsafe version ofstrokeLineJoin()
. -
nstrokeLineCap
public static byte nstrokeLineCap(long struct) Unsafe version ofstrokeLineCap()
. -
nmiterLimit
public static float nmiterLimit(long struct) Unsafe version ofmiterLimit()
. -
nfillRule
public static byte nfillRule(long struct) Unsafe version offillRule()
. -
nflags
public static byte nflags(long struct) Unsafe version offlags()
. -
nbounds
Unsafe version ofbounds()
. -
nbounds
public static float nbounds(long struct, int index) Unsafe version ofbounds
. -
nfillGradient
Unsafe version offillGradient()
. -
nfillGradientString
Unsafe version offillGradientString()
. -
nstrokeGradient
Unsafe version ofstrokeGradient()
. -
nstrokeGradientString
Unsafe version ofstrokeGradientString()
. -
nxform
Unsafe version ofxform()
. -
nxform
public static float nxform(long struct, int index) Unsafe version ofxform
. -
npaths
Unsafe version ofpaths()
. -
nnext
Unsafe version ofnext()
.
-