From 24901e7d594c033ed89cb563ad5a69ebf3bb7b26 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 2 Jan 2024 16:26:28 +0900 Subject: [PATCH] docs: updated doxygen for 0.12 release --- docs/Doxyfile | 6 +- docs/html/annotated.html | 16 +- docs/html/annotated_dup.js | 2 + docs/html/classes.html | 10 +- docs/html/classtvg_1_1Accessor-members.html | 2 +- docs/html/classtvg_1_1Accessor.html | 2 +- docs/html/classtvg_1_1Animation-members.html | 8 +- docs/html/classtvg_1_1Animation.html | 69 +- docs/html/classtvg_1_1Animation.js | 6 +- docs/html/classtvg_1_1Canvas-members.html | 2 +- docs/html/classtvg_1_1Canvas.html | 35 +- .../classtvg_1_1Canvas__inherit__graph.map | 3 +- .../classtvg_1_1Canvas__inherit__graph.md5 | 2 +- .../classtvg_1_1Canvas__inherit__graph.png | Bin 4366 -> 6025 bytes docs/html/classtvg_1_1Fill-members.html | 2 +- docs/html/classtvg_1_1Fill.html | 30 +- docs/html/classtvg_1_1GlCanvas-members.html | 2 +- docs/html/classtvg_1_1GlCanvas.html | 8 +- .../html/classtvg_1_1Initializer-members.html | 2 +- docs/html/classtvg_1_1Initializer.html | 2 +- .../classtvg_1_1LinearGradient-members.html | 2 +- docs/html/classtvg_1_1LinearGradient.html | 16 +- docs/html/classtvg_1_1Paint-members.html | 2 +- docs/html/classtvg_1_1Paint.html | 65 +- .../classtvg_1_1Paint__inherit__graph.map | 3 +- .../classtvg_1_1Paint__inherit__graph.md5 | 2 +- .../classtvg_1_1Paint__inherit__graph.png | Bin 4789 -> 6523 bytes docs/html/classtvg_1_1Picture-members.html | 2 +- docs/html/classtvg_1_1Picture.html | 33 +- .../classtvg_1_1RadialGradient-members.html | 2 +- docs/html/classtvg_1_1RadialGradient.html | 16 +- docs/html/classtvg_1_1Saver-members.html | 8 +- docs/html/classtvg_1_1Saver.html | 120 +- docs/html/classtvg_1_1Saver.js | 2 + docs/html/classtvg_1_1Scene-members.html | 2 +- docs/html/classtvg_1_1Scene.html | 18 +- docs/html/classtvg_1_1Shape-members.html | 2 +- docs/html/classtvg_1_1Shape.html | 135 +- docs/html/classtvg_1_1SwCanvas-members.html | 2 +- docs/html/classtvg_1_1SwCanvas.html | 8 +- docs/html/classtvg_1_1Text-members.html | 125 ++ docs/html/classtvg_1_1Text.html | 556 ++++++++ docs/html/classtvg_1_1Text.js | 7 + .../html/classtvg_1_1Text__inherit__graph.map | 4 + .../html/classtvg_1_1Text__inherit__graph.md5 | 1 + .../html/classtvg_1_1Text__inherit__graph.png | Bin 0 -> 1633 bytes docs/html/classtvg_1_1WgCanvas-members.html | 111 ++ docs/html/classtvg_1_1WgCanvas.html | 231 ++++ docs/html/classtvg_1_1WgCanvas.js | 4 + .../classtvg_1_1WgCanvas__inherit__graph.map | 4 + .../classtvg_1_1WgCanvas__inherit__graph.md5 | 1 + .../classtvg_1_1WgCanvas__inherit__graph.png | Bin 0 -> 2804 bytes .../dir_bfccd401955b95cf8c75461437045ac0.html | 8 +- docs/html/functions.html | 30 +- docs/html/functions_enum.html | 2 +- docs/html/functions_eval.html | 2 +- docs/html/functions_func.html | 28 +- docs/html/functions_vars.html | 2 +- docs/html/graph_legend.html | 2 +- docs/html/group__ThorVG.html | 25 +- docs/html/group__ThorVG.js | 20 +- docs/html/hierarchy.html | 24 +- docs/html/hierarchy.js | 6 +- docs/html/index.html | 2 +- docs/html/inherit_graph_2.map | 5 +- docs/html/inherit_graph_2.md5 | 2 +- docs/html/inherit_graph_2.png | Bin 3684 -> 6400 bytes docs/html/inherit_graph_7.map | 3 +- docs/html/inherit_graph_7.md5 | 2 +- docs/html/inherit_graph_7.png | Bin 5371 -> 6968 bytes docs/html/inherits.html | 10 +- docs/html/modules.html | 2 +- docs/html/navtreeindex0.js | 180 +-- docs/html/search/all_1.js | 11 +- docs/html/search/all_10.js | 14 +- docs/html/search/all_11.js | 5 +- docs/html/search/all_12.js | 2 +- docs/html/search/all_13.js | 4 +- docs/html/search/all_2.js | 34 +- docs/html/search/all_3.js | 14 +- docs/html/search/all_4.js | 4 +- docs/html/search/all_5.js | 17 +- docs/html/search/all_6.js | 8 +- docs/html/search/all_7.js | 2 +- docs/html/search/all_8.js | 18 +- docs/html/search/all_9.js | 14 +- docs/html/search/all_a.js | 18 +- docs/html/search/all_b.js | 6 +- docs/html/search/all_c.js | 8 +- docs/html/search/all_d.js | 22 +- docs/html/search/all_e.js | 20 +- docs/html/search/all_f.js | 56 +- docs/html/search/classes_0.js | 4 +- docs/html/search/classes_1.js | 4 +- docs/html/search/classes_2.js | 2 +- docs/html/search/classes_3.js | 2 +- docs/html/search/classes_4.js | 2 +- docs/html/search/classes_5.js | 2 +- docs/html/search/classes_6.js | 2 +- docs/html/search/classes_7.js | 8 +- docs/html/search/classes_8.js | 2 +- docs/html/search/classes_9.js | 8 +- docs/html/search/classes_a.js | 2 +- docs/html/search/classes_b.html | 37 + docs/html/search/classes_b.js | 4 + docs/html/search/classes_c.html | 37 + docs/html/search/classes_c.js | 4 + docs/html/search/enums_0.js | 2 +- docs/html/search/enums_1.js | 6 +- docs/html/search/enums_2.js | 4 +- docs/html/search/enums_3.js | 2 +- docs/html/search/enums_4.js | 2 +- docs/html/search/enums_5.js | 2 +- docs/html/search/enums_6.js | 4 +- docs/html/search/enumvalues_0.js | 14 +- docs/html/search/enumvalues_1.js | 4 +- docs/html/search/enumvalues_10.js | 2 +- docs/html/search/enumvalues_11.js | 3 +- docs/html/search/enumvalues_2.js | 10 +- docs/html/search/enumvalues_3.js | 8 +- docs/html/search/enumvalues_4.js | 4 +- docs/html/search/enumvalues_5.js | 2 +- docs/html/search/enumvalues_6.js | 2 +- docs/html/search/enumvalues_7.js | 2 +- docs/html/search/enumvalues_8.js | 12 +- docs/html/search/enumvalues_9.js | 6 +- docs/html/search/enumvalues_a.js | 8 +- docs/html/search/enumvalues_b.js | 6 +- docs/html/search/enumvalues_c.js | 2 +- docs/html/search/enumvalues_d.js | 2 +- docs/html/search/enumvalues_e.js | 6 +- docs/html/search/enumvalues_f.js | 16 +- docs/html/search/functions_0.js | 8 +- docs/html/search/functions_1.js | 5 +- docs/html/search/functions_2.js | 14 +- docs/html/search/functions_3.js | 6 +- docs/html/search/functions_4.js | 9 +- docs/html/search/functions_5.js | 2 +- docs/html/search/functions_6.js | 4 +- docs/html/search/functions_7.js | 6 +- docs/html/search/functions_8.js | 6 +- docs/html/search/functions_9.js | 4 +- docs/html/search/functions_a.js | 10 +- docs/html/search/functions_b.js | 8 +- docs/html/search/functions_c.js | 28 +- docs/html/search/functions_d.js | 11 +- docs/html/search/functions_e.js | 3 +- docs/html/search/groups_0.js | 2 +- docs/html/search/searchdata.js | 2 +- docs/html/search/variables_0.js | 2 +- docs/html/search/variables_1.js | 2 +- docs/html/search/variables_2.js | 2 +- docs/html/search/variables_3.js | 2 +- docs/html/search/variables_4.js | 2 +- ...tructtvg_1_1Fill_1_1ColorStop-members.html | 2 +- docs/html/structtvg_1_1Fill_1_1ColorStop.html | 2 +- docs/html/structtvg_1_1Matrix-members.html | 2 +- docs/html/structtvg_1_1Matrix.html | 2 +- docs/html/structtvg_1_1Point-members.html | 2 +- docs/html/structtvg_1_1Point.html | 2 +- docs/html/structtvg_1_1Polygon-members.html | 2 +- docs/html/structtvg_1_1Polygon.html | 4 +- docs/html/structtvg_1_1Vertex-members.html | 2 +- docs/html/structtvg_1_1Vertex.html | 4 +- docs/html/thorvg_8h_source.html | 1225 +++++++++-------- meson.build | 2 +- 166 files changed, 2787 insertions(+), 1178 deletions(-) create mode 100644 docs/html/classtvg_1_1Text-members.html create mode 100644 docs/html/classtvg_1_1Text.html create mode 100644 docs/html/classtvg_1_1Text.js create mode 100644 docs/html/classtvg_1_1Text__inherit__graph.map create mode 100644 docs/html/classtvg_1_1Text__inherit__graph.md5 create mode 100644 docs/html/classtvg_1_1Text__inherit__graph.png create mode 100644 docs/html/classtvg_1_1WgCanvas-members.html create mode 100644 docs/html/classtvg_1_1WgCanvas.html create mode 100644 docs/html/classtvg_1_1WgCanvas.js create mode 100644 docs/html/classtvg_1_1WgCanvas__inherit__graph.map create mode 100644 docs/html/classtvg_1_1WgCanvas__inherit__graph.md5 create mode 100644 docs/html/classtvg_1_1WgCanvas__inherit__graph.png create mode 100644 docs/html/search/classes_b.html create mode 100644 docs/html/search/classes_b.js create mode 100644 docs/html/search/classes_c.html create mode 100644 docs/html/search/classes_c.js diff --git a/docs/Doxyfile b/docs/Doxyfile index 60510147..6265ede1 100644 --- a/docs/Doxyfile +++ b/docs/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = ThorVG # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = v0.11 +PROJECT_NUMBER = v0.12 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a @@ -1060,7 +1060,7 @@ FILTER_SOURCE_PATTERNS = # (index.html). This can be useful if you have a project on for instance GitHub # and want to reuse the introduction page also for the doxygen output. -# USE_MDFILE_AS_MAINPAGE = main-page.md +# USE_MDFILE_AS_MAINPAGE = #--------------------------------------------------------------------------- # Configuration options related to source browsing @@ -2336,7 +2336,7 @@ EXTERNAL_PAGES = YES # powerful graphs. # The default value is: YES. -# CLASS_DIAGRAMS = NO +# CLASS_DIAGRAMS = YES # You can include diagrams made with dia in doxygen documentation. Doxygen will # then run dia to produce the diagram and insert it in the documentation. The diff --git a/docs/html/annotated.html b/docs/html/annotated.html index e73db38a..2913477d 100644 --- a/docs/html/annotated.html +++ b/docs/html/annotated.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -103,12 +103,14 @@ $(document).ready(function(){initNavTree('annotated.html',''); initResizable();  CShapeA class representing two-dimensional figures and their properties  CPictureA class representing an image read in one of the supported formats: raw, svg, png, jpg, lottie(json) and etc. Besides the methods inherited from the Paint, it provides methods to load & draw images on the canvas  CSceneA class to composite children paints - CSwCanvasA class for the rendering graphical elements with a software raster engine - CGlCanvasA class for the rendering graphic elements with a GL raster engine - CInitializerA class that enables initialization and termination of the TVG engines - CAnimationEnables manipulation of animatable images - CSaverA class for exporting a paint object into a specified file, from which to recover the paint data later - CAccessorThe Accessor is a utility class to debug the Scene structure by traversing the scene-tree + CTextA class to represent text objects in a graphical context, allowing for rendering and manipulation of unicode text + CSwCanvasA class for the rendering graphical elements with a software raster engine + CGlCanvasA class for the rendering graphic elements with a GL raster engine + CWgCanvasA class for the rendering graphic elements with a WebGPU raster engine + CInitializerA class that enables initialization and termination of the TVG engines + CAnimationEnables manipulation of animatable images + CSaverA class for exporting a paint object into a specified file, from which to recover the paint data later + CAccessorThe Accessor is a utility class to debug the Scene structure by traversing the scene-tree diff --git a/docs/html/annotated_dup.js b/docs/html/annotated_dup.js index 67efcc7a..e85ecdcf 100644 --- a/docs/html/annotated_dup.js +++ b/docs/html/annotated_dup.js @@ -13,8 +13,10 @@ var annotated_dup = [ "Shape", "classtvg_1_1Shape.html", "classtvg_1_1Shape" ], [ "Picture", "classtvg_1_1Picture.html", "classtvg_1_1Picture" ], [ "Scene", "classtvg_1_1Scene.html", "classtvg_1_1Scene" ], + [ "Text", "classtvg_1_1Text.html", "classtvg_1_1Text" ], [ "SwCanvas", "classtvg_1_1SwCanvas.html", "classtvg_1_1SwCanvas" ], [ "GlCanvas", "classtvg_1_1GlCanvas.html", "classtvg_1_1GlCanvas" ], + [ "WgCanvas", "classtvg_1_1WgCanvas.html", "classtvg_1_1WgCanvas" ], [ "Initializer", "classtvg_1_1Initializer.html", null ], [ "Animation", "classtvg_1_1Animation.html", "classtvg_1_1Animation" ], [ "Saver", "classtvg_1_1Saver.html", "classtvg_1_1Saver" ], diff --git a/docs/html/classes.html b/docs/html/classes.html index 06683f42..09568e9a 100644 --- a/docs/html/classes.html +++ b/docs/html/classes.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -87,7 +87,7 @@ $(document).ready(function(){initNavTree('classes.html',''); initResizable(); })
Class Index
-
A | C | F | G | I | L | M | P | R | S | V
+
A | C | F | G | I | L | M | P | R | S | T | V | W
A
@@ -120,8 +120,14 @@ $(document).ready(function(){initNavTree('classes.html',''); initResizable(); })
S
Saver (tvg)
Scene (tvg)
Shape (tvg)
SwCanvas (tvg)
+
T
+
Text (tvg)
+
V
Vertex (tvg)
+
+
W
+
WgCanvas (tvg)
diff --git a/docs/html/classtvg_1_1Accessor-members.html b/docs/html/classtvg_1_1Accessor-members.html index 379de354..70257a10 100644 --- a/docs/html/classtvg_1_1Accessor-members.html +++ b/docs/html/classtvg_1_1Accessor-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1Accessor.html b/docs/html/classtvg_1_1Accessor.html index 06d9b3c9..9589f2e7 100644 --- a/docs/html/classtvg_1_1Accessor.html +++ b/docs/html/classtvg_1_1Accessor.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1Animation-members.html b/docs/html/classtvg_1_1Animation-members.html index c209aa89..5edc9428 100644 --- a/docs/html/classtvg_1_1Animation-members.html +++ b/docs/html/classtvg_1_1Animation-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -90,12 +90,12 @@ $(document).ready(function(){initNavTree('classtvg_1_1Animation.html',''); initR

This is the complete list of members for Animation, including all inherited members.

- + - + - +
curFrame() const noexceptAnimation
curFrame() const noexceptAnimation
duration() const noexceptAnimation
frame(uint32_t no) noexceptAnimation
frame(float no) noexceptAnimation
gen() noexceptAnimationstatic
picture() const noexceptAnimation
totalFrame() const noexceptAnimation
totalFrame() const noexceptAnimation
diff --git a/docs/html/classtvg_1_1Animation.html b/docs/html/classtvg_1_1Animation.html index 9b38cf40..a1036144 100644 --- a/docs/html/classtvg_1_1Animation.html +++ b/docs/html/classtvg_1_1Animation.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -97,18 +97,18 @@ $(document).ready(function(){initNavTree('classtvg_1_1Animation.html',''); initR - - - + + + - - - - - - + + + + + + @@ -122,10 +122,10 @@ Static Public Member Functions

Detailed Description

The Animation class enables manipulation of animatable images.

This class supports the display and control of animation frames.

-

@BETA_API

+
Note
Experimental API

Member Function Documentation

- -

◆ curFrame()

+ +

◆ curFrame()

@@ -134,7 +134,7 @@ Static Public Member Functions

Creates a new Animation object.

Returns
A new Animation object.
-

@BETA_API

+
Note
Experimental API
@@ -287,12 +287,12 @@ Static Public Member Functions

This function provides access to the picture instance that can be used to load animation formats, such as Lottie(json). After setting up the picture, it can be pushed to the designated canvas, enabling control over animation frames with this Animation instance.

Returns
A picture instance that is tied to this animation.
Warning
The picture instance is owned by Animation. It should not be deleted manually.
-

@BETA_API

+
Note
Experimental API
- -

◆ totalFrame()

+ +

◆ totalFrame()

@@ -301,7 +301,7 @@ Static Public Member Functions

Requests the canvas to draw the Paint objects.

-
Returns
Result::Success when succeed, Result::InsufficientCondition otherwise.
+
Return values
+

Public Member Functions

Result frame (uint32_t no) noexcept
 Specifies the current frame in the animation. More...
 
Result frame (float no) noexcept
 Specifies the current frame in the animation. More...
 
Picturepicture () const noexcept
 Retrieves a picture instance associated with this animation instance. More...
 
uint32_t curFrame () const noexcept
 Retrieves the current frame number of the animation. More...
 
uint32_t totalFrame () const noexcept
 Retrieves the total number of frames in the animation. More...
 
float curFrame () const noexcept
 Retrieves the current frame number of the animation. More...
 
float totalFrame () const noexcept
 Retrieves the total number of frames in the animation. More...
 
float duration () const noexcept
 Retrieves the duration of the animation in seconds. More...
 
- + @@ -148,12 +148,12 @@ Static Public Member Functions

Retrieves the current frame number of the animation.

-
Returns
The current frame number of the animation, between 0 and totalFrame() - 1.
+
Returns
The current frame number of the animation, between 0 and totalFrame() - 1.
Note
If the Picture is not properly configured, this function will return 0.
-
See also
Animation::frame(uint32_t no)
+
See also
Animation::frame(float no)
-Animation::totalFrame()
-

@BETA_API

+Animation::totalFrame()
+
Note
Experimental API
@@ -183,12 +183,12 @@ Static Public Member Functions

Retrieves the duration of the animation in seconds.

Returns
The duration of the animation in seconds.
Note
If the Picture is not properly configured, this function will return 0.
-

@BETA_API

+

% Experimental API

- -

◆ frame()

+ +

◆ frame()

@@ -199,7 +199,7 @@ Static Public Member Functions
- + @@ -214,20 +214,20 @@ Static Public Member Functions

Specifies the current frame in the animation.

Parameters
uint32_t curFrame float curFrame ( ) const
Result frame (uint32_t float  no)
- +
[in]noThe index of the animation frame to be displayed. The index should be less than the totalFrame().
[in]noThe index of the animation frame to be displayed. The index should be less than the totalFrame().
Return values
- - + +
Result::SuccessSuccessfully set the frame.
Result::InsufficientConditionNo animatable data loaded from the Picture.
Result::NonSupportThe Picture data does not support animations.
Result::InsufficientConditionif the given no is the same as the current frame value.
Result::NonSupportThe current Picture data does not support animations.
-
See also
totalFrame()
-

@BETA_API

+
See also
totalFrame()
+
Note
Experimental API
@@ -256,7 +256,7 @@ Static Public Member Functions
- + @@ -318,8 +318,9 @@ Static Public Member Functions
Returns
The total number of frames in the animation.
Note
Frame numbering starts from 0.
-If the Picture is not properly configured, this function will return 0.
-

@BETA_API

+If the Picture is not properly configured, this function will return 0. +
+Experimental API
diff --git a/docs/html/classtvg_1_1Animation.js b/docs/html/classtvg_1_1Animation.js index 9f895d3c..33315d6e 100644 --- a/docs/html/classtvg_1_1Animation.js +++ b/docs/html/classtvg_1_1Animation.js @@ -1,8 +1,8 @@ var classtvg_1_1Animation = [ - [ "curFrame", "classtvg_1_1Animation.html#a0e791c8144b0ad30d25f06c042496d27", null ], + [ "curFrame", "classtvg_1_1Animation.html#a45585afc7e6dbab9fb2d5295b67c45ee", null ], [ "duration", "classtvg_1_1Animation.html#a90ab38b7a2cb72d6b9de4492ff3e6679", null ], - [ "frame", "classtvg_1_1Animation.html#ac13e2b8f811686e95f3f22c08ac75f8a", null ], + [ "frame", "classtvg_1_1Animation.html#a974f03b024a8beed5c8bfe32b56ac2c9", null ], [ "picture", "classtvg_1_1Animation.html#a004ba625c58005c931b244fb2515624f", null ], - [ "totalFrame", "classtvg_1_1Animation.html#a91d83102afb1ec5c65f009240b29250c", null ] + [ "totalFrame", "classtvg_1_1Animation.html#a624e4fdeebf70f286188685e769125f3", null ] ]; \ No newline at end of file diff --git a/docs/html/classtvg_1_1Canvas-members.html b/docs/html/classtvg_1_1Canvas-members.html index ca62035d..14536446 100644 --- a/docs/html/classtvg_1_1Canvas-members.html +++ b/docs/html/classtvg_1_1Canvas-members.html @@ -27,7 +27,7 @@ diff --git a/docs/html/classtvg_1_1Canvas.html b/docs/html/classtvg_1_1Canvas.html index 68c75aea..07c8dbaa 100644 --- a/docs/html/classtvg_1_1Canvas.html +++ b/docs/html/classtvg_1_1Canvas.html @@ -27,7 +27,7 @@ @@ -98,9 +98,10 @@ Inheritance diagram for Canvas:
Inheritance graph
- + +
[legend]
uint32_t totalFrame float totalFrame ( ) const
ThorVG -  v0.11 +  v0.12
ThorVG -  v0.11 +  v0.12
@@ -166,7 +167,12 @@ Public Member Functions
-
Returns
Result::Success when succeed, Result::InsufficientCondition otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::InsufficientCondition otherwise.
+
+
See also
Canvas::push()
Canvas::paints()
@@ -197,7 +203,12 @@ Public Member Functions
+ +
Result::Successwhen succeed, Result::InsufficientCondition otherwise.
+ +
Note
Drawing can be asynchronous if the assigned thread number is greater than zero. To guarantee the drawing is done, call sync() afterwards.
See also
Canvas::sync()
@@ -230,7 +241,7 @@ Public Member Functions

This function provides the list of paint nodes, allowing users a direct opportunity to modify the scene tree.

Warning
Please avoid accessing the paints during Canvas update/draw. You can access them after calling sync().
See also
Canvas::sync()
-

@BETA_API

+
Note
Experimental API
@@ -342,7 +353,12 @@ Public Member Functions

Guarantees that drawing task is finished.

The Canvas rendering can be performed asynchronously. To make sure that rendering is finished, the sync() must be called after the draw() regardless of threading.

-
Returns
Result::Success when succeed, Result::InsufficientCondition otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::InsufficientCondition otherwise.
+
+
See also
Canvas::draw()
@@ -379,7 +395,12 @@ Public Member Functions -
Returns
Result::Success when succeed, Result::InsufficientCondition otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::InsufficientCondition otherwise.
+
+
Note
The Update behavior can be asynchronous if the assigned thread number is greater than zero.
diff --git a/docs/html/classtvg_1_1Canvas__inherit__graph.map b/docs/html/classtvg_1_1Canvas__inherit__graph.map index 91751181..f5d98a36 100644 --- a/docs/html/classtvg_1_1Canvas__inherit__graph.map +++ b/docs/html/classtvg_1_1Canvas__inherit__graph.map @@ -1,5 +1,6 @@ - + + diff --git a/docs/html/classtvg_1_1Canvas__inherit__graph.md5 b/docs/html/classtvg_1_1Canvas__inherit__graph.md5 index aa052609..93a2d390 100644 --- a/docs/html/classtvg_1_1Canvas__inherit__graph.md5 +++ b/docs/html/classtvg_1_1Canvas__inherit__graph.md5 @@ -1 +1 @@ -9b6abf74b34548ace156dffed0d996a8 \ No newline at end of file +45bef3858363538309f94d7b32298857 \ No newline at end of file diff --git a/docs/html/classtvg_1_1Canvas__inherit__graph.png b/docs/html/classtvg_1_1Canvas__inherit__graph.png index 083424cf3f6c44d2110d138a9ded83d0e5ba03f4..65322a62c95b4db479d74e2c206981acaec4add8 100644 GIT binary patch literal 6025 zcmZvgbySpHx4;LL5Rj7Yl9Coi=^A3_Mw&r7rMnwMq#0_Y8w3gImk=CjknZkogyDPM zd)K=6k9%j#?{d8<($jxUd zXee7~8-DDQskS``KhF-6!a@tBC;AL=N5cxmLQ~`qRd||W@hlO84T;70;unOB-q7FQ zKbkwww6M6C$T+mJXSCK{qnmf|&mZ@de?lN+i~^UJm-uwz5Cmg)o?~6-TM{ZqU>ltDiGCdPibAUJzmIZ1FrXImygM zI8EroU0ht8oSc->IJ-)4>BL2Oc?p8roEBTg$2D<#FkVn@Y;A#^mqc-UK%kJ2kYrZ1 zz>}4(_5K7wLBXK=Q+XVmxWU1}?CfmQz*}_F#_HkjeWm>|*!U%g-CMG69!G^Lj z-_H0o{TKr$#k*NkqQ(%vaP41BMX7xQtCm2a%E+ufPla=(8lIwJ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j7uT GkNXdk+-u7K diff --git a/docs/html/classtvg_1_1Fill-members.html b/docs/html/classtvg_1_1Fill-members.html index 6346dc74..b8437f03 100644 --- a/docs/html/classtvg_1_1Fill-members.html +++ b/docs/html/classtvg_1_1Fill-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1Fill.html b/docs/html/classtvg_1_1Fill.html index d2e16aee..ac3fb0f5 100644 --- a/docs/html/classtvg_1_1Fill.html +++ b/docs/html/classtvg_1_1Fill.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -219,7 +219,12 @@ Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
@@ -340,7 +345,12 @@ Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
@@ -369,12 +379,7 @@ Public Member Functions

Gets the matrix of the affine transformation of the gradient fill.

In case no transformation was applied, the identity matrix is returned.

-
Return values
- - -
Theaugmented transformation matrix.
-
-
+
Returns
The augmented transformation matrix.
@@ -410,7 +415,12 @@ Public Member Functions -
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
diff --git a/docs/html/classtvg_1_1GlCanvas-members.html b/docs/html/classtvg_1_1GlCanvas-members.html index 72273ea9..06b53e5c 100644 --- a/docs/html/classtvg_1_1GlCanvas-members.html +++ b/docs/html/classtvg_1_1GlCanvas-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1GlCanvas.html b/docs/html/classtvg_1_1GlCanvas.html index d232d307..cf8c333f 100644 --- a/docs/html/classtvg_1_1GlCanvas.html +++ b/docs/html/classtvg_1_1GlCanvas.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -141,7 +141,7 @@ Static Public Member Functions

Detailed Description

A class for the rendering graphic elements with a GL raster engine.

Warning
Please do not use it. This class is not fully supported yet.
-

@BETA_API

+
Note
Experimental API

Member Function Documentation

◆ gen()

@@ -168,7 +168,7 @@ Static Public Member Functions

Creates a new GlCanvas object.

Returns
A new GlCanvas object.
-

@BETA_API

+
Note
Experimental API
@@ -220,7 +220,7 @@ Static Public Member Functions

Sets the target buffer for the rasterization.

Warning
Please do not use it, this API is not official one. It could be modified in the next version.
-

@BETA_API

+
Note
Experimental API
diff --git a/docs/html/classtvg_1_1Initializer-members.html b/docs/html/classtvg_1_1Initializer-members.html index ab6dcf1d..834dc26f 100644 --- a/docs/html/classtvg_1_1Initializer-members.html +++ b/docs/html/classtvg_1_1Initializer-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1Initializer.html b/docs/html/classtvg_1_1Initializer.html index 5b0b1fb6..41b83281 100644 --- a/docs/html/classtvg_1_1Initializer.html +++ b/docs/html/classtvg_1_1Initializer.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1LinearGradient-members.html b/docs/html/classtvg_1_1LinearGradient-members.html index cf0c9aeb..bf2b14e2 100644 --- a/docs/html/classtvg_1_1LinearGradient-members.html +++ b/docs/html/classtvg_1_1LinearGradient-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1LinearGradient.html b/docs/html/classtvg_1_1LinearGradient.html index 674ebaab..69095ab5 100644 --- a/docs/html/classtvg_1_1LinearGradient.html +++ b/docs/html/classtvg_1_1LinearGradient.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -265,7 +265,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
@@ -326,7 +331,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
Note
In case the first and the second points are equal, an object filled with such a gradient fill is not rendered.
diff --git a/docs/html/classtvg_1_1Paint-members.html b/docs/html/classtvg_1_1Paint-members.html index ea6590ed..14402b82 100644 --- a/docs/html/classtvg_1_1Paint-members.html +++ b/docs/html/classtvg_1_1Paint-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1Paint.html b/docs/html/classtvg_1_1Paint.html index 45cddd7e..a059c444 100644 --- a/docs/html/classtvg_1_1Paint.html +++ b/docs/html/classtvg_1_1Paint.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -98,10 +98,11 @@ Inheritance diagram for Paint:
Inheritance graph
- + +
[legend]
@@ -182,7 +183,7 @@ Public Member Functions

Gets the blending method of the object.

Returns
The blending method
-

@BETA_API

+
Note
Experimental API
@@ -218,8 +219,13 @@ Public Member Functions
-
Returns
Result::Success when the blending method is successfully set.
-

@BETA_API

+
Return values
+ + +
Result::Successwhen the blending method is successfully set.
+
+
+
Note
Experimental API
@@ -349,7 +355,12 @@ Public Member Functions -
Returns
Result::Success when succeed, Result::InsufficientCondition otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::InsufficientCondition otherwise.
+
+
Note
The bounding box doesn't indicate the actual drawing region. It's the smallest rectangle that encloses the object.
@@ -432,7 +443,12 @@ Public Member Functions -
Returns
Result::Success when succeed, Result::InvalidArguments otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::InvalidArguments otherwise.
+
+
@@ -553,7 +569,12 @@ Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
Note
Setting the opacity with this API may require multiple render pass for composition. It is recommended to avoid changing the opacity if possible.
ClipPath won't use the opacity value. (see: enum class CompositeMethod::ClipPath)
@@ -592,7 +613,12 @@ ClipPath won't use the opacity value. (see: enum class
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
@@ -627,7 +653,12 @@ ClipPath won't use the opacity value. (see: enum class
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
@@ -693,7 +724,12 @@ ClipPath won't use the opacity value. (see: enum class
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
@@ -740,7 +776,12 @@ ClipPath won't use the opacity value. (see: enum class
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
diff --git a/docs/html/classtvg_1_1Paint__inherit__graph.map b/docs/html/classtvg_1_1Paint__inherit__graph.map index efc955c4..89b57658 100644 --- a/docs/html/classtvg_1_1Paint__inherit__graph.map +++ b/docs/html/classtvg_1_1Paint__inherit__graph.map @@ -1,6 +1,7 @@ - + + diff --git a/docs/html/classtvg_1_1Paint__inherit__graph.md5 b/docs/html/classtvg_1_1Paint__inherit__graph.md5 index 5f7343f6..313a46d9 100644 --- a/docs/html/classtvg_1_1Paint__inherit__graph.md5 +++ b/docs/html/classtvg_1_1Paint__inherit__graph.md5 @@ -1 +1 @@ -5a830fa148544e76fb58bfd2eb7cc361 \ No newline at end of file +a9d4af3c6416105077697f7647fb4896 \ No newline at end of file diff --git a/docs/html/classtvg_1_1Paint__inherit__graph.png b/docs/html/classtvg_1_1Paint__inherit__graph.png index 9f312f458e7efa1568f9c96798d9332339ceb850..f0712c888baed9dc43518657960c5538bbb042f9 100644 GIT binary patch literal 6523 zcmZvBbyQnV)NLqGoZAD{iHf7I!ET2u_hgX(4#f;_i~d zyT9+fzrOWy*Gh8lx-)amKKq=R*^{8Du0()KjSB*S2;M^EwLu^>IpDuL_7mV6??=ow z@blD4MM)m?_}}%Z>stm0M8)$~UPi~i;BYxeLdTIFbh163JVy383DKsX{+pyrA^(e- z_MDGOV79AYQft0S+73&0s+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me$yK%wwzwix*%1 zL?Afo>#whj6fiO}{`m2OmYKJ2t`w_nDgnp* zfZTN2P;K%0(Ab!ol5z}ChyZ{84H9X1c=+?28#{Gyc{K$Eg}l$g&u8ciUgc-LzEBYn zz<5u6eFp~zd!(KZ5Yra!DJzFxoS#uf_l%AC5ZVHoo14qa%K;tX@puLr4G1e1OM2>p zKp@=Q*sos25VxJWBb0srQ`}V}clVXvSlTx#;cec8wx}pj107q(iOVEi6pNCjjZKoP zjgOBHz<0(}FT&O)tImlT*A-cLc!q!N0z7~~AOQI#6Pz1L-nJ0kU;3Q7GzG91P!t|-#ejL@ z<@I^-@SJ35Xt>k@Y_FuGWNB&1Y8^7@Ir3aK@GvX_f%yGe(GMUfuV24bxXyG32G(9p zfA`J{28#(g8P1iY0EMYUh7odi{IU{~H90IZ3KhyY1350AB#RgrQie(?9ZIlZZ=sZ8CnnMRL{F$GZ1moEmVOSn=U z5J)sz)F@pKVip=28XkVuDn3jlnjLbu^#g!QPEL;8WBlRaAwY4Mc;ayF4-p7xgnF?F z2;}JKcpn!o1*7h3PY9$3^|&{ZNTlYbCNQ;YgH70Z!LOe-c6Ll*BfoatIO8stR|BwH z+71GEZ0w(LL{nE+7XZKBn;MHs|HQ*skh~x%=!_Ov^YqjF{BV zfE-LipH85tS*`qlU34=Fl2nwy(wOCfplt;HG;M~F*H?qfw>?(TpRb5N*;Co|Gg zFmV6uKmX~j7+5K8iAX#gH%$DP?v0$e()&6(>1~u#vS%&HcWsA>ZPEEK%+kaJC z{=4kLkXe0vcxceY_aT0On0(7t`gXZL1y?Jz+YgVSjW_>%u`1qMvH9qH8k{H&?6LlUS% Of%LSDH0xk4G5-O07gp>5 diff --git a/docs/html/classtvg_1_1Picture-members.html b/docs/html/classtvg_1_1Picture-members.html index 11452044..d7f009f0 100644 --- a/docs/html/classtvg_1_1Picture-members.html +++ b/docs/html/classtvg_1_1Picture-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1Picture.html b/docs/html/classtvg_1_1Picture.html index 4c62cf1c..5f0bb1b1 100644 --- a/docs/html/classtvg_1_1Picture.html +++ b/docs/html/classtvg_1_1Picture.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -475,6 +475,17 @@ See

Loads a raw data from a memory block with a given size.

+
Parameters
+ + + + + + + +
[in]paintA Tvg_Paint pointer to the picture object.
[in]dataA pointer to a memory location where the content of the picture raw data is stored.
[in]wThe width of the image data in pixels.
[in]hThe height of the image data in pixels.
[in]premultipliedIf true, the given image data is alpha-premultiplied.
[in]copyIf true the data are copied into the engine local buffer, otherwise they are not.
+
+
Return values
@@ -517,10 +528,10 @@ See
Returns
uint32_t The number of polygons in the array.
+
Returns
The number of polygons in the array.
Note
Modifying the triangles returned by this method will modify them directly within the mesh.
Warning
Please do not use it, this API is not official one. It could be modified in the next version.
-

@BETA_API

+
Note
Experimental API
@@ -578,7 +589,7 @@ See
Note
The Polygons are copied internally, so modifying them after calling Mesh::mesh has no affect.
Warning
Please do not use it, this API is not official one. It could be modified in the next version.
-

@BETA_API

+
Note
Experimental API
@@ -624,7 +635,12 @@ See
Returns
Result::Success when succeed.
+
Return values
+
Result::SuccessWhen succeed, Result::InsufficientCondition otherwise.
+ +
Result::Successwhen succeed.
+
+
@@ -671,7 +687,12 @@ See
Returns
Result::Success when succeed, Result::InsufficientCondition otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::InsufficientCondition otherwise.
+
+
diff --git a/docs/html/classtvg_1_1RadialGradient-members.html b/docs/html/classtvg_1_1RadialGradient-members.html index a0550856..9b57b1bd 100644 --- a/docs/html/classtvg_1_1RadialGradient-members.html +++ b/docs/html/classtvg_1_1RadialGradient-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1RadialGradient.html b/docs/html/classtvg_1_1RadialGradient.html index 581cd39a..f0d02a47 100644 --- a/docs/html/classtvg_1_1RadialGradient.html +++ b/docs/html/classtvg_1_1RadialGradient.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -257,7 +257,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
@@ -311,7 +316,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed, Result::InvalidArguments in case the radius value is zero or less.
+
Return values
+ + +
Result::Successwhen succeed, Result::InvalidArguments in case the radius value is zero or less.
+
+
diff --git a/docs/html/classtvg_1_1Saver-members.html b/docs/html/classtvg_1_1Saver-members.html index d774710e..760cb78f 100644 --- a/docs/html/classtvg_1_1Saver-members.html +++ b/docs/html/classtvg_1_1Saver-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -90,8 +90,10 @@ $(document).ready(function(){initNavTree('classtvg_1_1Saver.html',''); initResiz

This is the complete list of members for Saver, including all inherited members.

- - + + + +
gen() noexceptSaverstatic
save(std::unique_ptr< Paint > paint, const std::string &path, bool compress=true) noexceptSaver
background(std::unique_ptr< Paint > paint) noexceptSaver
gen() noexceptSaverstatic
save(std::unique_ptr< Paint > paint, const std::string &path, bool compress=true) noexceptSaver
save(std::unique_ptr< Animation > animation, const std::string &path, uint32_t quality=100, uint32_t fps=0) noexceptSaver
sync() noexceptSaver
diff --git a/docs/html/classtvg_1_1Saver.html b/docs/html/classtvg_1_1Saver.html index 66a675e2..f5355c1b 100644 --- a/docs/html/classtvg_1_1Saver.html +++ b/docs/html/classtvg_1_1Saver.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -97,9 +97,15 @@ $(document).ready(function(){initNavTree('classtvg_1_1Saver.html',''); initResiz + + + + + + @@ -118,6 +124,41 @@ Static Public Member Functions
See also
Picture::load()
Since
0.5

Member Function Documentation

+ +

◆ background()

+ +
+
+

Public Member Functions

Result background (std::unique_ptr< Paint > paint) noexcept
 Sets the base background content for the saved image. More...
 
Result save (std::unique_ptr< Paint > paint, const std::string &path, bool compress=true) noexcept
 Exports the given paint data to the given path. More...
 
Result save (std::unique_ptr< Animation > animation, const std::string &path, uint32_t quality=100, uint32_t fps=0) noexcept
 Export the provided animation data to the specified file path. More...
 
Result sync () noexcept
 Guarantees that the saving task is finished. More...
 
+ + + + +
+ + + + + + + + +
Result background (std::unique_ptr< Paintpaint)
+
+noexcept
+
+ +

Sets the base background content for the saved image.

+
Parameters
+ + +
[in]paintThe paint to be drawn as the background image for the saving paint.
+
+
+
Note
Experimental API
+ +
+

◆ gen()

@@ -145,10 +186,85 @@ Static Public Member Functions
Returns
A new Saver object.
Since
0.5
+ + + +

◆ save() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Result save (std::unique_ptr< Animationanimation,
const std::string & path,
uint32_t quality = 100,
uint32_t fps = 0 
)
+
+noexcept
+
+ +

Export the provided animation data to the specified file path.

+

This function exports the given animation data to the provided file path. You can also specify the desired frame rate in frames per second (FPS) by providing the fps parameter.

+
Parameters
+ + + + + +
[in]animationThe animation to be saved, including all associated properties.
[in]pathThe path to the file where the animation will be saved.
[in]qualityThe encoded quality level. 0 is the minimum, 100 is the maximum value(recommended).
[in]fpsThe desired frames per second (FPS). For example, to encode data at 60 FPS, pass 60. Pass 0 to keep the original frame data.
+
+
+
Return values
+ + + + + + +
Result::Successif the export succeeds.
Result::InsufficientConditionif there are ongoing resource-saving operations.
Result::NonSupportif an attempt is made to save the file with an unknown extension or in an unsupported format.
Result::MemoryCorruptionin case of an internal error.
Result::Unknownif attempting to save an empty paint.
+
+
+
Note
A higher frames per second (FPS) would result in a larger file size. It is recommended to use the default value.
+
+Saving can be asynchronous if the assigned thread number is greater than zero. To guarantee the saving is done, call sync() afterwards.
+
See also
Saver::sync()
+
Note
Experimental API
+
-

◆ save()

+

◆ save() [2/2]

diff --git a/docs/html/classtvg_1_1Saver.js b/docs/html/classtvg_1_1Saver.js index af020f48..062c2add 100644 --- a/docs/html/classtvg_1_1Saver.js +++ b/docs/html/classtvg_1_1Saver.js @@ -1,5 +1,7 @@ var classtvg_1_1Saver = [ + [ "background", "classtvg_1_1Saver.html#a8e3b775984e506f816d6998ca12fd3fb", null ], + [ "save", "classtvg_1_1Saver.html#a4d421f31d37ea28b650ad0331735710a", null ], [ "save", "classtvg_1_1Saver.html#acda492a458f3ddc2da01df672ecd85bd", null ], [ "sync", "classtvg_1_1Saver.html#a2fdf9b2208358ea10f912b1877733778", null ] ]; \ No newline at end of file diff --git a/docs/html/classtvg_1_1Scene-members.html b/docs/html/classtvg_1_1Scene-members.html index 694e7165..e26b17c9 100644 --- a/docs/html/classtvg_1_1Scene-members.html +++ b/docs/html/classtvg_1_1Scene-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1Scene.html b/docs/html/classtvg_1_1Scene.html index e8c840ce..8c3c55f2 100644 --- a/docs/html/classtvg_1_1Scene.html +++ b/docs/html/classtvg_1_1Scene.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -210,7 +210,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed
+
Return values
+ + +
Result::Successwhen succeed
+
+
Warning
If you don't free the paints they become dangled. They are supposed to be reused, otherwise you are responsible for their lives. Thus please use the free argument only when you know how it works, otherwise it's not recommended.
Since
0.2
@@ -304,7 +309,7 @@ Static Public Member Functions Scene::push()
Scene::clear()
-

@BETA_API

+
Note
Experimental API
@@ -340,7 +345,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed, Result::MemoryCorruption otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::MemoryCorruption otherwise.
+
+
Note
The rendering order of the paints is the same as the order as they were pushed. Consider sorting the paints before pushing them if you intend to use layering.
See also
Scene::paints()
diff --git a/docs/html/classtvg_1_1Shape-members.html b/docs/html/classtvg_1_1Shape-members.html index 9eb85b8c..bba1b5cb 100644 --- a/docs/html/classtvg_1_1Shape-members.html +++ b/docs/html/classtvg_1_1Shape-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1Shape.html b/docs/html/classtvg_1_1Shape.html index f3ba4547..7e725903 100644 --- a/docs/html/classtvg_1_1Shape.html +++ b/docs/html/classtvg_1_1Shape.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -334,7 +334,12 @@ Static Public Member Functions
-
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
Note
Setting sweep value greater than 360 degrees, is equivalent to calling appendCircle(cx, cy, radius, radius).
@@ -398,7 +403,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
@@ -459,7 +469,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed, Result::InvalidArguments otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::InvalidArguments otherwise.
+
+
Note
The interface is designed for optimal path setting if the caller has a completed path commands already.
@@ -538,7 +553,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
Note
For rx and ry greater than or equal to the half of w and the half of h, respectively, the shape become an ellipse.
@@ -568,7 +588,12 @@ Static Public Member Functions

Closes the current sub-path by drawing a line from the current point to the initial point of the sub-path.

The value of the current point is set to the initial point of the closed sub-path.

-
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
Note
In case the sub-path does not contain any points, this function has no effect.
@@ -644,7 +669,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
Note
In case this is the first command in the path, no data from the path are rendered.
@@ -708,7 +738,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
@@ -744,7 +779,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed, Result::MemoryCorruption otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::MemoryCorruption otherwise.
+
+
Note
Either a solid color or a gradient fill is applied, depending on what was set as last.
@@ -806,7 +846,12 @@ Static Public Member Functions -
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
Note
Either a solid color or a gradient fill is applied, depending on what was set as last.
ClipPath won't use the fill values. (see: enum class CompositeMethod::ClipPath)
@@ -1001,7 +1046,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
Note
In case this is the first command in the path, it corresponds to the moveTo() call.
@@ -1049,7 +1099,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
@@ -1084,7 +1139,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
Since
0.10
@@ -1184,7 +1244,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed.
+
Return values
+ + +
Result::Successwhen succeed.
+
+
Note
The memory, where the path data is stored, is not deallocated at this stage for caching effect.
@@ -1275,7 +1340,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
@@ -1352,7 +1422,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
@@ -1388,7 +1463,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
@@ -1448,7 +1528,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::FailedAllocation otherwise.
+
+
@@ -1536,7 +1621,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed, Result::InsufficientCondition otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::InsufficientCondition otherwise.
+
+
@@ -1691,7 +1781,12 @@ ClipPath won't use the fill values. (see: enum class
Returns
Result::Success when succeed, Result::NonSupport unsupported value, Result::FailedAllocation otherwise.
+
Return values
+ + +
Result::Successwhen succeed, Result::NonSupport unsupported value, Result::FailedAllocation otherwise.
+
+
Since
0.11
diff --git a/docs/html/classtvg_1_1SwCanvas-members.html b/docs/html/classtvg_1_1SwCanvas-members.html index 7b2973c1..a43da765 100644 --- a/docs/html/classtvg_1_1SwCanvas-members.html +++ b/docs/html/classtvg_1_1SwCanvas-members.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
diff --git a/docs/html/classtvg_1_1SwCanvas.html b/docs/html/classtvg_1_1SwCanvas.html index 365d341a..e7688b80 100644 --- a/docs/html/classtvg_1_1SwCanvas.html +++ b/docs/html/classtvg_1_1SwCanvas.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -179,9 +179,11 @@ Static Public Member Functions ARGB8888 

The channels are joined in the order: alpha, red, green, blue. Colors are alpha-premultiplied. (a << 24 | r << 16 | g << 8 | b)

-ABGR8888S 

@BETA_API The channels are joined in the order: alpha, blue, green, red. Colors are un-alpha-premultiplied.

+ABGR8888S 

The channels are joined in the order: alpha, blue, green, red. Colors are un-alpha-premultiplied.

+
Since
0.12
-ARGB8888S 

@BETA_API The channels are joined in the order: alpha, red, green, blue. Colors are un-alpha-premultiplied.

+ARGB8888S 

The channels are joined in the order: alpha, red, green, blue. Colors are un-alpha-premultiplied.

+
Since
0.12
diff --git a/docs/html/classtvg_1_1Text-members.html b/docs/html/classtvg_1_1Text-members.html new file mode 100644 index 00000000..6774ee4c --- /dev/null +++ b/docs/html/classtvg_1_1Text-members.html @@ -0,0 +1,125 @@ + + + + + + + +ThorVG: Member List + + + + + + + + + + + + + +
+
+ + + + + + + +
+
ThorVG +  v0.12 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Text Member List
+
+
+ +

This is the complete list of members for Text, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + +
blend(BlendMethod method) const noexceptPaint
blend() const noexceptPaint
bounds(float *x, float *y, float *w, float *h) const noexceptPaint
bounds(float *x, float *y, float *w, float *h, bool transformed) const noexceptPaint
composite(std::unique_ptr< Paint > target, CompositeMethod method) noexceptPaint
composite(const Paint **target) const noexceptPaint
duplicate() const noexceptPaint
fill(uint8_t r, uint8_t g, uint8_t b) noexceptText
fill(std::unique_ptr< Fill > f) noexceptText
font(const char *name, float size, const char *style=nullptr) noexceptText
gen() noexceptTextstatic
identifier() noexceptTextstatic
tvg::Paint::identifier() const noexceptPaint
load(const std::string &path) noexceptTextstatic
opacity(uint8_t o) noexceptPaint
opacity() const noexceptPaint
rotate(float degree) noexceptPaint
scale(float factor) noexceptPaint
text(const char *text) noexceptText
transform(const Matrix &m) noexceptPaint
transform() noexceptPaint
translate(float x, float y) noexceptPaint
unload(const std::string &path) noexceptTextstatic
+
+ + + + diff --git a/docs/html/classtvg_1_1Text.html b/docs/html/classtvg_1_1Text.html new file mode 100644 index 00000000..47786384 --- /dev/null +++ b/docs/html/classtvg_1_1Text.html @@ -0,0 +1,556 @@ + + + + + + + +ThorVG: Text + + + + + + + + + + + + + +
+
+ + + + + + + +
+
ThorVG +  v0.12 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ + +
+ +

A class to represent text objects in a graphical context, allowing for rendering and manipulation of unicode text. + More...

+
+Inheritance diagram for Text:
+
+
Inheritance graph
+ + + + +
[legend]
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Result font (const char *name, float size, const char *style=nullptr) noexcept
 Sets the font properties for the text. More...
 
Result text (const char *text) noexcept
 Assigns the given unicode text to be rendered. More...
 
Result fill (uint8_t r, uint8_t g, uint8_t b) noexcept
 Sets the text color. More...
 
Result fill (std::unique_ptr< Fill > f) noexcept
 Sets the gradient fill for all of the figures from the text. More...
 
- Public Member Functions inherited from Paint
Result rotate (float degree) noexcept
 Sets the angle by which the object is rotated. More...
 
Result scale (float factor) noexcept
 Sets the scale value of the object. More...
 
Result translate (float x, float y) noexcept
 Sets the values by which the object is moved in a two-dimensional space. More...
 
Result transform (const Matrix &m) noexcept
 Sets the matrix of the affine transformation for the object. More...
 
Matrix transform () noexcept
 Gets the matrix of the affine transformation of the object. More...
 
Result opacity (uint8_t o) noexcept
 Sets the opacity of the object. More...
 
Result composite (std::unique_ptr< Paint > target, CompositeMethod method) noexcept
 Sets the composition target object and the composition method. More...
 
Result blend (BlendMethod method) const noexcept
 Sets the blending method for the paint object. More...
 
TVG_DEPRECATED Result bounds (float *x, float *y, float *w, float *h) const noexcept
 Gets the bounding box of the paint object before any transformation. More...
 
Result bounds (float *x, float *y, float *w, float *h, bool transformed) const noexcept
 Gets the axis-aligned bounding box of the paint object. More...
 
Paintduplicate () const noexcept
 Duplicates the object. More...
 
uint8_t opacity () const noexcept
 Gets the opacity value of the object. More...
 
CompositeMethod composite (const Paint **target) const noexcept
 Gets the composition target object and the composition method. More...
 
BlendMethod blend () const noexcept
 Gets the blending method of the object. More...
 
uint32_t identifier () const noexcept
 Return the unique id value of the paint instance. More...
 
+ + + + + + + + + + + + + +

+Static Public Member Functions

static Result load (const std::string &path) noexcept
 Loads a scalable font data(ttf) from a file. More...
 
static Result unload (const std::string &path) noexcept
 Unloads the specified scalable font data (TTF) that was previously loaded. More...
 
static std::unique_ptr< Textgen () noexcept
 Creates a new Text object. More...
 
static uint32_t identifier () noexcept
 Return the unique id value of this class. More...
 
+

Detailed Description

+

A class to represent text objects in a graphical context, allowing for rendering and manipulation of unicode text.

+
Note
Experimental API
+

Member Function Documentation

+ +

◆ fill() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
Result fill (std::unique_ptr< Fillf)
+
+noexcept
+
+ +

Sets the gradient fill for all of the figures from the text.

+

The parts of the text defined as inner are filled.

+
Parameters
+ + +
[in]fThe unique pointer to the gradient fill.
+
+
+
Return values
+ + + +
Result::Successwhen succeed, Result::MemoryCorruption otherwise.
Result::InsufficientConditionwhen the font has not been set up prior to this operation.
+
+
+
Note
Either a solid color or a gradient fill is applied, depending on what was set as last.
+
+Experimental API
+
See also
Text::font()
+ +
+
+ +

◆ fill() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result fill (uint8_t r,
uint8_t g,
uint8_t b 
)
+
+noexcept
+
+ +

Sets the text color.

+
Parameters
+ + + + +
[in]rThe red color channel value in the range [0 ~ 255]. The default value is 0.
[in]gThe green color channel value in the range [0 ~ 255]. The default value is 0.
[in]bThe blue color channel value in the range [0 ~ 255]. The default value is 0.
+
+
+
Return values
+ + + +
Result::Successwhen succeed.
Result::InsufficientConditionwhen the font has not been set up prior to this operation.
+
+
+
See also
Text::font()
+
Note
Experimental API
+ +
+
+ +

◆ font()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result font (const char * name,
float size,
const char * style = nullptr 
)
+
+noexcept
+
+ +

Sets the font properties for the text.

+

This function allows you to define the font characteristics used for text rendering. It sets the font name, size and optionally the style.

+
Parameters
+ + + + +
[in]nameThe name of the font. This should correspond to a font available in the canvas.
[in]sizeThe size of the font in points. This determines how large the text will appear.
[in]styleThe style of the font. It can be used to set the font to 'italic'. If not specified, the default style is used. Only 'italic' style is supported currently.
+
+
+
Return values
+ + + +
Result::Successwhen the font properties are set successfully.
Result::InsufficientConditionwhen the specified name cannot be found.
+
+
+
Note
Experimental API
+ +
+
+ +

◆ gen()

+ +
+
+ + + + + +
+ + + + + + + +
static std::unique_ptr<Text> gen ()
+
+staticnoexcept
+
+ +

Creates a new Text object.

+
Returns
A new Text object.
+
Note
Experimental API
+ +
+
+ +

◆ identifier()

+ +
+
+ + + + + +
+ + + + + + + +
static uint32_t identifier ()
+
+staticnoexcept
+
+ +

Return the unique id value of this class.

+

This method can be referred for identifying the Text class type.

+
Returns
The type id of the Text class.
+ +
+
+ +

◆ load()

+ +
+
+ + + + + +
+ + + + + + + + +
static Result load (const std::string & path)
+
+staticnoexcept
+
+ +

Loads a scalable font data(ttf) from a file.

+
Parameters
+ + +
[in]pathThe path to the font file.
+
+
+
Return values
+ + + + + +
Result::SuccessWhen succeed.
Result::InvalidArgumentsIn case the path is invalid.
Result::NonSupportWhen trying to load a file with an unknown extension.
Result::UnknownIf an error occurs at a later stage.
+
+
+
Note
Experimental API
+
See also
Text::unload(const std::string& path)
+ +
+
+ +

◆ text()

+ +
+
+ + + + + +
+ + + + + + + + +
Result text (const char * text)
+
+noexcept
+
+ +

Assigns the given unicode text to be rendered.

+

This function sets the unicode string that will be displayed by the rendering system. The text is set according to the specified UTF encoding method, which defaults to UTF-8.

+
Parameters
+ + +
[in]textThe multi-byte text encoded with utf8 string to be rendered.
+
+
+
Return values
+ + +
Result::Successwhen succeed.
+
+
+
Note
Experimental API
+ +
+
+ +

◆ unload()

+ +
+
+ + + + + +
+ + + + + + + + +
static Result unload (const std::string & path)
+
+staticnoexcept
+
+ +

Unloads the specified scalable font data (TTF) that was previously loaded.

+

This function is used to release resources associated with a font file that has been loaded into memory.

+
Parameters
+ + +
[in]pathThe file path of the loaded font.
+
+
+
Return values
+ + + +
Result::SuccessSuccessfully unloads the font data.
Result::InsufficientConditionFails if the loader is not initialized.
+
+
+
Note
If the font data is currently in use, it will not be immediately unloaded.
+
+Experimental API
+
See also
Text::load(const std::string& path)
+ +
+
+
+
+ + + + diff --git a/docs/html/classtvg_1_1Text.js b/docs/html/classtvg_1_1Text.js new file mode 100644 index 00000000..49ba4474 --- /dev/null +++ b/docs/html/classtvg_1_1Text.js @@ -0,0 +1,7 @@ +var classtvg_1_1Text = +[ + [ "fill", "classtvg_1_1Text.html#ad0cb7b2ec8d18d7c6d366cc84741682c", null ], + [ "fill", "classtvg_1_1Text.html#ab82934b0e19f300568f0aaab976e56fa", null ], + [ "font", "classtvg_1_1Text.html#ae75b2b7eaa5757cfaa6620df127c0416", null ], + [ "text", "classtvg_1_1Text.html#a9dd4d33d94a639639321538338e9f9f8", null ] +]; \ No newline at end of file diff --git a/docs/html/classtvg_1_1Text__inherit__graph.map b/docs/html/classtvg_1_1Text__inherit__graph.map new file mode 100644 index 00000000..23295c70 --- /dev/null +++ b/docs/html/classtvg_1_1Text__inherit__graph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/html/classtvg_1_1Text__inherit__graph.md5 b/docs/html/classtvg_1_1Text__inherit__graph.md5 new file mode 100644 index 00000000..c662c56a --- /dev/null +++ b/docs/html/classtvg_1_1Text__inherit__graph.md5 @@ -0,0 +1 @@ +5acf084e7e478b941c679e579ddffaf6 \ No newline at end of file diff --git a/docs/html/classtvg_1_1Text__inherit__graph.png b/docs/html/classtvg_1_1Text__inherit__graph.png new file mode 100644 index 0000000000000000000000000000000000000000..b93f264f91b79eb53697ade6fe975375d71b5be4 GIT binary patch literal 1633 zcmV-n2A=teP)hiwlNiY~(%^ z1VSOiN=R62YlYy;hwSZ3Ae2RvZKi3YWMV3@E02489>b+RJQ*~ba}>UW)4kmLd|238 zcaeAZgu)4Z@!23@83Hdj$fYA`k-mr>2$`Hh`-;-ZnyuceE6W(>*GpNVLT8AJRlA~ zL2+?$b8|D&5PTdo8V!UHLYR?}v2WkLfq{V^>`c>iWo6}$8!Rd+x^w3ak4&QQ{2q)( zBg?WgGczics;sPRZf=fu2Fa6DUy{jW4Gj%TOG{3tQ>)cN2q}u%xpQZ2ZSC5UKDI9v z6cku2mXeYZnM}5O_wMJ{Y&CPxI@FAH5qVROMcI_I3FfT7}czC#@ zqa!yr*KW7(*|SF~l|l%OMx)2$;jAc^%cF17)6)R}fk1#?0s(W6HK1{fId9yp+YP_PC)9?!OI+rBA^oh+hroS;Ct zyiy{`6SmQ~IS%ct{OZ-e3dLEI$&NG%+VRld{#W!h9A?l(LFf<)MLIi20RRgND}#fR z=mH^h=i{Z=H|*0)aC`!6(!5E3dPwcPezf3AiqWNfH>d*alixOfCt0@4~PRE5C=RU4tPKu z@PIhr0dc?s;(!Ol0S|}+9uNmSAP#tt3J%=Yfpj{ZQ0=Fs{UH)%2-O;Awh6DtDV56a zp9tJQ#>dAKJqMc5Atxv2;K75aGU7!dhg293!~qY810L|a*C7}TmX?-&Urtd}UtizP zw{z;$sq*r2jYh*SjVL@FBoaw~e}DA-#fulEQtA2g=ab1J83gW2fk5EKjT^^~9n)&H zCX>nM^8o-pe*9QoUf$c=8{Ma|vGLrwa}2{=zI=IVYO0~3;n1N&RaI5Ig9?1#OkG`F zFc`dg^=f8jW=l(p#bUX2>sEGlw%Kg9TCKZw?V6mNq-najxtXFUtJOL)GqYiRi4(uy zKQuJta5%EFvjG67PoLImwbRqn`T6-Ol}fMIo6Y7=pFY*r)@Eg82^d#M2d~!)0Ek;J z&d$!}=jQ_e%F4>_-@mU^Dhmq>1q=#=b=bOfD}=D4qeCW(zr~7W*}A$qwOZ|VySux) z4<9}pEl=_(%P);2-^3bnxqScr{q^CP;va+(?zI_{sM3RXs@OjB(GHu_!y{4w-$dM!0uV2?_G@CYU8XX;NZEdyL zY-wp}1qB5a6%{s{ZDnNz0AMf}hKGksOG}eEFF}^;2131F@Avy{HXHAD1?T0 + + + + + + +ThorVG: Member List + + + + + + + + + + + + + +
+
+ + + + + + + +
+
ThorVG +  v0.12 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
WgCanvas Member List
+
+
+ +

This is the complete list of members for WgCanvas, including all inherited members.

+ + + + + + + + + + +
clear(bool free=true) noexceptCanvasvirtual
draw() noexceptCanvasvirtual
gen() noexceptWgCanvasstatic
paints() noexceptCanvas
push(std::unique_ptr< Paint > paint) noexceptCanvasvirtual
reserve(uint32_t n) noexceptCanvas
sync() noexceptCanvasvirtual
target(void *window, uint32_t w, uint32_t h) noexceptWgCanvas
update(Paint *paint=nullptr) noexceptCanvasvirtual
+
+ + + + diff --git a/docs/html/classtvg_1_1WgCanvas.html b/docs/html/classtvg_1_1WgCanvas.html new file mode 100644 index 00000000..41465bd4 --- /dev/null +++ b/docs/html/classtvg_1_1WgCanvas.html @@ -0,0 +1,231 @@ + + + + + + + +ThorVG: WgCanvas + + + + + + + + + + + + + +
+
+ + + + + + + +
+
ThorVG +  v0.12 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ + +
+ +

A class for the rendering graphic elements with a WebGPU raster engine. + More...

+
+Inheritance diagram for WgCanvas:
+
+
Inheritance graph
+ + + + +
[legend]
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Result target (void *window, uint32_t w, uint32_t h) noexcept
 Sets the target window for the rasterization. More...
 
- Public Member Functions inherited from Canvas
TVG_DEPRECATED Result reserve (uint32_t n) noexcept
 Sets the size of the container, where all the paints pushed into the Canvas are stored. More...
 
std::list< Paint * > & paints () noexcept
 Returns the list of the paints that currently held by the Canvas. More...
 
virtual Result push (std::unique_ptr< Paint > paint) noexcept
 Passes drawing elements to the Canvas using Paint objects. More...
 
virtual Result clear (bool free=true) noexcept
 Clear the internal canvas resources that used for the drawing. More...
 
virtual Result update (Paint *paint=nullptr) noexcept
 Request the canvas to update the paint objects. More...
 
virtual Result draw () noexcept
 Requests the canvas to draw the Paint objects. More...
 
virtual Result sync () noexcept
 Guarantees that drawing task is finished. More...
 
+ + + + +

+Static Public Member Functions

static std::unique_ptr< WgCanvasgen () noexcept
 Creates a new WgCanvas object. More...
 
+

Detailed Description

+

A class for the rendering graphic elements with a WebGPU raster engine.

+
Warning
Please do not use it. This class is not fully supported yet.
+
Note
Experimental API
+

Member Function Documentation

+ +

◆ gen()

+ +
+
+ + + + + +
+ + + + + + + +
static std::unique_ptr<WgCanvas> gen ()
+
+staticnoexcept
+
+ +

Creates a new WgCanvas object.

+
Returns
A new WgCanvas object.
+
Note
Experimental API
+ +
+
+ +

◆ target()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Result target (void * window,
uint32_t w,
uint32_t h 
)
+
+noexcept
+
+ +

Sets the target window for the rasterization.

+
Warning
Please do not use it, this API is not official one. It could be modified in the next version.
+
Note
Experimental API
+ +
+
+
+
+ + + + diff --git a/docs/html/classtvg_1_1WgCanvas.js b/docs/html/classtvg_1_1WgCanvas.js new file mode 100644 index 00000000..1af5dae3 --- /dev/null +++ b/docs/html/classtvg_1_1WgCanvas.js @@ -0,0 +1,4 @@ +var classtvg_1_1WgCanvas = +[ + [ "target", "classtvg_1_1WgCanvas.html#a9b5dc178ae416c6279877c87ca0e6330", null ] +]; \ No newline at end of file diff --git a/docs/html/classtvg_1_1WgCanvas__inherit__graph.map b/docs/html/classtvg_1_1WgCanvas__inherit__graph.map new file mode 100644 index 00000000..daa932f0 --- /dev/null +++ b/docs/html/classtvg_1_1WgCanvas__inherit__graph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/html/classtvg_1_1WgCanvas__inherit__graph.md5 b/docs/html/classtvg_1_1WgCanvas__inherit__graph.md5 new file mode 100644 index 00000000..395c831e --- /dev/null +++ b/docs/html/classtvg_1_1WgCanvas__inherit__graph.md5 @@ -0,0 +1 @@ +16daebede52c9eeaa06fd3e3d5a4550f \ No newline at end of file diff --git a/docs/html/classtvg_1_1WgCanvas__inherit__graph.png b/docs/html/classtvg_1_1WgCanvas__inherit__graph.png new file mode 100644 index 0000000000000000000000000000000000000000..2e6e18c598e784891411c8caffe6d7ccb075ea87 GIT binary patch literal 2804 zcmcJR`6E>O8^=$=WfB@fmPm-m9%G%dW;a4Z*ODcv5!q%e5oH;1Z85UmtXamICCpfp zT}-lXS#ONp#Mr*4`(6Km?>WyopC6y+`8><(jWspaJrCiA003}a?~axkcshfh2LlcG zkE9bT2M>A&16?i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vf8U%q*K_%loWc~oSiG}pmG7YN6wY+HhVQhK_o|LzLiIgVy+ zVPWB}t}Y^x=uiQ>dGjV59z53?Ha0ef$K!*7f&ieX+a?3Q+a3dX+&mpLGS>v&Vq=pFI>IQVfw04y6{-iHto`_* z4DNW40%w6osgh!1*r+I3=;xM}kS?eCy1H^?3CNYF6E%I&Zi+6a5N77}wY9*X>o#s~ zr+!=p$Zs_Dp+;3*KwwY;ZhjVQa zWp+(8fQU)vWD|n|El@s&0svLGmX1z-e!hs1(AVMN=Lg%){pm_N-#tD~g6aI;h(X{j zW5E?XTx0>lM{~;8iz3Aw(Kf&3Bx|LqscCO7@T+i3r`^SK0xq&nacg1cB%q8p_Y-qL%h>cZ8s?KdD|G=<7QV2(U8L*VlK0o&56U z13C~TdWj;=4<8npU(Yl11Jghnv$lgUje7lB%8poKD*C}11h0FUEy3E>wsiQhYwBeM zR7y?`*q1qCj-6223e1)RR?7^57z~y^kuWwg>I1dP#Q6BGznV5eIio-NOk!Ukzm*X5 zA_oTr-9dYsmX=o4Z=2TFHZC_e7ZeR09UcA{jFz@G*k?-0$}~W}QCf0*{Ig@~9_V@1 zTN#W|`!z>cczEU58vcH5er~Qe8hws7w7gszmP&k>L2as`73P~Vh?p|Y6L*u6&4nvH>RsGPQ{*UqcWfn2??mb zID?iF7x(h;U|?iKTu;JD+JHi&cDg>CNt_DBYAp|B!M&EE6B9}4N?uecv7jdas3^+I qd)qU%Ze-X4>rJLD#4pW%+rE_Ly7He|eeJ(wETE@ttW~OEANmhDA#YCr literal 0 HcmV?d00001 diff --git a/docs/html/dir_bfccd401955b95cf8c75461437045ac0.html b/docs/html/dir_bfccd401955b95cf8c75461437045ac0.html index dddfb449..d1b6ef63 100644 --- a/docs/html/dir_bfccd401955b95cf8c75461437045ac0.html +++ b/docs/html/dir_bfccd401955b95cf8c75461437045ac0.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -87,12 +87,6 @@ $(document).ready(function(){initNavTree('dir_bfccd401955b95cf8c75461437045ac0.h
inc Directory Reference
- - - - -

-Files

file  thorvg.h [code]
 
diff --git a/docs/html/functions.html b/docs/html/functions.html index 57f4a07f..bdd1dfa9 100644 --- a/docs/html/functions.html +++ b/docs/html/functions.html @@ -27,7 +27,7 @@ Logo
ThorVG -  v0.11 +  v0.12
@@ -120,6 +120,9 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();
  • b : Fill::ColorStop
  • +
  • background() +: Saver +
  • blend() : Paint
  • @@ -150,7 +153,7 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable(); : Shape
  • curFrame() -: Animation +: Animation
  • @@ -175,6 +178,7 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();

    - f -

    • fill() : Shape +, Text
    • fillColor() : Shape @@ -182,8 +186,11 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();
    • fillRule() : Shape
    • +
    • font() +: Text +
    • frame() -: Animation +: Animation
    @@ -203,6 +210,8 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable(); , Scene , Shape , SwCanvas +, Text +, WgCanvas @@ -216,6 +225,7 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable(); , RadialGradient , Scene , Shape +, Text
  • Individual : SwCanvas @@ -235,6 +245,7 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();
  • load() : Picture +, Text
  • @@ -311,7 +322,7 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();

    - s -

    • save() -: Saver +: Saver
    • scale() : Paint @@ -329,7 +340,7 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable(); : Fill
    • stroke() -: Shape +: Shape
    • strokeCap() : Shape @@ -363,12 +374,16 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();
    • target() : GlCanvas , SwCanvas +, WgCanvas
    • term() : Initializer
    • +
    • text() +: Text +
    • totalFrame() -: Animation +: Animation
    • transform() : Fill @@ -381,6 +396,9 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();

      - u -

        +
      • unload() +: Text +
      • update() : Canvas
      • diff --git a/docs/html/functions_enum.html b/docs/html/functions_enum.html index 03882228..4186cfe0 100644 --- a/docs/html/functions_enum.html +++ b/docs/html/functions_enum.html @@ -27,7 +27,7 @@ Logo
        ThorVG -  v0.11 +  v0.12
        diff --git a/docs/html/functions_eval.html b/docs/html/functions_eval.html index 87823ac8..ceb7c75a 100644 --- a/docs/html/functions_eval.html +++ b/docs/html/functions_eval.html @@ -27,7 +27,7 @@ Logo
        ThorVG -  v0.11 +  v0.12
        diff --git a/docs/html/functions_func.html b/docs/html/functions_func.html index 442041ea..a2b148ab 100644 --- a/docs/html/functions_func.html +++ b/docs/html/functions_func.html @@ -27,7 +27,7 @@ Logo
        ThorVG -  v0.11 +  v0.12
        @@ -102,6 +102,9 @@ $(document).ready(function(){initNavTree('functions_func.html',''); initResizabl

        - b -

          +
        • background() +: Saver +
        • blend() : Paint
        • @@ -129,7 +132,7 @@ $(document).ready(function(){initNavTree('functions_func.html',''); initResizabl : Shape
        • curFrame() -: Animation +: Animation
        @@ -151,6 +154,7 @@ $(document).ready(function(){initNavTree('functions_func.html',''); initResizabl

        - f -

        • fill() : Shape +, Text
        • fillColor() : Shape @@ -158,8 +162,11 @@ $(document).ready(function(){initNavTree('functions_func.html',''); initResizabl
        • fillRule() : Shape
        • +
        • font() +: Text +
        • frame() -: Animation +: Animation
        @@ -176,6 +183,8 @@ $(document).ready(function(){initNavTree('functions_func.html',''); initResizabl , Scene , Shape , SwCanvas +, Text +, WgCanvas
      @@ -189,6 +198,7 @@ $(document).ready(function(){initNavTree('functions_func.html',''); initResizabl , RadialGradient , Scene , Shape +, Text
    • init() : Initializer @@ -205,6 +215,7 @@ $(document).ready(function(){initNavTree('functions_func.html',''); initResizabl
    • load() : Picture +, Text
    @@ -272,7 +283,7 @@ $(document).ready(function(){initNavTree('functions_func.html',''); initResizabl

    - s -