1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
6 <meta name="generator" content="Doxygen 1.8.13"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>ThorVG: Shape</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="navtree.css" rel="stylesheet" type="text/css"/>
13 <script type="text/javascript" src="resize.js"></script>
14 <script type="text/javascript" src="navtreedata.js"></script>
15 <script type="text/javascript" src="navtree.js"></script>
16 <script type="text/javascript">
17 $(document).ready(initResizable);
19 <link href="search/search.css" rel="stylesheet" type="text/css"/>
20 <script type="text/javascript" src="search/searchdata.js"></script>
21 <script type="text/javascript" src="search/search.js"></script>
22 <link href="doxygen.css" rel="stylesheet" type="text/css" />
23 <link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
26 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
28 <table cellspacing="0" cellpadding="0">
30 <tr style="height: 56px;">
31 <td id="projectlogo"><img alt="Logo" src="docs_logo.svg"/></td>
32 <td id="projectalign" style="padding-left: 0.5em;">
33 <div id="projectname">ThorVG
34  <span id="projectnumber">v0.1</span>
36 <div id="projectbrief">ThorVG is a platform-independent portable library for drawing vector-based scene and animation. It's an open-source software that is freely used by a variety of software platforms and applications. ThorVG provides neat and easy APIs, its library has no dependencies and keeps cheap and super compact size. It serves as the vector graphics engine for Tizen OS that powers many products.</div>
42 <!-- end header part -->
43 <!-- Generated by Doxygen 1.8.13 -->
44 <script type="text/javascript">
45 var searchBox = new SearchBox("searchBox", "search",false,'Search');
47 <script type="text/javascript" src="menudata.js"></script>
48 <script type="text/javascript" src="menu.js"></script>
49 <script type="text/javascript">
51 initMenu('',true,false,'search.php','Search');
52 $(document).ready(function() { init_search(); });
55 <div id="main-nav"></div>
57 <div id="side-nav" class="ui-resizable side-nav-resizable">
59 <div id="nav-tree-contents">
60 <div id="nav-sync" class="sync"></div>
63 <div id="splitbar" style="-moz-user-select:none;"
64 class="ui-resizable-handle">
67 <script type="text/javascript">
68 $(document).ready(function(){initNavTree('classtvg_1_1Shape.html','');});
70 <div id="doc-content">
71 <!-- window showing the filter options -->
72 <div id="MSearchSelectWindow"
73 onmouseover="return searchBox.OnSearchSelectShow()"
74 onmouseout="return searchBox.OnSearchSelectHide()"
75 onkeydown="return searchBox.OnSearchSelectKey(event)">
78 <!-- iframe showing the search results (closed by default) -->
79 <div id="MSearchResultsWindow">
80 <iframe src="javascript:void(0)" frameborder="0"
81 name="MSearchResults" id="MSearchResults">
87 <a href="#pub-methods">Public Member Functions</a> |
88 <a href="#pub-static-methods">Static Public Member Functions</a> |
89 <a href="classtvg_1_1Shape-members.html">List of all members</a> </div>
90 <div class="headertitle">
91 <div class="title">Shape<span class="mlabels"><span class="mlabel">final</span></span><div class="ingroups"><a class="el" href="group__ThorVG.html">ThorVG</a></div></div> </div>
93 <div class="contents">
95 <p>A class representing two-dimensional figures and their properties.
96 <a href="classtvg_1_1Shape.html#details">More...</a></p>
97 <div class="dynheader">
98 Inheritance diagram for Shape:</div>
99 <div class="dyncontent">
100 <div class="center"><img src="classtvg_1_1Shape__inherit__graph.png" border="0" usemap="#Shape_inherit__map" alt="Inheritance graph"/></div>
101 <map name="Shape_inherit__map" id="Shape_inherit__map">
102 <area shape="rect" id="node2" href="classtvg_1_1Paint.html" title="An abstract class for managing graphical elements. " alt="" coords="9,5,61,32"/>
104 <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
105 <table class="memberdecls">
106 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
107 Public Member Functions</h2></td></tr>
108 <tr class="memitem:a8014640e362066901c2e2ebe6ddd1251"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a8014640e362066901c2e2ebe6ddd1251">reset</a> () noexcept</td></tr>
109 <tr class="memdesc:a8014640e362066901c2e2ebe6ddd1251"><td class="mdescLeft"> </td><td class="mdescRight">Resets the properties of the shape path. <a href="#a8014640e362066901c2e2ebe6ddd1251">More...</a><br /></td></tr>
110 <tr class="separator:a8014640e362066901c2e2ebe6ddd1251"><td class="memSeparator" colspan="2"> </td></tr>
111 <tr class="memitem:a59f97aaa973af7c58081690433286461"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a59f97aaa973af7c58081690433286461">moveTo</a> (float x, float y) noexcept</td></tr>
112 <tr class="memdesc:a59f97aaa973af7c58081690433286461"><td class="mdescLeft"> </td><td class="mdescRight">Sets the initial point of the sub-path. <a href="#a59f97aaa973af7c58081690433286461">More...</a><br /></td></tr>
113 <tr class="separator:a59f97aaa973af7c58081690433286461"><td class="memSeparator" colspan="2"> </td></tr>
114 <tr class="memitem:a9c28e9bbc6bd22dc62e891ffb3fa02cd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a9c28e9bbc6bd22dc62e891ffb3fa02cd">lineTo</a> (float x, float y) noexcept</td></tr>
115 <tr class="memdesc:a9c28e9bbc6bd22dc62e891ffb3fa02cd"><td class="mdescLeft"> </td><td class="mdescRight">Adds a new point to the sub-path, which results in drawing a line from the current point to the given end-point. <a href="#a9c28e9bbc6bd22dc62e891ffb3fa02cd">More...</a><br /></td></tr>
116 <tr class="separator:a9c28e9bbc6bd22dc62e891ffb3fa02cd"><td class="memSeparator" colspan="2"> </td></tr>
117 <tr class="memitem:a7b71316176172fa052373bdb7c9efd29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a7b71316176172fa052373bdb7c9efd29">cubicTo</a> (float cx1, float cy1, float cx2, float cy2, float x, float y) noexcept</td></tr>
118 <tr class="memdesc:a7b71316176172fa052373bdb7c9efd29"><td class="mdescLeft"> </td><td class="mdescRight">Adds new points to the sub-path, which results in drawing a cubic Bezier curve starting at the current point and ending at the given end-point (<code>x</code>, <code>y</code>) using the control points (<code>cx1</code>, <code>cy1</code>) and (<code>cx2</code>, <code>cy2</code>). <a href="#a7b71316176172fa052373bdb7c9efd29">More...</a><br /></td></tr>
119 <tr class="separator:a7b71316176172fa052373bdb7c9efd29"><td class="memSeparator" colspan="2"> </td></tr>
120 <tr class="memitem:a2765987a2641ac1db76d5c64f00da697"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a2765987a2641ac1db76d5c64f00da697">close</a> () noexcept</td></tr>
121 <tr class="memdesc:a2765987a2641ac1db76d5c64f00da697"><td class="mdescLeft"> </td><td class="mdescRight">Closes the current sub-path by drawing a line from the current point to the initial point of the sub-path. <a href="#a2765987a2641ac1db76d5c64f00da697">More...</a><br /></td></tr>
122 <tr class="separator:a2765987a2641ac1db76d5c64f00da697"><td class="memSeparator" colspan="2"> </td></tr>
123 <tr class="memitem:a676c64ce75c274ce75032606d33b03da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a676c64ce75c274ce75032606d33b03da">appendRect</a> (float x, float y, float w, float h, float rx, float ry) noexcept</td></tr>
124 <tr class="memdesc:a676c64ce75c274ce75032606d33b03da"><td class="mdescLeft"> </td><td class="mdescRight">Appends a rectangle to the path. <a href="#a676c64ce75c274ce75032606d33b03da">More...</a><br /></td></tr>
125 <tr class="separator:a676c64ce75c274ce75032606d33b03da"><td class="memSeparator" colspan="2"> </td></tr>
126 <tr class="memitem:a52eccb2815eaa1231da9c389cd92ffa1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a52eccb2815eaa1231da9c389cd92ffa1">appendCircle</a> (float cx, float cy, float rx, float ry) noexcept</td></tr>
127 <tr class="memdesc:a52eccb2815eaa1231da9c389cd92ffa1"><td class="mdescLeft"> </td><td class="mdescRight">Appends an ellipse to the path. <a href="#a52eccb2815eaa1231da9c389cd92ffa1">More...</a><br /></td></tr>
128 <tr class="separator:a52eccb2815eaa1231da9c389cd92ffa1"><td class="memSeparator" colspan="2"> </td></tr>
129 <tr class="memitem:a2f003a843ff42f6cee6a726f543836e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a2f003a843ff42f6cee6a726f543836e3">appendArc</a> (float cx, float cy, float radius, float startAngle, float sweep, bool pie) noexcept</td></tr>
130 <tr class="memdesc:a2f003a843ff42f6cee6a726f543836e3"><td class="mdescLeft"> </td><td class="mdescRight">Appends a circular arc to the path. <a href="#a2f003a843ff42f6cee6a726f543836e3">More...</a><br /></td></tr>
131 <tr class="separator:a2f003a843ff42f6cee6a726f543836e3"><td class="memSeparator" colspan="2"> </td></tr>
132 <tr class="memitem:a3588ea30776a747a22b6ee82dadb9717"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a3588ea30776a747a22b6ee82dadb9717">appendPath</a> (const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> *cmds, uint32_t cmdCnt, const <a class="el" href="structtvg_1_1Point.html">Point</a> *pts, uint32_t ptsCnt) noexcept</td></tr>
133 <tr class="memdesc:a3588ea30776a747a22b6ee82dadb9717"><td class="mdescLeft"> </td><td class="mdescRight">Appends a given sub-path to the path. <a href="#a3588ea30776a747a22b6ee82dadb9717">More...</a><br /></td></tr>
134 <tr class="separator:a3588ea30776a747a22b6ee82dadb9717"><td class="memSeparator" colspan="2"> </td></tr>
135 <tr class="memitem:a5ce764cd1970c7a7d76b209c4441bc73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a5ce764cd1970c7a7d76b209c4441bc73">stroke</a> (float width) noexcept</td></tr>
136 <tr class="memdesc:a5ce764cd1970c7a7d76b209c4441bc73"><td class="mdescLeft"> </td><td class="mdescRight">Sets the stroke width for all of the figures from the path. <a href="#a5ce764cd1970c7a7d76b209c4441bc73">More...</a><br /></td></tr>
137 <tr class="separator:a5ce764cd1970c7a7d76b209c4441bc73"><td class="memSeparator" colspan="2"> </td></tr>
138 <tr class="memitem:a68a4822b30573cf4f02195b249218e4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a68a4822b30573cf4f02195b249218e4e">stroke</a> (uint8_t r, uint8_t g, uint8_t b, uint8_t a) noexcept</td></tr>
139 <tr class="memdesc:a68a4822b30573cf4f02195b249218e4e"><td class="mdescLeft"> </td><td class="mdescRight">Sets the color of the stroke for all of the figures from the path. <a href="#a68a4822b30573cf4f02195b249218e4e">More...</a><br /></td></tr>
140 <tr class="separator:a68a4822b30573cf4f02195b249218e4e"><td class="memSeparator" colspan="2"> </td></tr>
141 <tr class="memitem:ab0b09b5064dff4931db9ea898b36dcc1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ab0b09b5064dff4931db9ea898b36dcc1">stroke</a> (std::unique_ptr< <a class="el" href="classtvg_1_1Fill.html">Fill</a> > f) noexcept</td></tr>
142 <tr class="memdesc:ab0b09b5064dff4931db9ea898b36dcc1"><td class="mdescLeft"> </td><td class="mdescRight">Sets the gradient fill of the stroke for all of the figures from the path. <a href="#ab0b09b5064dff4931db9ea898b36dcc1">More...</a><br /></td></tr>
143 <tr class="separator:ab0b09b5064dff4931db9ea898b36dcc1"><td class="memSeparator" colspan="2"> </td></tr>
144 <tr class="memitem:ae79102d63897ad86a96afb4436c731e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ae79102d63897ad86a96afb4436c731e4">stroke</a> (const float *dashPattern, uint32_t cnt) noexcept</td></tr>
145 <tr class="memdesc:ae79102d63897ad86a96afb4436c731e4"><td class="mdescLeft"> </td><td class="mdescRight">Sets the dash pattern of the stroke. <a href="#ae79102d63897ad86a96afb4436c731e4">More...</a><br /></td></tr>
146 <tr class="separator:ae79102d63897ad86a96afb4436c731e4"><td class="memSeparator" colspan="2"> </td></tr>
147 <tr class="memitem:a39068c9686211de862844dacabf92375"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a39068c9686211de862844dacabf92375">stroke</a> (<a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a> cap) noexcept</td></tr>
148 <tr class="memdesc:a39068c9686211de862844dacabf92375"><td class="mdescLeft"> </td><td class="mdescRight">Sets the cap style of the stroke in the open sub-paths. <a href="#a39068c9686211de862844dacabf92375">More...</a><br /></td></tr>
149 <tr class="separator:a39068c9686211de862844dacabf92375"><td class="memSeparator" colspan="2"> </td></tr>
150 <tr class="memitem:ac416cad0d9e15079a112b1f609d19177"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ac416cad0d9e15079a112b1f609d19177">stroke</a> (<a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a> join) noexcept</td></tr>
151 <tr class="memdesc:ac416cad0d9e15079a112b1f609d19177"><td class="mdescLeft"> </td><td class="mdescRight">Sets the join style for stroked path segments. <a href="#ac416cad0d9e15079a112b1f609d19177">More...</a><br /></td></tr>
152 <tr class="separator:ac416cad0d9e15079a112b1f609d19177"><td class="memSeparator" colspan="2"> </td></tr>
153 <tr class="memitem:ae25e3697b5df587d50b809f1faeeabd9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ae25e3697b5df587d50b809f1faeeabd9">fill</a> (uint8_t r, uint8_t g, uint8_t b, uint8_t a) noexcept</td></tr>
154 <tr class="memdesc:ae25e3697b5df587d50b809f1faeeabd9"><td class="mdescLeft"> </td><td class="mdescRight">Sets the solid color for all of the figures from the path. <a href="#ae25e3697b5df587d50b809f1faeeabd9">More...</a><br /></td></tr>
155 <tr class="separator:ae25e3697b5df587d50b809f1faeeabd9"><td class="memSeparator" colspan="2"> </td></tr>
156 <tr class="memitem:ad0cb7b2ec8d18d7c6d366cc84741682c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ad0cb7b2ec8d18d7c6d366cc84741682c">fill</a> (std::unique_ptr< <a class="el" href="classtvg_1_1Fill.html">Fill</a> > f) noexcept</td></tr>
157 <tr class="memdesc:ad0cb7b2ec8d18d7c6d366cc84741682c"><td class="mdescLeft"> </td><td class="mdescRight">Sets the gradient fill for all of the figures from the path. <a href="#ad0cb7b2ec8d18d7c6d366cc84741682c">More...</a><br /></td></tr>
158 <tr class="separator:ad0cb7b2ec8d18d7c6d366cc84741682c"><td class="memSeparator" colspan="2"> </td></tr>
159 <tr class="memitem:a02b95c15d0c2006134a95cdadf64e3f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a02b95c15d0c2006134a95cdadf64e3f4">fill</a> (<a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a> r) noexcept</td></tr>
160 <tr class="memdesc:a02b95c15d0c2006134a95cdadf64e3f4"><td class="mdescLeft"> </td><td class="mdescRight">Sets the fill rule for the <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties. ">Shape</a> object. <a href="#a02b95c15d0c2006134a95cdadf64e3f4">More...</a><br /></td></tr>
161 <tr class="separator:a02b95c15d0c2006134a95cdadf64e3f4"><td class="memSeparator" colspan="2"> </td></tr>
162 <tr class="memitem:ac14d90c2c0130b66a9a33eb7d08101b7"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ac14d90c2c0130b66a9a33eb7d08101b7">pathCommands</a> (const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> **cmds) const noexcept</td></tr>
163 <tr class="memdesc:ac14d90c2c0130b66a9a33eb7d08101b7"><td class="mdescLeft"> </td><td class="mdescRight">Gets the commands data of the path. <a href="#ac14d90c2c0130b66a9a33eb7d08101b7">More...</a><br /></td></tr>
164 <tr class="separator:ac14d90c2c0130b66a9a33eb7d08101b7"><td class="memSeparator" colspan="2"> </td></tr>
165 <tr class="memitem:a818b1b358f0ed7ba448b6d804e087923"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a818b1b358f0ed7ba448b6d804e087923">pathCoords</a> (const <a class="el" href="structtvg_1_1Point.html">Point</a> **pts) const noexcept</td></tr>
166 <tr class="memdesc:a818b1b358f0ed7ba448b6d804e087923"><td class="mdescLeft"> </td><td class="mdescRight">Gets the points values of the path. <a href="#a818b1b358f0ed7ba448b6d804e087923">More...</a><br /></td></tr>
167 <tr class="separator:a818b1b358f0ed7ba448b6d804e087923"><td class="memSeparator" colspan="2"> </td></tr>
168 <tr class="memitem:a989edf4b4f68532ff25004fc0c7fe826"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classtvg_1_1Fill.html">Fill</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a989edf4b4f68532ff25004fc0c7fe826">fill</a> () const noexcept</td></tr>
169 <tr class="memdesc:a989edf4b4f68532ff25004fc0c7fe826"><td class="mdescLeft"> </td><td class="mdescRight">Gets the pointer to the gradient fill of the shape. <a href="#a989edf4b4f68532ff25004fc0c7fe826">More...</a><br /></td></tr>
170 <tr class="separator:a989edf4b4f68532ff25004fc0c7fe826"><td class="memSeparator" colspan="2"> </td></tr>
171 <tr class="memitem:afc81d85ad3fb3f006abf835311a0acfc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#afc81d85ad3fb3f006abf835311a0acfc">fillColor</a> (uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a) const noexcept</td></tr>
172 <tr class="memdesc:afc81d85ad3fb3f006abf835311a0acfc"><td class="mdescLeft"> </td><td class="mdescRight">Gets the solid color of the shape. <a href="#afc81d85ad3fb3f006abf835311a0acfc">More...</a><br /></td></tr>
173 <tr class="separator:afc81d85ad3fb3f006abf835311a0acfc"><td class="memSeparator" colspan="2"> </td></tr>
174 <tr class="memitem:ac14cd997439012e1abf6c1b8d9f3d4aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ac14cd997439012e1abf6c1b8d9f3d4aa">fillRule</a> () const noexcept</td></tr>
175 <tr class="memdesc:ac14cd997439012e1abf6c1b8d9f3d4aa"><td class="mdescLeft"> </td><td class="mdescRight">Gets the fill rule value. <a href="#ac14cd997439012e1abf6c1b8d9f3d4aa">More...</a><br /></td></tr>
176 <tr class="separator:ac14cd997439012e1abf6c1b8d9f3d4aa"><td class="memSeparator" colspan="2"> </td></tr>
177 <tr class="memitem:a1536ec32e91c29dd8300b0d4354773f9"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a1536ec32e91c29dd8300b0d4354773f9">strokeWidth</a> () const noexcept</td></tr>
178 <tr class="memdesc:a1536ec32e91c29dd8300b0d4354773f9"><td class="mdescLeft"> </td><td class="mdescRight">Gets the stroke width. <a href="#a1536ec32e91c29dd8300b0d4354773f9">More...</a><br /></td></tr>
179 <tr class="separator:a1536ec32e91c29dd8300b0d4354773f9"><td class="memSeparator" colspan="2"> </td></tr>
180 <tr class="memitem:a7b81219e058ae54e731c5702a1c61462"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a7b81219e058ae54e731c5702a1c61462">strokeColor</a> (uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a) const noexcept</td></tr>
181 <tr class="memdesc:a7b81219e058ae54e731c5702a1c61462"><td class="mdescLeft"> </td><td class="mdescRight">Gets the color of the shape's stroke. <a href="#a7b81219e058ae54e731c5702a1c61462">More...</a><br /></td></tr>
182 <tr class="separator:a7b81219e058ae54e731c5702a1c61462"><td class="memSeparator" colspan="2"> </td></tr>
183 <tr class="memitem:a08ce41b2d01d2d43980e5c26f4df111e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classtvg_1_1Fill.html">Fill</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a08ce41b2d01d2d43980e5c26f4df111e">strokeFill</a> () const noexcept</td></tr>
184 <tr class="memdesc:a08ce41b2d01d2d43980e5c26f4df111e"><td class="mdescLeft"> </td><td class="mdescRight">Gets the pointer to the gradient fill of the stroke. <a href="#a08ce41b2d01d2d43980e5c26f4df111e">More...</a><br /></td></tr>
185 <tr class="separator:a08ce41b2d01d2d43980e5c26f4df111e"><td class="memSeparator" colspan="2"> </td></tr>
186 <tr class="memitem:afbc1e469219ee86df47d216f58af282a"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#afbc1e469219ee86df47d216f58af282a">strokeDash</a> (const float **dashPattern) const noexcept</td></tr>
187 <tr class="memdesc:afbc1e469219ee86df47d216f58af282a"><td class="mdescLeft"> </td><td class="mdescRight">Gets the dash pattern of the stroke. <a href="#afbc1e469219ee86df47d216f58af282a">More...</a><br /></td></tr>
188 <tr class="separator:afbc1e469219ee86df47d216f58af282a"><td class="memSeparator" colspan="2"> </td></tr>
189 <tr class="memitem:a0948989a7f0a9e253234cd9f53784674"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a0948989a7f0a9e253234cd9f53784674">strokeCap</a> () const noexcept</td></tr>
190 <tr class="memdesc:a0948989a7f0a9e253234cd9f53784674"><td class="mdescLeft"> </td><td class="mdescRight">Gets the cap style used for stroking the path. <a href="#a0948989a7f0a9e253234cd9f53784674">More...</a><br /></td></tr>
191 <tr class="separator:a0948989a7f0a9e253234cd9f53784674"><td class="memSeparator" colspan="2"> </td></tr>
192 <tr class="memitem:aac0235df4172e9c079689e5291c7ad5a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#aac0235df4172e9c079689e5291c7ad5a">strokeJoin</a> () const noexcept</td></tr>
193 <tr class="memdesc:aac0235df4172e9c079689e5291c7ad5a"><td class="mdescLeft"> </td><td class="mdescRight">Gets the join style value used for stroking the path. <a href="#aac0235df4172e9c079689e5291c7ad5a">More...</a><br /></td></tr>
194 <tr class="separator:aac0235df4172e9c079689e5291c7ad5a"><td class="memSeparator" colspan="2"> </td></tr>
195 <tr class="inherit_header pub_methods_classtvg_1_1Paint"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classtvg_1_1Paint')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classtvg_1_1Paint.html">Paint</a></td></tr>
196 <tr class="memitem:a7841fa0c14643e09735d48042ead68f3 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a7841fa0c14643e09735d48042ead68f3">rotate</a> (float degree) noexcept</td></tr>
197 <tr class="memdesc:a7841fa0c14643e09735d48042ead68f3 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the angle by which the object is rotated. <a href="classtvg_1_1Paint.html#a7841fa0c14643e09735d48042ead68f3">More...</a><br /></td></tr>
198 <tr class="separator:a7841fa0c14643e09735d48042ead68f3 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
199 <tr class="memitem:a5c057876185525c5723215f95a3984f2 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a5c057876185525c5723215f95a3984f2">scale</a> (float factor) noexcept</td></tr>
200 <tr class="memdesc:a5c057876185525c5723215f95a3984f2 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the scale value of the object. <a href="classtvg_1_1Paint.html#a5c057876185525c5723215f95a3984f2">More...</a><br /></td></tr>
201 <tr class="separator:a5c057876185525c5723215f95a3984f2 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
202 <tr class="memitem:ae896f56bfa51c98a50eee3f2bb62e41e inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#ae896f56bfa51c98a50eee3f2bb62e41e">translate</a> (float x, float y) noexcept</td></tr>
203 <tr class="memdesc:ae896f56bfa51c98a50eee3f2bb62e41e inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the values by which the object is moved in a two-dimensional space. <a href="classtvg_1_1Paint.html#ae896f56bfa51c98a50eee3f2bb62e41e">More...</a><br /></td></tr>
204 <tr class="separator:ae896f56bfa51c98a50eee3f2bb62e41e inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
205 <tr class="memitem:ac9f6ba428afe884bcc2861de0a2a96f4 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#ac9f6ba428afe884bcc2861de0a2a96f4">transform</a> (const <a class="el" href="structtvg_1_1Matrix.html">Matrix</a> &m) noexcept</td></tr>
206 <tr class="memdesc:ac9f6ba428afe884bcc2861de0a2a96f4 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the matrix of the affine transformation for the object. <a href="classtvg_1_1Paint.html#ac9f6ba428afe884bcc2861de0a2a96f4">More...</a><br /></td></tr>
207 <tr class="separator:ac9f6ba428afe884bcc2861de0a2a96f4 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
208 <tr class="memitem:a2f25b71fed3ae390eb8051c7ea65aebf inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a2f25b71fed3ae390eb8051c7ea65aebf">opacity</a> (uint8_t o) noexcept</td></tr>
209 <tr class="memdesc:a2f25b71fed3ae390eb8051c7ea65aebf inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the opacity of the object. <a href="classtvg_1_1Paint.html#a2f25b71fed3ae390eb8051c7ea65aebf">More...</a><br /></td></tr>
210 <tr class="separator:a2f25b71fed3ae390eb8051c7ea65aebf inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
211 <tr class="memitem:aab93150647927b8f2006b5ae45b7b093 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#aab93150647927b8f2006b5ae45b7b093">composite</a> (std::unique_ptr< <a class="el" href="classtvg_1_1Paint.html">Paint</a> > target, <a class="el" href="group__ThorVG.html#gaabdf94ada64e69d06deabc5aa6576f87">CompositeMethod</a> method) const noexcept</td></tr>
212 <tr class="memdesc:aab93150647927b8f2006b5ae45b7b093 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the composition target object and the composition method. <a href="classtvg_1_1Paint.html#aab93150647927b8f2006b5ae45b7b093">More...</a><br /></td></tr>
213 <tr class="separator:aab93150647927b8f2006b5ae45b7b093 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
214 <tr class="memitem:a6d4e91eeca737b135064caadab4b4dff inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a6d4e91eeca737b135064caadab4b4dff">bounds</a> (float *x, float *y, float *w, float *h) const noexcept</td></tr>
215 <tr class="memdesc:a6d4e91eeca737b135064caadab4b4dff inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Gets the bounding box of the paint object before any transformation. <a href="classtvg_1_1Paint.html#a6d4e91eeca737b135064caadab4b4dff">More...</a><br /></td></tr>
216 <tr class="separator:a6d4e91eeca737b135064caadab4b4dff inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
217 <tr class="memitem:a71afac69fe1e7c352460be5878812635 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtvg_1_1Paint.html">Paint</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a71afac69fe1e7c352460be5878812635">duplicate</a> () const noexcept</td></tr>
218 <tr class="memdesc:a71afac69fe1e7c352460be5878812635 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Duplicates the object. <a href="classtvg_1_1Paint.html#a71afac69fe1e7c352460be5878812635">More...</a><br /></td></tr>
219 <tr class="separator:a71afac69fe1e7c352460be5878812635 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
220 <tr class="memitem:a2ee7517b8bfad47e0f999ba3450e0e3e inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a2ee7517b8bfad47e0f999ba3450e0e3e">opacity</a> () const noexcept</td></tr>
221 <tr class="memdesc:a2ee7517b8bfad47e0f999ba3450e0e3e inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Gets the opacity value of the object. <a href="classtvg_1_1Paint.html#a2ee7517b8bfad47e0f999ba3450e0e3e">More...</a><br /></td></tr>
222 <tr class="separator:a2ee7517b8bfad47e0f999ba3450e0e3e inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
223 </table><table class="memberdecls">
224 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
225 Static Public Member Functions</h2></td></tr>
226 <tr class="memitem:aa91a801f4f9e8fd8e1567d014c280cb9"><td class="memItemLeft" align="right" valign="top">static std::unique_ptr< <a class="el" href="classtvg_1_1Shape.html">Shape</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#aa91a801f4f9e8fd8e1567d014c280cb9">gen</a> () noexcept</td></tr>
227 <tr class="memdesc:aa91a801f4f9e8fd8e1567d014c280cb9"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties. ">Shape</a> object. <a href="#aa91a801f4f9e8fd8e1567d014c280cb9">More...</a><br /></td></tr>
228 <tr class="separator:aa91a801f4f9e8fd8e1567d014c280cb9"><td class="memSeparator" colspan="2"> </td></tr>
230 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
231 <div class="textblock"><p>A class representing two-dimensional figures and their properties. </p>
232 <p>A shape has three major properties: shape outline, stroking, filling. The outline in the <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties. ">Shape</a> is retained as the path. Path can be composed by accumulating primitive commands such as <a class="el" href="classtvg_1_1Shape.html#a59f97aaa973af7c58081690433286461" title="Sets the initial point of the sub-path. ">moveTo()</a>, <a class="el" href="classtvg_1_1Shape.html#a9c28e9bbc6bd22dc62e891ffb3fa02cd" title="Adds a new point to the sub-path, which results in drawing a line from the current point to the given...">lineTo()</a>, <a class="el" href="classtvg_1_1Shape.html#a7b71316176172fa052373bdb7c9efd29" title="Adds new points to the sub-path, which results in drawing a cubic Bezier curve starting at the curren...">cubicTo()</a>, or complete shape interfaces such as <a class="el" href="classtvg_1_1Shape.html#a676c64ce75c274ce75032606d33b03da" title="Appends a rectangle to the path. ">appendRect()</a>, <a class="el" href="classtvg_1_1Shape.html#a52eccb2815eaa1231da9c389cd92ffa1" title="Appends an ellipse to the path. ">appendCircle()</a>, etc. Path can consists of sub-paths. One sub-path is determined by a close command.</p>
233 <p>The stroke of <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties. ">Shape</a> is an optional property in case the <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties. ">Shape</a> needs to be represented with/without the outline borders. It's efficient since the shape path and the stroking path can be shared with each other. It's also convenient when controlling both in one context. </p>
234 </div><h2 class="groupheader">Member Function Documentation</h2>
235 <a id="a2f003a843ff42f6cee6a726f543836e3"></a>
236 <h2 class="memtitle"><span class="permalink"><a href="#a2f003a843ff42f6cee6a726f543836e3">◆ </a></span>appendArc()</h2>
238 <div class="memitem">
239 <div class="memproto">
240 <table class="mlabels">
242 <td class="mlabels-left">
243 <table class="memname">
245 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendArc </td>
247 <td class="paramtype">float </td>
248 <td class="paramname"><em>cx</em>, </td>
251 <td class="paramkey"></td>
253 <td class="paramtype">float </td>
254 <td class="paramname"><em>cy</em>, </td>
257 <td class="paramkey"></td>
259 <td class="paramtype">float </td>
260 <td class="paramname"><em>radius</em>, </td>
263 <td class="paramkey"></td>
265 <td class="paramtype">float </td>
266 <td class="paramname"><em>startAngle</em>, </td>
269 <td class="paramkey"></td>
271 <td class="paramtype">float </td>
272 <td class="paramname"><em>sweep</em>, </td>
275 <td class="paramkey"></td>
277 <td class="paramtype">bool </td>
278 <td class="paramname"><em>pie</em> </td>
287 <td class="mlabels-right">
288 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
291 </div><div class="memdoc">
293 <p>Appends a circular arc to the path. </p>
294 <p>The arc is treated as a new sub-path - it is not connected with the previous sub-path. The current point value is set to the end-point of the arc in case <code>pie</code> is <code>false</code>, and to the center of the arc otherwise.</p>
295 <dl class="params"><dt>Parameters</dt><dd>
296 <table class="params">
297 <tr><td class="paramdir">[in]</td><td class="paramname">cx</td><td>The horizontal coordinate of the center of the arc. </td></tr>
298 <tr><td class="paramdir">[in]</td><td class="paramname">cy</td><td>The vertical coordinate of the center of the arc. </td></tr>
299 <tr><td class="paramdir">[in]</td><td class="paramname">radius</td><td>The radius of the arc. </td></tr>
300 <tr><td class="paramdir">[in]</td><td class="paramname">startAngle</td><td>The start angle of the arc given in degrees, measured counter-clockwise from the horizontal line. </td></tr>
301 <tr><td class="paramdir">[in]</td><td class="paramname">sweep</td><td>The central angle of the arc given in degrees, measured counter-clockwise from <code>startAngle</code>. </td></tr>
302 <tr><td class="paramdir">[in]</td><td class="paramname">pie</td><td>Specifies whether to draw radii from the arc's center to both of its end-point - drawn if <code>true</code>.</td></tr>
306 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed.</dd></dl>
307 <dl class="section note"><dt>Note</dt><dd>Setting <code>sweep</code> value greater than 360 degrees, is equivalent to calling appendCircle(cx, cy, radius, radius). </dd></dl>
311 <a id="a52eccb2815eaa1231da9c389cd92ffa1"></a>
312 <h2 class="memtitle"><span class="permalink"><a href="#a52eccb2815eaa1231da9c389cd92ffa1">◆ </a></span>appendCircle()</h2>
314 <div class="memitem">
315 <div class="memproto">
316 <table class="mlabels">
318 <td class="mlabels-left">
319 <table class="memname">
321 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendCircle </td>
323 <td class="paramtype">float </td>
324 <td class="paramname"><em>cx</em>, </td>
327 <td class="paramkey"></td>
329 <td class="paramtype">float </td>
330 <td class="paramname"><em>cy</em>, </td>
333 <td class="paramkey"></td>
335 <td class="paramtype">float </td>
336 <td class="paramname"><em>rx</em>, </td>
339 <td class="paramkey"></td>
341 <td class="paramtype">float </td>
342 <td class="paramname"><em>ry</em> </td>
351 <td class="mlabels-right">
352 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
355 </div><div class="memdoc">
357 <p>Appends an ellipse to the path. </p>
358 <p>The position of the ellipse is specified by the coordinates of its center - <code>cx</code> and <code>cy</code> arguments.</p>
359 <p>The ellipse is treated as a new sub-path - it is not connected with the previous sub-path.</p>
360 <p>The value of the current point is set to (<code>cx</code>, <code>cy</code> - <code>ry</code>).</p>
361 <dl class="params"><dt>Parameters</dt><dd>
362 <table class="params">
363 <tr><td class="paramdir">[in]</td><td class="paramname">cx</td><td>The horizontal coordinate of the center of the ellipse. </td></tr>
364 <tr><td class="paramdir">[in]</td><td class="paramname">cy</td><td>The vertical coordinate of the center of the ellipse. </td></tr>
365 <tr><td class="paramdir">[in]</td><td class="paramname">rx</td><td>The x-axis radius of the ellipse. </td></tr>
366 <tr><td class="paramdir">[in]</td><td class="paramname">ry</td><td>The y-axis radius of the ellipse.</td></tr>
370 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed. </dd></dl>
374 <a id="a3588ea30776a747a22b6ee82dadb9717"></a>
375 <h2 class="memtitle"><span class="permalink"><a href="#a3588ea30776a747a22b6ee82dadb9717">◆ </a></span>appendPath()</h2>
377 <div class="memitem">
378 <div class="memproto">
379 <table class="mlabels">
381 <td class="mlabels-left">
382 <table class="memname">
384 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendPath </td>
386 <td class="paramtype">const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> * </td>
387 <td class="paramname"><em>cmds</em>, </td>
390 <td class="paramkey"></td>
392 <td class="paramtype">uint32_t </td>
393 <td class="paramname"><em>cmdCnt</em>, </td>
396 <td class="paramkey"></td>
398 <td class="paramtype">const <a class="el" href="structtvg_1_1Point.html">Point</a> * </td>
399 <td class="paramname"><em>pts</em>, </td>
402 <td class="paramkey"></td>
404 <td class="paramtype">uint32_t </td>
405 <td class="paramname"><em>ptsCnt</em> </td>
414 <td class="mlabels-right">
415 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
418 </div><div class="memdoc">
420 <p>Appends a given sub-path to the path. </p>
421 <p>The current point value is set to the last point from the sub-path. For each command from the <code>cmds</code> array, an appropriate number of points in <code>pts</code> array should be specified.</p>
422 <dl class="params"><dt>Parameters</dt><dd>
423 <table class="params">
424 <tr><td class="paramdir">[in]</td><td class="paramname">cmds</td><td>The array of the commands in the sub-path. </td></tr>
425 <tr><td class="paramdir">[in]</td><td class="paramname">cmdCnt</td><td>The number of the sub-path's commands. </td></tr>
426 <tr><td class="paramdir">[in]</td><td class="paramname">pts</td><td>The array of the two-dimensional points. </td></tr>
427 <tr><td class="paramdir">[in]</td><td class="paramname">ptsCnt</td><td>The number of the points in the <code>pts</code> array.</td></tr>
431 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed, <a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066ae73a2e92f1c87086c838b442552a4775" title="The value returned in the event of a problem with the arguments given to the API - e...">Result::InvalidArguments</a> otherwise.</dd></dl>
432 <dl class="section note"><dt>Note</dt><dd>The interface is designed for optimal path setting if the caller has a completed path commands already. </dd></dl>
436 <a id="a676c64ce75c274ce75032606d33b03da"></a>
437 <h2 class="memtitle"><span class="permalink"><a href="#a676c64ce75c274ce75032606d33b03da">◆ </a></span>appendRect()</h2>
439 <div class="memitem">
440 <div class="memproto">
441 <table class="mlabels">
443 <td class="mlabels-left">
444 <table class="memname">
446 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendRect </td>
448 <td class="paramtype">float </td>
449 <td class="paramname"><em>x</em>, </td>
452 <td class="paramkey"></td>
454 <td class="paramtype">float </td>
455 <td class="paramname"><em>y</em>, </td>
458 <td class="paramkey"></td>
460 <td class="paramtype">float </td>
461 <td class="paramname"><em>w</em>, </td>
464 <td class="paramkey"></td>
466 <td class="paramtype">float </td>
467 <td class="paramname"><em>h</em>, </td>
470 <td class="paramkey"></td>
472 <td class="paramtype">float </td>
473 <td class="paramname"><em>rx</em>, </td>
476 <td class="paramkey"></td>
478 <td class="paramtype">float </td>
479 <td class="paramname"><em>ry</em> </td>
488 <td class="mlabels-right">
489 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
492 </div><div class="memdoc">
494 <p>Appends a rectangle to the path. </p>
495 <p>The rectangle with rounded corners can be achieved by setting non-zero values to <code>rx</code> and <code>ry</code> arguments. The <code>rx</code> and <code>ry</code> values specify the radii of the ellipse defining the rounding of the corners.</p>
496 <p>The position of the rectangle is specified by the coordinates of its upper left corner - <code>x</code> and <code>y</code> arguments.</p>
497 <p>The rectangle is treated as a new sub-path - it is not connected with the previous sub-path.</p>
498 <p>The value of the current point is set to (<code>x</code> + <code>rx</code>, <code>y</code>) - in case <code>rx</code> is greater than <code>w/2</code> the current point is set to (<code>x</code> + <code>w/2</code>, <code>y</code>)</p>
499 <dl class="params"><dt>Parameters</dt><dd>
500 <table class="params">
501 <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The horizontal coordinate of the upper left corner of the rectangle. </td></tr>
502 <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The vertical coordinate of the upper left corner of the rectangle. </td></tr>
503 <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>The width of the rectangle. </td></tr>
504 <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>The height of the rectangle. </td></tr>
505 <tr><td class="paramdir">[in]</td><td class="paramname">rx</td><td>The x-axis radius of the ellipse defining the rounded corners of the rectangle. </td></tr>
506 <tr><td class="paramdir">[in]</td><td class="paramname">ry</td><td>The y-axis radius of the ellipse defining the rounded corners of the rectangle.</td></tr>
510 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed.</dd></dl>
511 <dl class="section note"><dt>Note</dt><dd>For <code>rx</code> and <code>ry</code> greater than or equal to the half of <code>w</code> and the half of <code>h</code>, respectively, the shape become an ellipse. </dd></dl>
515 <a id="a2765987a2641ac1db76d5c64f00da697"></a>
516 <h2 class="memtitle"><span class="permalink"><a href="#a2765987a2641ac1db76d5c64f00da697">◆ </a></span>close()</h2>
518 <div class="memitem">
519 <div class="memproto">
520 <table class="mlabels">
522 <td class="mlabels-left">
523 <table class="memname">
525 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> close </td>
527 <td class="paramname"></td><td>)</td>
532 <td class="mlabels-right">
533 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
536 </div><div class="memdoc">
538 <p>Closes the current sub-path by drawing a line from the current point to the initial point of the sub-path. </p>
539 <p>The value of the current point is set to the initial point of the closed sub-path.</p>
540 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed.</dd></dl>
541 <dl class="section note"><dt>Note</dt><dd>In case the sub-path does not contain any points, this function has no effect. </dd></dl>
545 <a id="a7b71316176172fa052373bdb7c9efd29"></a>
546 <h2 class="memtitle"><span class="permalink"><a href="#a7b71316176172fa052373bdb7c9efd29">◆ </a></span>cubicTo()</h2>
548 <div class="memitem">
549 <div class="memproto">
550 <table class="mlabels">
552 <td class="mlabels-left">
553 <table class="memname">
555 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> cubicTo </td>
557 <td class="paramtype">float </td>
558 <td class="paramname"><em>cx1</em>, </td>
561 <td class="paramkey"></td>
563 <td class="paramtype">float </td>
564 <td class="paramname"><em>cy1</em>, </td>
567 <td class="paramkey"></td>
569 <td class="paramtype">float </td>
570 <td class="paramname"><em>cx2</em>, </td>
573 <td class="paramkey"></td>
575 <td class="paramtype">float </td>
576 <td class="paramname"><em>cy2</em>, </td>
579 <td class="paramkey"></td>
581 <td class="paramtype">float </td>
582 <td class="paramname"><em>x</em>, </td>
585 <td class="paramkey"></td>
587 <td class="paramtype">float </td>
588 <td class="paramname"><em>y</em> </td>
597 <td class="mlabels-right">
598 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
601 </div><div class="memdoc">
603 <p>Adds new points to the sub-path, which results in drawing a cubic Bezier curve starting at the current point and ending at the given end-point (<code>x</code>, <code>y</code>) using the control points (<code>cx1</code>, <code>cy1</code>) and (<code>cx2</code>, <code>cy2</code>). </p>
604 <p>The value of the current point is set to the given end-point.</p>
605 <dl class="params"><dt>Parameters</dt><dd>
606 <table class="params">
607 <tr><td class="paramdir">[in]</td><td class="paramname">cx1</td><td>The horizontal coordinate of the 1st control point. </td></tr>
608 <tr><td class="paramdir">[in]</td><td class="paramname">cy1</td><td>The vertical coordinate of the 1st control point. </td></tr>
609 <tr><td class="paramdir">[in]</td><td class="paramname">cx2</td><td>The horizontal coordinate of the 2nd control point. </td></tr>
610 <tr><td class="paramdir">[in]</td><td class="paramname">cy2</td><td>The vertical coordinate of the 2nd control point. </td></tr>
611 <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The horizontal coordinate of the end-point of the curve. </td></tr>
612 <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The vertical coordinate of the end-point of the curve.</td></tr>
616 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed.</dd></dl>
617 <dl class="section note"><dt>Note</dt><dd>In case this is the first command in the path, no data from the path are rendered. </dd></dl>
621 <a id="ae25e3697b5df587d50b809f1faeeabd9"></a>
622 <h2 class="memtitle"><span class="permalink"><a href="#ae25e3697b5df587d50b809f1faeeabd9">◆ </a></span>fill() <span class="overload">[1/4]</span></h2>
624 <div class="memitem">
625 <div class="memproto">
626 <table class="mlabels">
628 <td class="mlabels-left">
629 <table class="memname">
631 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fill </td>
633 <td class="paramtype">uint8_t </td>
634 <td class="paramname"><em>r</em>, </td>
637 <td class="paramkey"></td>
639 <td class="paramtype">uint8_t </td>
640 <td class="paramname"><em>g</em>, </td>
643 <td class="paramkey"></td>
645 <td class="paramtype">uint8_t </td>
646 <td class="paramname"><em>b</em>, </td>
649 <td class="paramkey"></td>
651 <td class="paramtype">uint8_t </td>
652 <td class="paramname"><em>a</em> </td>
661 <td class="mlabels-right">
662 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
665 </div><div class="memdoc">
667 <p>Sets the solid color for all of the figures from the path. </p>
668 <p>The parts of the shape defined as inner are colored.</p>
669 <dl class="params"><dt>Parameters</dt><dd>
670 <table class="params">
671 <tr><td class="paramdir">[in]</td><td class="paramname">r</td><td>The red color channel value in the range [0 ~ 255]. The default value is 0. </td></tr>
672 <tr><td class="paramdir">[in]</td><td class="paramname">g</td><td>The green color channel value in the range [0 ~ 255]. The default value is 0. </td></tr>
673 <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>The blue color channel value in the range [0 ~ 255]. The default value is 0. </td></tr>
674 <tr><td class="paramdir">[in]</td><td class="paramname">a</td><td>The alpha channel value in the range [0 ~ 255], where 0 is completely transparent and 255 is opaque. The default value is 0.</td></tr>
678 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed.</dd></dl>
679 <dl class="section note"><dt>Note</dt><dd>Either a solid color or a gradient fill is applied, depending on what was set as last. </dd></dl>
683 <a id="ad0cb7b2ec8d18d7c6d366cc84741682c"></a>
684 <h2 class="memtitle"><span class="permalink"><a href="#ad0cb7b2ec8d18d7c6d366cc84741682c">◆ </a></span>fill() <span class="overload">[2/4]</span></h2>
686 <div class="memitem">
687 <div class="memproto">
688 <table class="mlabels">
690 <td class="mlabels-left">
691 <table class="memname">
693 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fill </td>
695 <td class="paramtype">std::unique_ptr< <a class="el" href="classtvg_1_1Fill.html">Fill</a> > </td>
696 <td class="paramname"><em>f</em></td><td>)</td>
701 <td class="mlabels-right">
702 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
705 </div><div class="memdoc">
707 <p>Sets the gradient fill for all of the figures from the path. </p>
708 <p>The parts of the shape defined as inner are filled.</p>
709 <dl class="params"><dt>Parameters</dt><dd>
710 <table class="params">
711 <tr><td class="paramdir">[in]</td><td class="paramname">f</td><td>The unique pointer to the gradient fill.</td></tr>
715 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed, <a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066ae8c0c653fcac575c31470f0f800991c6" title="The value returned in the event of bad memory handling - e.g. failing in pointer releasing or casting...">Result::MemoryCorruption</a> otherwise.</dd></dl>
716 <dl class="section note"><dt>Note</dt><dd>Either a solid color or a gradient fill is applied, depending on what was set as last. </dd></dl>
720 <a id="a02b95c15d0c2006134a95cdadf64e3f4"></a>
721 <h2 class="memtitle"><span class="permalink"><a href="#a02b95c15d0c2006134a95cdadf64e3f4">◆ </a></span>fill() <span class="overload">[3/4]</span></h2>
723 <div class="memitem">
724 <div class="memproto">
725 <table class="mlabels">
727 <td class="mlabels-left">
728 <table class="memname">
730 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fill </td>
732 <td class="paramtype"><a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a> </td>
733 <td class="paramname"><em>r</em></td><td>)</td>
738 <td class="mlabels-right">
739 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
742 </div><div class="memdoc">
744 <p>Sets the fill rule for the <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties. ">Shape</a> object. </p>
745 <dl class="params"><dt>Parameters</dt><dd>
746 <table class="params">
747 <tr><td class="paramdir">[in]</td><td class="paramname">r</td><td>The fill rule value.</td></tr>
751 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed. </dd></dl>
755 <a id="a989edf4b4f68532ff25004fc0c7fe826"></a>
756 <h2 class="memtitle"><span class="permalink"><a href="#a989edf4b4f68532ff25004fc0c7fe826">◆ </a></span>fill() <span class="overload">[4/4]</span></h2>
758 <div class="memitem">
759 <div class="memproto">
760 <table class="mlabels">
762 <td class="mlabels-left">
763 <table class="memname">
765 <td class="memname">const <a class="el" href="classtvg_1_1Fill.html">Fill</a>* fill </td>
767 <td class="paramname"></td><td>)</td>
772 <td class="mlabels-right">
773 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
776 </div><div class="memdoc">
778 <p>Gets the pointer to the gradient fill of the shape. </p>
779 <dl class="section return"><dt>Returns</dt><dd>The pointer to the gradient fill of the stroke when succeed, <code>nullptr</code> in case no fill was set. </dd></dl>
783 <a id="afc81d85ad3fb3f006abf835311a0acfc"></a>
784 <h2 class="memtitle"><span class="permalink"><a href="#afc81d85ad3fb3f006abf835311a0acfc">◆ </a></span>fillColor()</h2>
786 <div class="memitem">
787 <div class="memproto">
788 <table class="mlabels">
790 <td class="mlabels-left">
791 <table class="memname">
793 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fillColor </td>
795 <td class="paramtype">uint8_t * </td>
796 <td class="paramname"><em>r</em>, </td>
799 <td class="paramkey"></td>
801 <td class="paramtype">uint8_t * </td>
802 <td class="paramname"><em>g</em>, </td>
805 <td class="paramkey"></td>
807 <td class="paramtype">uint8_t * </td>
808 <td class="paramname"><em>b</em>, </td>
811 <td class="paramkey"></td>
813 <td class="paramtype">uint8_t * </td>
814 <td class="paramname"><em>a</em> </td>
819 <td></td><td> const</td>
823 <td class="mlabels-right">
824 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
827 </div><div class="memdoc">
829 <p>Gets the solid color of the shape. </p>
830 <dl class="params"><dt>Parameters</dt><dd>
831 <table class="params">
832 <tr><td class="paramdir">[out]</td><td class="paramname">r</td><td>The red color channel value in the range [0 ~ 255]. </td></tr>
833 <tr><td class="paramdir">[out]</td><td class="paramname">g</td><td>The green color channel value in the range [0 ~ 255]. </td></tr>
834 <tr><td class="paramdir">[out]</td><td class="paramname">b</td><td>The blue color channel value in the range [0 ~ 255]. </td></tr>
835 <tr><td class="paramdir">[out]</td><td class="paramname">a</td><td>The alpha channel value in the range [0 ~ 255], where 0 is completely transparent and 255 is opaque.</td></tr>
839 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed. </dd></dl>
843 <a id="ac14cd997439012e1abf6c1b8d9f3d4aa"></a>
844 <h2 class="memtitle"><span class="permalink"><a href="#ac14cd997439012e1abf6c1b8d9f3d4aa">◆ </a></span>fillRule()</h2>
846 <div class="memitem">
847 <div class="memproto">
848 <table class="mlabels">
850 <td class="mlabels-left">
851 <table class="memname">
853 <td class="memname"><a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a> fillRule </td>
855 <td class="paramname"></td><td>)</td>
860 <td class="mlabels-right">
861 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
864 </div><div class="memdoc">
866 <p>Gets the fill rule value. </p>
867 <dl class="section return"><dt>Returns</dt><dd>The fill rule value of the shape. </dd></dl>
871 <a id="aa91a801f4f9e8fd8e1567d014c280cb9"></a>
872 <h2 class="memtitle"><span class="permalink"><a href="#aa91a801f4f9e8fd8e1567d014c280cb9">◆ </a></span>gen()</h2>
874 <div class="memitem">
875 <div class="memproto">
876 <table class="mlabels">
878 <td class="mlabels-left">
879 <table class="memname">
881 <td class="memname">static std::unique_ptr<<a class="el" href="classtvg_1_1Shape.html">Shape</a>> gen </td>
883 <td class="paramname"></td><td>)</td>
888 <td class="mlabels-right">
889 <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span> </td>
892 </div><div class="memdoc">
894 <p>Creates a new <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties. ">Shape</a> object. </p>
895 <dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties. ">Shape</a> object. </dd></dl>
899 <a id="a9c28e9bbc6bd22dc62e891ffb3fa02cd"></a>
900 <h2 class="memtitle"><span class="permalink"><a href="#a9c28e9bbc6bd22dc62e891ffb3fa02cd">◆ </a></span>lineTo()</h2>
902 <div class="memitem">
903 <div class="memproto">
904 <table class="mlabels">
906 <td class="mlabels-left">
907 <table class="memname">
909 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> lineTo </td>
911 <td class="paramtype">float </td>
912 <td class="paramname"><em>x</em>, </td>
915 <td class="paramkey"></td>
917 <td class="paramtype">float </td>
918 <td class="paramname"><em>y</em> </td>
927 <td class="mlabels-right">
928 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
931 </div><div class="memdoc">
933 <p>Adds a new point to the sub-path, which results in drawing a line from the current point to the given end-point. </p>
934 <p>The value of the current point is set to the given end-point.</p>
935 <dl class="params"><dt>Parameters</dt><dd>
936 <table class="params">
937 <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The horizontal coordinate of the end-point of the line. </td></tr>
938 <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The vertical coordinate of the end-point of the line.</td></tr>
942 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed.</dd></dl>
943 <dl class="section note"><dt>Note</dt><dd>In case this is the first command in the path, it corresponds to the <a class="el" href="classtvg_1_1Shape.html#a59f97aaa973af7c58081690433286461" title="Sets the initial point of the sub-path. ">moveTo()</a> call. </dd></dl>
947 <a id="a59f97aaa973af7c58081690433286461"></a>
948 <h2 class="memtitle"><span class="permalink"><a href="#a59f97aaa973af7c58081690433286461">◆ </a></span>moveTo()</h2>
950 <div class="memitem">
951 <div class="memproto">
952 <table class="mlabels">
954 <td class="mlabels-left">
955 <table class="memname">
957 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> moveTo </td>
959 <td class="paramtype">float </td>
960 <td class="paramname"><em>x</em>, </td>
963 <td class="paramkey"></td>
965 <td class="paramtype">float </td>
966 <td class="paramname"><em>y</em> </td>
975 <td class="mlabels-right">
976 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
979 </div><div class="memdoc">
981 <p>Sets the initial point of the sub-path. </p>
982 <p>The value of the current point is set to the given point.</p>
983 <dl class="params"><dt>Parameters</dt><dd>
984 <table class="params">
985 <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The horizontal coordinate of the initial point of the sub-path. </td></tr>
986 <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The vertical coordinate of the initial point of the sub-path.</td></tr>
990 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed. </dd></dl>
994 <a id="ac14d90c2c0130b66a9a33eb7d08101b7"></a>
995 <h2 class="memtitle"><span class="permalink"><a href="#ac14d90c2c0130b66a9a33eb7d08101b7">◆ </a></span>pathCommands()</h2>
997 <div class="memitem">
998 <div class="memproto">
999 <table class="mlabels">
1001 <td class="mlabels-left">
1002 <table class="memname">
1004 <td class="memname">uint32_t pathCommands </td>
1006 <td class="paramtype">const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> ** </td>
1007 <td class="paramname"><em>cmds</em></td><td>)</td>
1012 <td class="mlabels-right">
1013 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1016 </div><div class="memdoc">
1018 <p>Gets the commands data of the path. </p>
1019 <dl class="params"><dt>Parameters</dt><dd>
1020 <table class="params">
1021 <tr><td class="paramdir">[out]</td><td class="paramname">cmds</td><td>The pointer to the array of the commands from the path.</td></tr>
1025 <dl class="section return"><dt>Returns</dt><dd>The length of the <code>cmds</code> array when succeed, zero otherwise. </dd></dl>
1029 <a id="a818b1b358f0ed7ba448b6d804e087923"></a>
1030 <h2 class="memtitle"><span class="permalink"><a href="#a818b1b358f0ed7ba448b6d804e087923">◆ </a></span>pathCoords()</h2>
1032 <div class="memitem">
1033 <div class="memproto">
1034 <table class="mlabels">
1036 <td class="mlabels-left">
1037 <table class="memname">
1039 <td class="memname">uint32_t pathCoords </td>
1041 <td class="paramtype">const <a class="el" href="structtvg_1_1Point.html">Point</a> ** </td>
1042 <td class="paramname"><em>pts</em></td><td>)</td>
1047 <td class="mlabels-right">
1048 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1051 </div><div class="memdoc">
1053 <p>Gets the points values of the path. </p>
1054 <dl class="params"><dt>Parameters</dt><dd>
1055 <table class="params">
1056 <tr><td class="paramdir">[out]</td><td class="paramname">pts</td><td>The pointer to the array of the two-dimensional points from the path.</td></tr>
1060 <dl class="section return"><dt>Returns</dt><dd>The length of the <code>pts</code> array when succeed, zero otherwise. </dd></dl>
1064 <a id="a8014640e362066901c2e2ebe6ddd1251"></a>
1065 <h2 class="memtitle"><span class="permalink"><a href="#a8014640e362066901c2e2ebe6ddd1251">◆ </a></span>reset()</h2>
1067 <div class="memitem">
1068 <div class="memproto">
1069 <table class="mlabels">
1071 <td class="mlabels-left">
1072 <table class="memname">
1074 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> reset </td>
1076 <td class="paramname"></td><td>)</td>
1081 <td class="mlabels-right">
1082 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1085 </div><div class="memdoc">
1087 <p>Resets the properties of the shape path. </p>
1088 <p>The color, the fill and the stroke properties are retained.</p>
1089 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed.</dd></dl>
1090 <dl class="section note"><dt>Note</dt><dd>The memory, where the path data is stored, is not deallocated at this stage for caching effect. </dd></dl>
1094 <a id="a5ce764cd1970c7a7d76b209c4441bc73"></a>
1095 <h2 class="memtitle"><span class="permalink"><a href="#a5ce764cd1970c7a7d76b209c4441bc73">◆ </a></span>stroke() <span class="overload">[1/6]</span></h2>
1097 <div class="memitem">
1098 <div class="memproto">
1099 <table class="mlabels">
1101 <td class="mlabels-left">
1102 <table class="memname">
1104 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1106 <td class="paramtype">float </td>
1107 <td class="paramname"><em>width</em></td><td>)</td>
1112 <td class="mlabels-right">
1113 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1116 </div><div class="memdoc">
1118 <p>Sets the stroke width for all of the figures from the path. </p>
1119 <dl class="params"><dt>Parameters</dt><dd>
1120 <table class="params">
1121 <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>The width of the stroke. The default value is 0.</td></tr>
1125 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed, <a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066abc2b4181e818f2e9b52b2bc54dd55907" title="The value returned in case of unsuccessful memory allocation. ">Result::FailedAllocation</a> otherwise. </dd></dl>
1129 <a id="a68a4822b30573cf4f02195b249218e4e"></a>
1130 <h2 class="memtitle"><span class="permalink"><a href="#a68a4822b30573cf4f02195b249218e4e">◆ </a></span>stroke() <span class="overload">[2/6]</span></h2>
1132 <div class="memitem">
1133 <div class="memproto">
1134 <table class="mlabels">
1136 <td class="mlabels-left">
1137 <table class="memname">
1139 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1141 <td class="paramtype">uint8_t </td>
1142 <td class="paramname"><em>r</em>, </td>
1145 <td class="paramkey"></td>
1147 <td class="paramtype">uint8_t </td>
1148 <td class="paramname"><em>g</em>, </td>
1151 <td class="paramkey"></td>
1153 <td class="paramtype">uint8_t </td>
1154 <td class="paramname"><em>b</em>, </td>
1157 <td class="paramkey"></td>
1159 <td class="paramtype">uint8_t </td>
1160 <td class="paramname"><em>a</em> </td>
1169 <td class="mlabels-right">
1170 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1173 </div><div class="memdoc">
1175 <p>Sets the color of the stroke for all of the figures from the path. </p>
1176 <dl class="params"><dt>Parameters</dt><dd>
1177 <table class="params">
1178 <tr><td class="paramdir">[in]</td><td class="paramname">r</td><td>The red color channel value in the range [0 ~ 255]. The default value is 0. </td></tr>
1179 <tr><td class="paramdir">[in]</td><td class="paramname">g</td><td>The green color channel value in the range [0 ~ 255]. The default value is 0. </td></tr>
1180 <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>The blue color channel value in the range [0 ~ 255]. The default value is 0. </td></tr>
1181 <tr><td class="paramdir">[in]</td><td class="paramname">a</td><td>The alpha channel value in the range [0 ~ 255], where 0 is completely transparent and 255 is opaque. The default value is 0.</td></tr>
1185 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed, <a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066abc2b4181e818f2e9b52b2bc54dd55907" title="The value returned in case of unsuccessful memory allocation. ">Result::FailedAllocation</a> otherwise. </dd></dl>
1189 <a id="ab0b09b5064dff4931db9ea898b36dcc1"></a>
1190 <h2 class="memtitle"><span class="permalink"><a href="#ab0b09b5064dff4931db9ea898b36dcc1">◆ </a></span>stroke() <span class="overload">[3/6]</span></h2>
1192 <div class="memitem">
1193 <div class="memproto">
1194 <table class="mlabels">
1196 <td class="mlabels-left">
1197 <table class="memname">
1199 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1201 <td class="paramtype">std::unique_ptr< <a class="el" href="classtvg_1_1Fill.html">Fill</a> > </td>
1202 <td class="paramname"><em>f</em></td><td>)</td>
1207 <td class="mlabels-right">
1208 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1211 </div><div class="memdoc">
1213 <p>Sets the gradient fill of the stroke for all of the figures from the path. </p>
1214 <dl class="params"><dt>Parameters</dt><dd>
1215 <table class="params">
1216 <tr><td class="paramdir">[in]</td><td class="paramname">f</td><td>The gradient fill.</td></tr>
1220 <dl class="retval"><dt>Return values</dt><dd>
1221 <table class="retval">
1222 <tr><td class="paramname"><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a></td><td>When succeed. </td></tr>
1223 <tr><td class="paramname"><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066abc2b4181e818f2e9b52b2bc54dd55907" title="The value returned in case of unsuccessful memory allocation. ">Result::FailedAllocation</a></td><td>An internal error with a memory allocation for an object to be filled. </td></tr>
1224 <tr><td class="paramname"><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066ae8c0c653fcac575c31470f0f800991c6" title="The value returned in the event of bad memory handling - e.g. failing in pointer releasing or casting...">Result::MemoryCorruption</a></td><td>In case a <code>nullptr</code> is passed as the argument. </td></tr>
1231 <a id="ae79102d63897ad86a96afb4436c731e4"></a>
1232 <h2 class="memtitle"><span class="permalink"><a href="#ae79102d63897ad86a96afb4436c731e4">◆ </a></span>stroke() <span class="overload">[4/6]</span></h2>
1234 <div class="memitem">
1235 <div class="memproto">
1236 <table class="mlabels">
1238 <td class="mlabels-left">
1239 <table class="memname">
1241 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1243 <td class="paramtype">const float * </td>
1244 <td class="paramname"><em>dashPattern</em>, </td>
1247 <td class="paramkey"></td>
1249 <td class="paramtype">uint32_t </td>
1250 <td class="paramname"><em>cnt</em> </td>
1259 <td class="mlabels-right">
1260 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1263 </div><div class="memdoc">
1265 <p>Sets the dash pattern of the stroke. </p>
1266 <dl class="params"><dt>Parameters</dt><dd>
1267 <table class="params">
1268 <tr><td class="paramdir">[in]</td><td class="paramname">dashPattern</td><td>The array of consecutive pair values of the dash length and the gap length. </td></tr>
1269 <tr><td class="paramdir">[in]</td><td class="paramname">cnt</td><td>The length of the <code>dashPattern</code> array.</td></tr>
1273 <dl class="retval"><dt>Return values</dt><dd>
1274 <table class="retval">
1275 <tr><td class="paramname"><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a></td><td>When succeed. </td></tr>
1276 <tr><td class="paramname"><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066abc2b4181e818f2e9b52b2bc54dd55907" title="The value returned in case of unsuccessful memory allocation. ">Result::FailedAllocation</a></td><td>An internal error with a memory allocation for an object to be dashed. </td></tr>
1277 <tr><td class="paramname"><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066ae73a2e92f1c87086c838b442552a4775" title="The value returned in the event of a problem with the arguments given to the API - e...">Result::InvalidArguments</a></td><td>In case a <code>nullptr</code> is passed as the <code>dashPattern</code>, the given length of the array is less than two or any of the <code>dashPattern</code> values is zero or less.</td></tr>
1281 <dl class="section note"><dt>Note</dt><dd>If any of the dash pattern values is zero, this function has no effect. </dd></dl>
1285 <a id="a39068c9686211de862844dacabf92375"></a>
1286 <h2 class="memtitle"><span class="permalink"><a href="#a39068c9686211de862844dacabf92375">◆ </a></span>stroke() <span class="overload">[5/6]</span></h2>
1288 <div class="memitem">
1289 <div class="memproto">
1290 <table class="mlabels">
1292 <td class="mlabels-left">
1293 <table class="memname">
1295 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1297 <td class="paramtype"><a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a> </td>
1298 <td class="paramname"><em>cap</em></td><td>)</td>
1303 <td class="mlabels-right">
1304 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1307 </div><div class="memdoc">
1309 <p>Sets the cap style of the stroke in the open sub-paths. </p>
1310 <dl class="params"><dt>Parameters</dt><dd>
1311 <table class="params">
1312 <tr><td class="paramdir">[in]</td><td class="paramname">cap</td><td>The cap style value. The default value is <code><a class="el" href="group__ThorVG.html#gga6239974a858100e129f1e0b8ffac4f96aceb46ca115d05c51aa5a16a8867c3304" title="The stroke is extended in both end-points of a sub-path by a rectangle, with the width equal to the s...">StrokeCap::Square</a></code>.</td></tr>
1316 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed, <a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066abc2b4181e818f2e9b52b2bc54dd55907" title="The value returned in case of unsuccessful memory allocation. ">Result::FailedAllocation</a> otherwise. </dd></dl>
1320 <a id="ac416cad0d9e15079a112b1f609d19177"></a>
1321 <h2 class="memtitle"><span class="permalink"><a href="#ac416cad0d9e15079a112b1f609d19177">◆ </a></span>stroke() <span class="overload">[6/6]</span></h2>
1323 <div class="memitem">
1324 <div class="memproto">
1325 <table class="mlabels">
1327 <td class="mlabels-left">
1328 <table class="memname">
1330 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1332 <td class="paramtype"><a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a> </td>
1333 <td class="paramname"><em>join</em></td><td>)</td>
1338 <td class="mlabels-right">
1339 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1342 </div><div class="memdoc">
1344 <p>Sets the join style for stroked path segments. </p>
1345 <p>The join style is used for joining the two line segment while stroking the path.</p>
1346 <dl class="params"><dt>Parameters</dt><dd>
1347 <table class="params">
1348 <tr><td class="paramdir">[in]</td><td class="paramname">join</td><td>The join style value. The default value is <code><a class="el" href="group__ThorVG.html#ggaba8b7236c41a171289aef2f3c71eef51a1b9ae4ca6d43fc984af318046e1e7bb5" title="The outer corner of the joined path segments is bevelled at the join point. The triangular region of ...">StrokeJoin::Bevel</a></code>.</td></tr>
1352 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed, <a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066abc2b4181e818f2e9b52b2bc54dd55907" title="The value returned in case of unsuccessful memory allocation. ">Result::FailedAllocation</a> otherwise. </dd></dl>
1356 <a id="a0948989a7f0a9e253234cd9f53784674"></a>
1357 <h2 class="memtitle"><span class="permalink"><a href="#a0948989a7f0a9e253234cd9f53784674">◆ </a></span>strokeCap()</h2>
1359 <div class="memitem">
1360 <div class="memproto">
1361 <table class="mlabels">
1363 <td class="mlabels-left">
1364 <table class="memname">
1366 <td class="memname"><a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a> strokeCap </td>
1368 <td class="paramname"></td><td>)</td>
1373 <td class="mlabels-right">
1374 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1377 </div><div class="memdoc">
1379 <p>Gets the cap style used for stroking the path. </p>
1380 <dl class="section return"><dt>Returns</dt><dd>The cap style value of the stroke. </dd></dl>
1384 <a id="a7b81219e058ae54e731c5702a1c61462"></a>
1385 <h2 class="memtitle"><span class="permalink"><a href="#a7b81219e058ae54e731c5702a1c61462">◆ </a></span>strokeColor()</h2>
1387 <div class="memitem">
1388 <div class="memproto">
1389 <table class="mlabels">
1391 <td class="mlabels-left">
1392 <table class="memname">
1394 <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> strokeColor </td>
1396 <td class="paramtype">uint8_t * </td>
1397 <td class="paramname"><em>r</em>, </td>
1400 <td class="paramkey"></td>
1402 <td class="paramtype">uint8_t * </td>
1403 <td class="paramname"><em>g</em>, </td>
1406 <td class="paramkey"></td>
1408 <td class="paramtype">uint8_t * </td>
1409 <td class="paramname"><em>b</em>, </td>
1412 <td class="paramkey"></td>
1414 <td class="paramtype">uint8_t * </td>
1415 <td class="paramname"><em>a</em> </td>
1420 <td></td><td> const</td>
1424 <td class="mlabels-right">
1425 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1428 </div><div class="memdoc">
1430 <p>Gets the color of the shape's stroke. </p>
1431 <dl class="params"><dt>Parameters</dt><dd>
1432 <table class="params">
1433 <tr><td class="paramdir">[out]</td><td class="paramname">r</td><td>The red color channel value in the range [0 ~ 255]. </td></tr>
1434 <tr><td class="paramdir">[out]</td><td class="paramname">g</td><td>The green color channel value in the range [0 ~ 255]. </td></tr>
1435 <tr><td class="paramdir">[out]</td><td class="paramname">b</td><td>The blue color channel value in the range [0 ~ 255]. </td></tr>
1436 <tr><td class="paramdir">[out]</td><td class="paramname">a</td><td>The alpha channel value in the range [0 ~ 255], where 0 is completely transparent and 255 is opaque.</td></tr>
1440 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a505a83f220c02df2f85c3810cd9ceb38" title="The value returned in case of a correct request execution. ">Result::Success</a> when succeed, <a class="el" href="group__ThorVG.html#gga28287671eaf7406afd604bd055ba4066a119732ff568bf103d744e930ae2404f1" title="The value returned in case the request cannot be processed - e.g. asking for properties of an object...">Result::InsufficientCondition</a> otherwise. </dd></dl>
1444 <a id="afbc1e469219ee86df47d216f58af282a"></a>
1445 <h2 class="memtitle"><span class="permalink"><a href="#afbc1e469219ee86df47d216f58af282a">◆ </a></span>strokeDash()</h2>
1447 <div class="memitem">
1448 <div class="memproto">
1449 <table class="mlabels">
1451 <td class="mlabels-left">
1452 <table class="memname">
1454 <td class="memname">uint32_t strokeDash </td>
1456 <td class="paramtype">const float ** </td>
1457 <td class="paramname"><em>dashPattern</em></td><td>)</td>
1462 <td class="mlabels-right">
1463 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1466 </div><div class="memdoc">
1468 <p>Gets the dash pattern of the stroke. </p>
1469 <dl class="params"><dt>Parameters</dt><dd>
1470 <table class="params">
1471 <tr><td class="paramdir">[out]</td><td class="paramname">dashPattern</td><td>The pointer to the memory, where the dash pattern array is stored.</td></tr>
1475 <dl class="section return"><dt>Returns</dt><dd>The length of the <code>dashPattern</code> array. </dd></dl>
1479 <a id="a08ce41b2d01d2d43980e5c26f4df111e"></a>
1480 <h2 class="memtitle"><span class="permalink"><a href="#a08ce41b2d01d2d43980e5c26f4df111e">◆ </a></span>strokeFill()</h2>
1482 <div class="memitem">
1483 <div class="memproto">
1484 <table class="mlabels">
1486 <td class="mlabels-left">
1487 <table class="memname">
1489 <td class="memname">const <a class="el" href="classtvg_1_1Fill.html">Fill</a>* strokeFill </td>
1491 <td class="paramname"></td><td>)</td>
1496 <td class="mlabels-right">
1497 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1500 </div><div class="memdoc">
1502 <p>Gets the pointer to the gradient fill of the stroke. </p>
1503 <dl class="section return"><dt>Returns</dt><dd>The pointer to the gradient fill of the stroke when succeed, <code>nullptr</code> otherwise. </dd></dl>
1507 <a id="aac0235df4172e9c079689e5291c7ad5a"></a>
1508 <h2 class="memtitle"><span class="permalink"><a href="#aac0235df4172e9c079689e5291c7ad5a">◆ </a></span>strokeJoin()</h2>
1510 <div class="memitem">
1511 <div class="memproto">
1512 <table class="mlabels">
1514 <td class="mlabels-left">
1515 <table class="memname">
1517 <td class="memname"><a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a> strokeJoin </td>
1519 <td class="paramname"></td><td>)</td>
1524 <td class="mlabels-right">
1525 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1528 </div><div class="memdoc">
1530 <p>Gets the join style value used for stroking the path. </p>
1531 <dl class="section return"><dt>Returns</dt><dd>The join style value of the stroke. </dd></dl>
1535 <a id="a1536ec32e91c29dd8300b0d4354773f9"></a>
1536 <h2 class="memtitle"><span class="permalink"><a href="#a1536ec32e91c29dd8300b0d4354773f9">◆ </a></span>strokeWidth()</h2>
1538 <div class="memitem">
1539 <div class="memproto">
1540 <table class="mlabels">
1542 <td class="mlabels-left">
1543 <table class="memname">
1545 <td class="memname">float strokeWidth </td>
1547 <td class="paramname"></td><td>)</td>
1552 <td class="mlabels-right">
1553 <span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
1556 </div><div class="memdoc">
1558 <p>Gets the stroke width. </p>
1559 <dl class="section return"><dt>Returns</dt><dd>The stroke width value when succeed, zero if no stroke was set. </dd></dl>
1563 </div><!-- contents -->
1564 </div><!-- doc-content -->
1565 <!-- start footer part -->
1566 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
1568 <li class="navelem"><b>tvg</b></li><li class="navelem"><a class="el" href="classtvg_1_1Shape.html">Shape</a></li>
1569 <li class="footer">Generated by
1570 <a href="http://www.doxygen.org/index.html">
1571 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>