17 #define TVG_API __declspec(dllexport)
19 #define TVG_API __declspec(dllimport)
21 #elif (defined(__SUNPRO_C) || defined(__SUNPRO_CC))
22 #define TVG_API __global
24 #if (defined(__GNUC__) && __GNUC__ >= 4) || defined(__INTEL_COMPILER)
25 #define TVG_API __attribute__ ((visibility("default")))
39 #define TVG_DEPRECATED __declspec(deprecated)
40#elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
41 #define TVG_DEPRECATED __attribute__ ((__deprecated__))
43 #define TVG_DEPRECATED
46#define _TVG_DECLARE_PRIVATE(A) \
50 A(const A&) = delete; \
51 const A& operator=(const A&) = delete; \
54#define _TVG_DISABLE_CTOR(A) \
58#define _TVG_DECLARE_ACCESSOR(A) \
404 TVG_DEPRECATED
Result bounds(
float* x,
float* y,
float* w,
float* h) const noexcept;
420 Result bounds(
float* x,
float* y,
float* w,
float* h,
bool transformed) const noexcept;
474 _TVG_DECLARE_PRIVATE(
Paint);
580 _TVG_DECLARE_PRIVATE(
Fill);
597 Canvas(RenderMethod*);
600 TVG_DEPRECATED
Result reserve(uint32_t n)
noexcept;
699 _TVG_DECLARE_PRIVATE(Canvas);
745 Result linear(
float* x1,
float* y1,
float* x2,
float* y2)
const noexcept;
752 static std::unique_ptr<LinearGradient>
gen() noexcept;
817 static std::unique_ptr<RadialGradient>
gen() noexcept;
902 Result cubicTo(
float cx1,
float cy1,
float cx2,
float cy2,
float x,
float y) noexcept;
935 Result appendRect(
float x,
float y,
float w,
float h,
float rx = 0,
float ry = 0) noexcept;
969 TVG_DEPRECATED
Result appendArc(
float cx,
float cy,
float radius,
float startAngle,
float sweep,
bool pie) noexcept;
1083 Result fill(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) noexcept;
1146 Result fillColor(uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a =
nullptr) const noexcept;
1235 _TVG_DECLARE_PRIVATE(
Shape);
1273 TVG_DEPRECATED
Result load(
const char* data, uint32_t
size,
bool copy =
false) noexcept;
1295 Result load(const
char* data, uint32_t
size, const std::
string& mimeType,
bool copy = false) noexcept;
1333 Result load(uint32_t* data, uint32_t w, uint32_t h,
bool copy) noexcept;
1374 _TVG_DECLARE_PRIVATE(
Picture);
1408 TVG_DEPRECATED
Result reserve(uint32_t size)
noexcept;
1473 _TVG_DECLARE_PRIVATE(
Scene);
1504 Result font(
const char* name,
float size,
const char* style =
nullptr) noexcept;
1588 static
Result load(const
char* name, const
char* data, uint32_t size, const std::
string& mimeType =
"ttf",
bool copy = false) noexcept;
1626 _TVG_DECLARE_PRIVATE(
Text);
1712 static std::unique_ptr<SwCanvas>
gen() noexcept;
1758 static std::unique_ptr<GlCanvas>
gen() noexcept;
1795 Result target(
void* instance,
void* surface, uint32_t w, uint32_t h,
void* device =
nullptr) noexcept;
1860 static const char*
version(uint32_t* major, uint32_t* minor, uint32_t* micro)
noexcept;
2044 Result save(std::unique_ptr<Paint> paint,
const std::string& path,
bool compress =
true) noexcept;
2067 Result save(std::unique_ptr<
Animation> animation, const std::
string& path, uint32_t quality = 100, uint32_t fps = 0) noexcept;
2092 _TVG_DECLARE_PRIVATE(
Saver);
2112 TVG_DEPRECATED std::unique_ptr<Picture> set(std::unique_ptr<Picture> picture, std::function<
bool(
const Paint* paint)> func)
noexcept;
2141 static uint32_t
id(
const char* name)
noexcept;
2148 static std::unique_ptr<Accessor>
gen() noexcept;
2158template<typename T = tvg::
Paint>
2161 return std::unique_ptr<T>(
static_cast<T*
>(paint));
2169template<
typename T = tvg::Fill>
2172 return std::unique_ptr<T>(
static_cast<T*
>(fill));
The Accessor is a utility class to debug the Scene structure by traversing the scene-tree.
Definition thorvg.h:2108
static uint32_t id(const char *name) noexcept
Generate a unique ID (hash key) from a given name.
Result set(Paint *paint, std::function< bool(const Paint *paint, void *data)> func, void *data) noexcept
Set the access function for traversing the Picture scene tree nodes.
static std::unique_ptr< Accessor > gen() noexcept
Creates a new Accessor object.
The Animation class enables manipulation of animatable images.
Definition thorvg.h:1877
float curFrame() const noexcept
Retrieves the current frame number of the animation.
float totalFrame() const noexcept
Retrieves the total number of frames in the animation.
Picture * picture() const noexcept
Retrieves a picture instance associated with this animation instance.
float duration() const noexcept
Retrieves the duration of the animation in seconds.
Result frame(float no) noexcept
Specifies the current frame in the animation.
Result segment(float begin, float end) noexcept
Specifies the playback segment of the animation.
static std::unique_ptr< Animation > gen() noexcept
Creates a new Animation object.
virtual Result viewport(int32_t x, int32_t y, int32_t w, int32_t h) noexcept
Sets the drawing region in the canvas.
std::list< Paint * > & paints() noexcept
Returns the list of the paints that currently held by the Canvas.
virtual Result push(std::unique_ptr< Paint > paint) noexcept
Passes drawing elements to the Canvas using Paint objects.
virtual Result update(Paint *paint=nullptr) noexcept
Request the canvas to update the paint objects.
virtual Result clear(bool free=true) noexcept
Clear the internal canvas resources that used for the drawing.
virtual Result draw() noexcept
Requests the canvas to draw the Paint objects.
virtual Result sync() noexcept
Guarantees that drawing task is finished.
An abstract class representing the gradient fill of the Shape object.
Definition thorvg.h:490
FillSpread spread() const noexcept
Gets the FillSpread value of the fill.
Result colorStops(const ColorStop *colorStops, uint32_t cnt) noexcept
Sets the parameters of the colors of the gradient and their position.
Fill * duplicate() const noexcept
Creates a copy of the Fill object.
Result transform(const Matrix &m) noexcept
Sets the matrix of the affine transformation for the gradient fill.
uint32_t colorStops(const ColorStop **colorStops) const noexcept
Gets the parameters of the colors of the gradient, their position and number.
virtual Type type() const noexcept=0
Returns the ID value of this class.
Result spread(FillSpread s) noexcept
Sets the FillSpread value, which specifies how to fill the area outside the gradient bounds.
TVG_DEPRECATED uint32_t identifier() const noexcept
A class for the rendering graphic elements with a GL raster engine.
Definition thorvg.h:1726
Result target(int32_t id, uint32_t w, uint32_t h) noexcept
Sets the drawing target for rasterization.
static std::unique_ptr< GlCanvas > gen() noexcept
Creates a new GlCanvas object.
A class that enables initialization and termination of the TVG engines.
Definition thorvg.h:1816
static const char * version(uint32_t *major, uint32_t *minor, uint32_t *micro) noexcept
Retrieves the version of the TVG engine.
static Result term(CanvasEngine engine) noexcept
Terminates TVG engines.
static Result init(CanvasEngine engine, uint32_t threads) noexcept
Initializes TVG engines.
A class representing the linear gradient fill of the Shape object.
Definition thorvg.h:712
Type type() const noexcept override
Returns the ID value of this class.
Result linear(float *x1, float *y1, float *x2, float *y2) const noexcept
Gets the linear gradient bounds.
static std::unique_ptr< LinearGradient > gen() noexcept
Creates a new LinearGradient object.
Result linear(float x1, float y1, float x2, float y2) noexcept
Sets the linear gradient bounds.
static TVG_DEPRECATED uint32_t identifier() noexcept
An abstract class for managing graphical elements.
Definition thorvg.h:295
Result blend(BlendMethod method) noexcept
Sets the blending method for the paint object.
Result composite(std::unique_ptr< Paint > target, CompositeMethod method) noexcept
Sets the composition target object and the composition method.
Result opacity(uint8_t o) noexcept
Sets the opacity of the object.
Result scale(float factor) noexcept
Sets the scale value of the object.
Result clip(std::unique_ptr< Paint > clipper) noexcept
Clip the drawing region of the paint object.
Result rotate(float degree) noexcept
Sets the angle by which the object is rotated.
Paint * duplicate() const noexcept
Duplicates the object.
Result transform(const Matrix &m) noexcept
Sets the matrix of the affine transformation for the object.
Matrix transform() noexcept
Gets the matrix of the affine transformation of the object.
Result translate(float x, float y) noexcept
Sets the values by which the object is moved in a two-dimensional space.
virtual Type type() const noexcept=0
Returns the ID value of this class.
TVG_DEPRECATED Result bounds(float *x, float *y, float *w, float *h) const noexcept
TVG_DEPRECATED uint32_t identifier() const noexcept
A class representing an image read in one of the supported formats: raw, svg, png,...
Definition thorvg.h:1249
Result size(float w, float h) noexcept
Resizes the picture content to the given width and height.
Type type() const noexcept override
Returns the ID value of this class.
const Paint * paint(uint32_t id) noexcept
Retrieve a paint object from the Picture scene by its Unique ID.
TVG_DEPRECATED Result load(const char *data, uint32_t size, bool copy=false) noexcept
static std::unique_ptr< Picture > gen() noexcept
Creates a new Picture object.
Result load(const std::string &path) noexcept
Loads a picture data directly from a file.
static TVG_DEPRECATED uint32_t identifier() noexcept
A class representing the radial gradient fill of the Shape object.
Definition thorvg.h:781
Type type() const noexcept override
Returns the ID value of this class.
Result radial(float cx, float cy, float radius) noexcept
Sets the radial gradient bounds.
Result radial(float *cx, float *cy, float *radius) const noexcept
Gets the radial gradient bounds.
static std::unique_ptr< RadialGradient > gen() noexcept
Creates a new RadialGradient object.
static TVG_DEPRECATED uint32_t identifier() noexcept
A class for exporting a paint object into a specified file, from which to recover the paint data late...
Definition thorvg.h:2011
Result sync() noexcept
Guarantees that the saving task is finished.
static std::unique_ptr< Saver > gen() noexcept
Creates a new Saver object.
Result background(std::unique_ptr< Paint > paint) noexcept
Sets the base background content for the saved image.
Result save(std::unique_ptr< Paint > paint, const std::string &path, bool compress=true) noexcept
Exports the given paint data to the given path.
A class to composite children paints.
Definition thorvg.h:1390
Type type() const noexcept override
Returns the ID value of this class.
Result push(std::unique_ptr< Paint > paint) noexcept
Passes drawing elements to the Scene using Paint objects.
static std::unique_ptr< Scene > gen() noexcept
Creates a new Scene object.
std::list< Paint * > & paints() noexcept
Returns the list of the paints that currently held by the Scene.
Result clear(bool free=true) noexcept
Sets the total number of the paints pushed into the scene to be zero. Depending on the value of the f...
static TVG_DEPRECATED uint32_t identifier() noexcept
A class representing two-dimensional figures and their properties.
Definition thorvg.h:852
Result fill(uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) noexcept
Sets the solid color for all of the figures from the path.
StrokeCap strokeCap() const noexcept
Gets the cap style used for stroking the path.
Type type() const noexcept override
Returns the ID value of this class.
float strokeWidth() const noexcept
Gets the stroke width.
Result close() noexcept
Closes the current sub-path by drawing a line from the current point to the initial point of the sub-...
Result appendPath(const PathCommand *cmds, uint32_t cmdCnt, const Point *pts, uint32_t ptsCnt) noexcept
Appends a given sub-path to the path.
static std::unique_ptr< Shape > gen() noexcept
Creates a new Shape object.
Result appendCircle(float cx, float cy, float rx, float ry) noexcept
Appends an ellipse to the path.
Result moveTo(float x, float y) noexcept
Sets the initial point of the sub-path.
TVG_DEPRECATED Result appendArc(float cx, float cy, float radius, float startAngle, float sweep, bool pie) noexcept
Appends a circular arc to the path.
Result stroke(float width) noexcept
Sets the stroke width for all of the figures from the path.
Result strokeColor(uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a=nullptr) const noexcept
Gets the color of the shape's stroke.
Result cubicTo(float cx1, float cy1, float cx2, float cy2, float x, float y) noexcept
Adds new points to the sub-path, which results in drawing a cubic Bezier curve starting at the curren...
Result reset() noexcept
Resets the shape path.
uint32_t pathCoords(const Point **pts) const noexcept
Gets the points values of the path.
Result fillColor(uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a=nullptr) const noexcept
Gets the solid color of the shape.
Result appendRect(float x, float y, float w, float h, float rx=0, float ry=0) noexcept
Appends a rectangle to the path.
Result lineTo(float x, float y) noexcept
Adds a new point to the sub-path, which results in drawing a line from the current point to the given...
Result order(bool strokeFirst) noexcept
Sets the rendering order of the stroke and the fill.
const Fill * strokeFill() const noexcept
Gets the pointer to the gradient fill of the stroke.
StrokeJoin strokeJoin() const noexcept
Gets the join style value used for stroking the path.
FillRule fillRule() const noexcept
Gets the fill rule value.
uint32_t pathCommands(const PathCommand **cmds) const noexcept
Gets the commands data of the path.
Result strokeTrim(float begin, float end, bool simultaneous=true) noexcept
Sets the trim of the stroke along the defined path segment, allowing control over which part of the s...
Result strokeMiterlimit(float miterlimit) noexcept
Sets the stroke miterlimit.
static TVG_DEPRECATED uint32_t identifier() noexcept
uint32_t strokeDash(const float **dashPattern) const noexcept
Gets the dash pattern of the stroke.
A class for the rendering graphical elements with a software raster engine.
Definition thorvg.h:1636
Result target(uint32_t *buffer, uint32_t stride, uint32_t w, uint32_t h, Colorspace cs) noexcept
Sets the drawing target for the rasterization.
Result mempool(MempoolPolicy policy) noexcept
Set sw engine memory pool behavior policy.
Colorspace
Enumeration specifying the methods of combining the 8-bit color channels into 32-bit color.
Definition thorvg.h:1644
@ ARGB8888S
The channels are joined in the order: alpha, red, green, blue. Colors are un-alpha-premultiplied.
Definition thorvg.h:1648
@ ABGR8888S
The channels are joined in the order: alpha, blue, green, red. Colors are un-alpha-premultiplied.
Definition thorvg.h:1647
@ ABGR8888
The channels are joined in the order: alpha, blue, green, red. Colors are alpha-premultiplied....
Definition thorvg.h:1645
@ ARGB8888
The channels are joined in the order: alpha, red, green, blue. Colors are alpha-premultiplied....
Definition thorvg.h:1646
static std::unique_ptr< SwCanvas > gen() noexcept
Creates a new SwCanvas object.
MempoolPolicy
Enumeration specifying the methods of Memory Pool behavior policy.
Definition thorvg.h:1656
@ Shareable
Memory Pool is shared among the SwCanvases.
Definition thorvg.h:1658
@ Default
Default behavior that ThorVG is designed to.
Definition thorvg.h:1657
@ Individual
Allocate designated memory pool that is only used by current instance.
Definition thorvg.h:1659
A class to represent text objects in a graphical context, allowing for rendering and manipulation of ...
Definition thorvg.h:1485
Type type() const noexcept override
Returns the ID value of this class.
static Result unload(const std::string &path) noexcept
Unloads the specified scalable font data (TTF) that was previously loaded.
static Result load(const std::string &path) noexcept
Loads a scalable font data (ttf) from a file.
Result text(const char *text) noexcept
Assigns the given unicode text to be rendered.
Result fill(uint8_t r, uint8_t g, uint8_t b) noexcept
Sets the text color.
Result font(const char *name, float size, const char *style=nullptr) noexcept
Sets the font properties for the text.
static std::unique_ptr< Text > gen() noexcept
Creates a new Text object.
A class for the rendering graphic elements with a WebGPU raster engine.
Definition thorvg.h:1774
Result target(void *instance, void *surface, uint32_t w, uint32_t h, void *device=nullptr) noexcept
Sets the drawing target for the rasterization.
static std::unique_ptr< WgCanvas > gen() noexcept
Creates a new WgCanvas object.
FillSpread
Enumeration specifying how to fill the area outside the gradient bounds.
Definition thorvg.h:134
Result
Enumeration specifying the result from the APIs.
Definition thorvg.h:82
CanvasEngine
Enumeration specifying the engine type used for the graphics backend. For multiple backends bitwise o...
Definition thorvg.h:232
BlendMethod
Enumeration indicates the method used for blending paint. Please refer to the respective formulas for...
Definition thorvg.h:185
Type
Enumeration specifying the ThorVG class type value.
Definition thorvg.h:250
StrokeCap
Enumeration determining the ending type of a stroke in the open sub-paths.
Definition thorvg.h:112
PathCommand
Enumeration specifying the values of the path commands accepted by TVG.
Definition thorvg.h:100
SceneEffect
Enumeration that defines methods used for Scene Effects.
Definition thorvg.h:218
std::unique_ptr< T > cast(Paint *paint)
The cast() function is a utility function used to cast a 'Paint' to type 'T'.
Definition thorvg.h:2159
FillRule
Enumeration specifying the algorithm used to establish which parts of the shape are treated as the in...
Definition thorvg.h:145
CompositeMethod
Enumeration indicating the method used in the composition of two objects - the target and the source.
Definition thorvg.h:159
StrokeJoin
Enumeration determining the style used at the corners of joined stroked path segments.
Definition thorvg.h:123
@ Repeat
The gradient pattern is repeated continuously beyond the gradient area until the expected region is f...
Definition thorvg.h:137
@ Reflect
The gradient pattern is reflected outside the gradient area until the expected region is filled.
Definition thorvg.h:136
@ Pad
The remaining area is filled with the closest stop color.
Definition thorvg.h:135
@ InsufficientCondition
The value returned in case the request cannot be processed - e.g. asking for properties of an object,...
Definition thorvg.h:85
@ Success
The value returned in case of a correct request execution.
Definition thorvg.h:83
@ Unknown
The value returned in all other cases.
Definition thorvg.h:89
@ NonSupport
The value returned in case of choosing unsupported engine features(options).
Definition thorvg.h:88
@ FailedAllocation
The value returned in case of unsuccessful memory allocation.
Definition thorvg.h:86
@ InvalidArguments
The value returned in the event of a problem with the arguments given to the API - e....
Definition thorvg.h:84
@ MemoryCorruption
The value returned in the event of bad memory handling - e.g. failing in pointer releasing or casting...
Definition thorvg.h:87
@ Gl
OpenGL rasterizer.
Definition thorvg.h:234
@ Sw
CPU rasterizer.
Definition thorvg.h:233
@ Wg
WebGPU rasterizer.
Definition thorvg.h:235
@ SoftLight
The same as Overlay but with applying pure black or white does not result in pure black or white....
Definition thorvg.h:195
@ Lighten
Only has the opposite action of Darken Only. max(S, D)
Definition thorvg.h:191
@ Exclusion
The result is twice the product of the top and bottom layers, subtracted from their sum....
Definition thorvg.h:197
@ Difference
Subtracts the bottom layer from the top layer or the other way around, to always get a non-negative v...
Definition thorvg.h:196
@ Saturation
Reserved. Not supported.
Definition thorvg.h:199
@ Screen
The values of the pixels in the two layers are inverted, multiplied, and then inverted again....
Definition thorvg.h:188
@ Luminosity
Reserved. Not supported.
Definition thorvg.h:201
@ Overlay
Combines Multiply and Screen blend modes. (2 * S * D) if (2 * D < Da), otherwise (Sa * Da) - 2 * (Da ...
Definition thorvg.h:189
@ Normal
Perform the alpha blending(default). S if (Sa == 255), otherwise (Sa * S) + (255 - Sa) * D.
Definition thorvg.h:186
@ ColorBurn
Divides the inverted bottom layer by the top layer, and then inverts the result. 255 - (255 - D) / S.
Definition thorvg.h:193
@ Color
Reserved. Not supported.
Definition thorvg.h:200
@ HardLight
The same as Overlay but with the color roles reversed. (2 * S * D) if (S < Sa), otherwise (Sa * Da) -...
Definition thorvg.h:194
@ Multiply
Takes the RGB channel values from 0 to 255 of each pixel in the top layer and multiples them with the...
Definition thorvg.h:187
@ Add
Simply adds pixel values of one layer with the other. (S + D)
Definition thorvg.h:202
@ ColorDodge
Divides the bottom layer by the inverted top layer. D / (255 - S)
Definition thorvg.h:192
@ Darken
Creates a pixel that retains the smallest components of the top and bottom layer pixels....
Definition thorvg.h:190
@ Hue
Reserved. Not supported.
Definition thorvg.h:198
@ HardMix
Reserved. Not supported.
Definition thorvg.h:203
@ Undefined
Unkown class.
Definition thorvg.h:251
@ Butt
The stroke ends exactly at each of the two end-points of a sub-path. For zero length sub-paths no str...
Definition thorvg.h:115
@ Round
The stroke is extended in both end-points of a sub-path by a half circle, with a radius equal to the ...
Definition thorvg.h:114
@ Square
The stroke is extended in both end-points of a sub-path by a rectangle, with the width equal to the s...
Definition thorvg.h:113
@ LineTo
Draws a line from the current point to the given point and sets a new value of the current point....
Definition thorvg.h:103
@ CubicTo
Draws a cubic Bezier curve from the current point to the given point using two given control points a...
Definition thorvg.h:104
@ Close
Ends the current sub-path and connects it with its initial point. This command doesn't expect any poi...
Definition thorvg.h:101
@ MoveTo
Sets a new initial point of the sub-path and a new current point. This command expects 1 point: the s...
Definition thorvg.h:102
@ Tritone
Apply a tritone color effect to the scene using three color parameters for shadows,...
Definition thorvg.h:224
@ Tint
Tinting the current scene color with a given black, white color paramters (Experimental API)....
Definition thorvg.h:223
@ GaussianBlur
Apply a blur effect with a Gaussian filter. Param(3) = {sigma(float)[> 0], direction(int)[both: 0 / h...
Definition thorvg.h:220
@ DropShadow
Apply a drop shadow effect with a Gaussian Blur filter. Param(8) = {color_R(int)[0 - 255],...
Definition thorvg.h:221
@ ClearAll
Reset all previously applied scene effects, restoring the scene to its original state.
Definition thorvg.h:219
@ Winding
A line from the point to a location outside the shape is drawn. The intersections of the line with th...
Definition thorvg.h:146
@ EvenOdd
A line from the point to a location outside the shape is drawn and its intersections with the path se...
Definition thorvg.h:147
@ InvLumaMask
Alpha Masking using the grayscale (0.2125R + 0.7154G + 0.0721*B) of the complement to the compositing...
Definition thorvg.h:165
@ LumaMask
Alpha Masking using the grayscale (0.2125R + 0.7154G + 0.0721*B) of the compositing target's pixels.
Definition thorvg.h:164
@ InvAlphaMask
Alpha Masking using the complement to the compositing target's pixels as an alpha value.
Definition thorvg.h:163
@ ClipPath
The intersection of the source and the target is determined and only the resulting pixels from the so...
Definition thorvg.h:161
@ None
No composition is applied.
Definition thorvg.h:160
@ DarkenMask
Where multiple masks intersect, the lowest transparency value is used. (Experimental API)
Definition thorvg.h:171
@ DifferenceMask
Calculates the absolute difference between the target color and the source color multiplied by the co...
Definition thorvg.h:169
@ AddMask
Combines the target and source objects pixels using target alpha. (T * TA) + (S * (255 - TA)) (Experi...
Definition thorvg.h:166
@ SubtractMask
Subtracts the source color from the target color while considering their respective target alpha....
Definition thorvg.h:167
@ AlphaMask
Alpha Masking using the compositing target's pixels as an alpha value.
Definition thorvg.h:162
@ IntersectMask
Computes the result by taking the minimum value between the target alpha and the source alpha and mul...
Definition thorvg.h:168
@ LightenMask
Where multiple masks intersect, the highest transparency value is used. (Experimental API)
Definition thorvg.h:170
@ Bevel
The outer corner of the joined path segments is bevelled at the join point. The triangular region of ...
Definition thorvg.h:124
@ Miter
The outer corner of the joined path segments is spiked. The spike is created by extension beyond the ...
Definition thorvg.h:126
A data structure storing the information about the color and its relative position inside the gradien...
Definition thorvg.h:496
uint8_t g
Definition thorvg.h:499
float offset
Definition thorvg.h:497
uint8_t b
Definition thorvg.h:500
uint8_t r
Definition thorvg.h:498
uint8_t a
Definition thorvg.h:501
A data structure representing a three-dimensional matrix.
Definition thorvg.h:278
A data structure representing a point in two-dimensional space.
Definition thorvg.h:265