fb4d7c89934ba0c37974db1d688320683510f323
[platform/core/graphics/tizenvg.git] / docs / html / classtvg_1_1Shape.html
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">
3 <head>
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);
18 </script>
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"/>
24 </head>
25 <body>
26 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
27 <div id="titlearea">
28 <table cellspacing="0" cellpadding="0">
29  <tbody>
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    &#160;<span id="projectnumber">v0.1</span>
35    </div>
36    <div id="projectbrief">ThorVG is a platform-independent portable library for drawing vector-based scene and animation. It&#39;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>
37   </td>
38  </tr>
39  </tbody>
40 </table>
41 </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');
46 </script>
47 <script type="text/javascript" src="menudata.js"></script>
48 <script type="text/javascript" src="menu.js"></script>
49 <script type="text/javascript">
50 $(function() {
51   initMenu('',true,false,'search.php','Search');
52   $(document).ready(function() { init_search(); });
53 });
54 </script>
55 <div id="main-nav"></div>
56 </div><!-- top -->
57 <div id="side-nav" class="ui-resizable side-nav-resizable">
58   <div id="nav-tree">
59     <div id="nav-tree-contents">
60       <div id="nav-sync" class="sync"></div>
61     </div>
62   </div>
63   <div id="splitbar" style="-moz-user-select:none;" 
64        class="ui-resizable-handle">
65   </div>
66 </div>
67 <script type="text/javascript">
68 $(document).ready(function(){initNavTree('classtvg_1_1Shape.html','');});
69 </script>
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)">
76 </div>
77
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">
82 </iframe>
83 </div>
84
85 <div class="header">
86   <div class="summary">
87 <a href="#pub-methods">Public Member Functions</a> &#124;
88 <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
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>
92 </div><!--header-->
93 <div class="contents">
94
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"/>
103 </map>
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>&#160;</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">&#160;</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">&#160;</td></tr>
111 <tr class="memitem:a59f97aaa973af7c58081690433286461"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
114 <tr class="memitem:a9c28e9bbc6bd22dc62e891ffb3fa02cd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
117 <tr class="memitem:a7b71316176172fa052373bdb7c9efd29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
120 <tr class="memitem:a2765987a2641ac1db76d5c64f00da697"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
123 <tr class="memitem:a676c64ce75c274ce75032606d33b03da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
126 <tr class="memitem:a52eccb2815eaa1231da9c389cd92ffa1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
129 <tr class="memitem:a2f003a843ff42f6cee6a726f543836e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
132 <tr class="memitem:a3588ea30776a747a22b6ee82dadb9717"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
135 <tr class="memitem:a5ce764cd1970c7a7d76b209c4441bc73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
138 <tr class="memitem:a68a4822b30573cf4f02195b249218e4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
141 <tr class="memitem:ab0b09b5064dff4931db9ea898b36dcc1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ab0b09b5064dff4931db9ea898b36dcc1">stroke</a> (std::unique_ptr&lt; <a class="el" href="classtvg_1_1Fill.html">Fill</a> &gt; f) noexcept</td></tr>
142 <tr class="memdesc:ab0b09b5064dff4931db9ea898b36dcc1"><td class="mdescLeft">&#160;</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">&#160;</td></tr>
144 <tr class="memitem:ae79102d63897ad86a96afb4436c731e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
147 <tr class="memitem:a39068c9686211de862844dacabf92375"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
150 <tr class="memitem:ac416cad0d9e15079a112b1f609d19177"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
153 <tr class="memitem:ae25e3697b5df587d50b809f1faeeabd9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
156 <tr class="memitem:ad0cb7b2ec8d18d7c6d366cc84741682c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ad0cb7b2ec8d18d7c6d366cc84741682c">fill</a> (std::unique_ptr&lt; <a class="el" href="classtvg_1_1Fill.html">Fill</a> &gt; f) noexcept</td></tr>
157 <tr class="memdesc:ad0cb7b2ec8d18d7c6d366cc84741682c"><td class="mdescLeft">&#160;</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">&#160;</td></tr>
159 <tr class="memitem:a02b95c15d0c2006134a95cdadf64e3f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
162 <tr class="memitem:ac14d90c2c0130b66a9a33eb7d08101b7"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</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">&#160;</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">&#160;</td></tr>
165 <tr class="memitem:a818b1b358f0ed7ba448b6d804e087923"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</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">&#160;</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">&#160;</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> *&#160;</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">&#160;</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">&#160;</td></tr>
171 <tr class="memitem:afc81d85ad3fb3f006abf835311a0acfc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</td></tr>
174 <tr class="memitem:ac14cd997439012e1abf6c1b8d9f3d4aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a>&#160;</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">&#160;</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">&#160;</td></tr>
177 <tr class="memitem:a1536ec32e91c29dd8300b0d4354773f9"><td class="memItemLeft" align="right" valign="top">float&#160;</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">&#160;</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">&#160;</td></tr>
180 <tr class="memitem:a7b81219e058ae54e731c5702a1c61462"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a>&#160;</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">&#160;</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">&#160;</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> *&#160;</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">&#160;</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">&#160;</td></tr>
186 <tr class="memitem:afbc1e469219ee86df47d216f58af282a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</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">&#160;</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">&#160;</td></tr>
189 <tr class="memitem:a0948989a7f0a9e253234cd9f53784674"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a>&#160;</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">&#160;</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">&#160;</td></tr>
192 <tr class="memitem:aac0235df4172e9c079689e5291c7ad5a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a>&#160;</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">&#160;</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">&#160;</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="-"/>&#160;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>&#160;</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">&#160;</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">&#160;</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>&#160;</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">&#160;</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">&#160;</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>&#160;</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">&#160;</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">&#160;</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>&#160;</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> &amp;m) noexcept</td></tr>
206 <tr class="memdesc:ac9f6ba428afe884bcc2861de0a2a96f4 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft">&#160;</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">&#160;</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>&#160;</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">&#160;</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">&#160;</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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#aab93150647927b8f2006b5ae45b7b093">composite</a> (std::unique_ptr&lt; <a class="el" href="classtvg_1_1Paint.html">Paint</a> &gt; 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">&#160;</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">&#160;</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>&#160;</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">&#160;</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">&#160;</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> *&#160;</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">&#160;</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">&#160;</td></tr>
220 <tr class="memitem:a2ee7517b8bfad47e0f999ba3450e0e3e inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</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">&#160;</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">&#160;</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&lt; <a class="el" href="classtvg_1_1Shape.html">Shape</a> &gt;&#160;</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">&#160;</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">&#160;</td></tr>
229 </table>
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">&#9670;&nbsp;</a></span>appendArc()</h2>
237
238 <div class="memitem">
239 <div class="memproto">
240 <table class="mlabels">
241   <tr>
242   <td class="mlabels-left">
243       <table class="memname">
244         <tr>
245           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendArc </td>
246           <td>(</td>
247           <td class="paramtype">float&#160;</td>
248           <td class="paramname"><em>cx</em>, </td>
249         </tr>
250         <tr>
251           <td class="paramkey"></td>
252           <td></td>
253           <td class="paramtype">float&#160;</td>
254           <td class="paramname"><em>cy</em>, </td>
255         </tr>
256         <tr>
257           <td class="paramkey"></td>
258           <td></td>
259           <td class="paramtype">float&#160;</td>
260           <td class="paramname"><em>radius</em>, </td>
261         </tr>
262         <tr>
263           <td class="paramkey"></td>
264           <td></td>
265           <td class="paramtype">float&#160;</td>
266           <td class="paramname"><em>startAngle</em>, </td>
267         </tr>
268         <tr>
269           <td class="paramkey"></td>
270           <td></td>
271           <td class="paramtype">float&#160;</td>
272           <td class="paramname"><em>sweep</em>, </td>
273         </tr>
274         <tr>
275           <td class="paramkey"></td>
276           <td></td>
277           <td class="paramtype">bool&#160;</td>
278           <td class="paramname"><em>pie</em>&#160;</td>
279         </tr>
280         <tr>
281           <td></td>
282           <td>)</td>
283           <td></td><td></td>
284         </tr>
285       </table>
286   </td>
287   <td class="mlabels-right">
288 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
289   </tr>
290 </table>
291 </div><div class="memdoc">
292
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>
303   </table>
304   </dd>
305 </dl>
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>
308
309 </div>
310 </div>
311 <a id="a52eccb2815eaa1231da9c389cd92ffa1"></a>
312 <h2 class="memtitle"><span class="permalink"><a href="#a52eccb2815eaa1231da9c389cd92ffa1">&#9670;&nbsp;</a></span>appendCircle()</h2>
313
314 <div class="memitem">
315 <div class="memproto">
316 <table class="mlabels">
317   <tr>
318   <td class="mlabels-left">
319       <table class="memname">
320         <tr>
321           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendCircle </td>
322           <td>(</td>
323           <td class="paramtype">float&#160;</td>
324           <td class="paramname"><em>cx</em>, </td>
325         </tr>
326         <tr>
327           <td class="paramkey"></td>
328           <td></td>
329           <td class="paramtype">float&#160;</td>
330           <td class="paramname"><em>cy</em>, </td>
331         </tr>
332         <tr>
333           <td class="paramkey"></td>
334           <td></td>
335           <td class="paramtype">float&#160;</td>
336           <td class="paramname"><em>rx</em>, </td>
337         </tr>
338         <tr>
339           <td class="paramkey"></td>
340           <td></td>
341           <td class="paramtype">float&#160;</td>
342           <td class="paramname"><em>ry</em>&#160;</td>
343         </tr>
344         <tr>
345           <td></td>
346           <td>)</td>
347           <td></td><td></td>
348         </tr>
349       </table>
350   </td>
351   <td class="mlabels-right">
352 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
353   </tr>
354 </table>
355 </div><div class="memdoc">
356
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>
367   </table>
368   </dd>
369 </dl>
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>
371
372 </div>
373 </div>
374 <a id="a3588ea30776a747a22b6ee82dadb9717"></a>
375 <h2 class="memtitle"><span class="permalink"><a href="#a3588ea30776a747a22b6ee82dadb9717">&#9670;&nbsp;</a></span>appendPath()</h2>
376
377 <div class="memitem">
378 <div class="memproto">
379 <table class="mlabels">
380   <tr>
381   <td class="mlabels-left">
382       <table class="memname">
383         <tr>
384           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendPath </td>
385           <td>(</td>
386           <td class="paramtype">const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> *&#160;</td>
387           <td class="paramname"><em>cmds</em>, </td>
388         </tr>
389         <tr>
390           <td class="paramkey"></td>
391           <td></td>
392           <td class="paramtype">uint32_t&#160;</td>
393           <td class="paramname"><em>cmdCnt</em>, </td>
394         </tr>
395         <tr>
396           <td class="paramkey"></td>
397           <td></td>
398           <td class="paramtype">const <a class="el" href="structtvg_1_1Point.html">Point</a> *&#160;</td>
399           <td class="paramname"><em>pts</em>, </td>
400         </tr>
401         <tr>
402           <td class="paramkey"></td>
403           <td></td>
404           <td class="paramtype">uint32_t&#160;</td>
405           <td class="paramname"><em>ptsCnt</em>&#160;</td>
406         </tr>
407         <tr>
408           <td></td>
409           <td>)</td>
410           <td></td><td></td>
411         </tr>
412       </table>
413   </td>
414   <td class="mlabels-right">
415 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
416   </tr>
417 </table>
418 </div><div class="memdoc">
419
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>
428   </table>
429   </dd>
430 </dl>
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>
433
434 </div>
435 </div>
436 <a id="a676c64ce75c274ce75032606d33b03da"></a>
437 <h2 class="memtitle"><span class="permalink"><a href="#a676c64ce75c274ce75032606d33b03da">&#9670;&nbsp;</a></span>appendRect()</h2>
438
439 <div class="memitem">
440 <div class="memproto">
441 <table class="mlabels">
442   <tr>
443   <td class="mlabels-left">
444       <table class="memname">
445         <tr>
446           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendRect </td>
447           <td>(</td>
448           <td class="paramtype">float&#160;</td>
449           <td class="paramname"><em>x</em>, </td>
450         </tr>
451         <tr>
452           <td class="paramkey"></td>
453           <td></td>
454           <td class="paramtype">float&#160;</td>
455           <td class="paramname"><em>y</em>, </td>
456         </tr>
457         <tr>
458           <td class="paramkey"></td>
459           <td></td>
460           <td class="paramtype">float&#160;</td>
461           <td class="paramname"><em>w</em>, </td>
462         </tr>
463         <tr>
464           <td class="paramkey"></td>
465           <td></td>
466           <td class="paramtype">float&#160;</td>
467           <td class="paramname"><em>h</em>, </td>
468         </tr>
469         <tr>
470           <td class="paramkey"></td>
471           <td></td>
472           <td class="paramtype">float&#160;</td>
473           <td class="paramname"><em>rx</em>, </td>
474         </tr>
475         <tr>
476           <td class="paramkey"></td>
477           <td></td>
478           <td class="paramtype">float&#160;</td>
479           <td class="paramname"><em>ry</em>&#160;</td>
480         </tr>
481         <tr>
482           <td></td>
483           <td>)</td>
484           <td></td><td></td>
485         </tr>
486       </table>
487   </td>
488   <td class="mlabels-right">
489 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
490   </tr>
491 </table>
492 </div><div class="memdoc">
493
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>
507   </table>
508   </dd>
509 </dl>
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>
512
513 </div>
514 </div>
515 <a id="a2765987a2641ac1db76d5c64f00da697"></a>
516 <h2 class="memtitle"><span class="permalink"><a href="#a2765987a2641ac1db76d5c64f00da697">&#9670;&nbsp;</a></span>close()</h2>
517
518 <div class="memitem">
519 <div class="memproto">
520 <table class="mlabels">
521   <tr>
522   <td class="mlabels-left">
523       <table class="memname">
524         <tr>
525           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> close </td>
526           <td>(</td>
527           <td class="paramname"></td><td>)</td>
528           <td></td>
529         </tr>
530       </table>
531   </td>
532   <td class="mlabels-right">
533 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
534   </tr>
535 </table>
536 </div><div class="memdoc">
537
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>
542
543 </div>
544 </div>
545 <a id="a7b71316176172fa052373bdb7c9efd29"></a>
546 <h2 class="memtitle"><span class="permalink"><a href="#a7b71316176172fa052373bdb7c9efd29">&#9670;&nbsp;</a></span>cubicTo()</h2>
547
548 <div class="memitem">
549 <div class="memproto">
550 <table class="mlabels">
551   <tr>
552   <td class="mlabels-left">
553       <table class="memname">
554         <tr>
555           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> cubicTo </td>
556           <td>(</td>
557           <td class="paramtype">float&#160;</td>
558           <td class="paramname"><em>cx1</em>, </td>
559         </tr>
560         <tr>
561           <td class="paramkey"></td>
562           <td></td>
563           <td class="paramtype">float&#160;</td>
564           <td class="paramname"><em>cy1</em>, </td>
565         </tr>
566         <tr>
567           <td class="paramkey"></td>
568           <td></td>
569           <td class="paramtype">float&#160;</td>
570           <td class="paramname"><em>cx2</em>, </td>
571         </tr>
572         <tr>
573           <td class="paramkey"></td>
574           <td></td>
575           <td class="paramtype">float&#160;</td>
576           <td class="paramname"><em>cy2</em>, </td>
577         </tr>
578         <tr>
579           <td class="paramkey"></td>
580           <td></td>
581           <td class="paramtype">float&#160;</td>
582           <td class="paramname"><em>x</em>, </td>
583         </tr>
584         <tr>
585           <td class="paramkey"></td>
586           <td></td>
587           <td class="paramtype">float&#160;</td>
588           <td class="paramname"><em>y</em>&#160;</td>
589         </tr>
590         <tr>
591           <td></td>
592           <td>)</td>
593           <td></td><td></td>
594         </tr>
595       </table>
596   </td>
597   <td class="mlabels-right">
598 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
599   </tr>
600 </table>
601 </div><div class="memdoc">
602
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>
613   </table>
614   </dd>
615 </dl>
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>
618
619 </div>
620 </div>
621 <a id="ae25e3697b5df587d50b809f1faeeabd9"></a>
622 <h2 class="memtitle"><span class="permalink"><a href="#ae25e3697b5df587d50b809f1faeeabd9">&#9670;&nbsp;</a></span>fill() <span class="overload">[1/4]</span></h2>
623
624 <div class="memitem">
625 <div class="memproto">
626 <table class="mlabels">
627   <tr>
628   <td class="mlabels-left">
629       <table class="memname">
630         <tr>
631           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fill </td>
632           <td>(</td>
633           <td class="paramtype">uint8_t&#160;</td>
634           <td class="paramname"><em>r</em>, </td>
635         </tr>
636         <tr>
637           <td class="paramkey"></td>
638           <td></td>
639           <td class="paramtype">uint8_t&#160;</td>
640           <td class="paramname"><em>g</em>, </td>
641         </tr>
642         <tr>
643           <td class="paramkey"></td>
644           <td></td>
645           <td class="paramtype">uint8_t&#160;</td>
646           <td class="paramname"><em>b</em>, </td>
647         </tr>
648         <tr>
649           <td class="paramkey"></td>
650           <td></td>
651           <td class="paramtype">uint8_t&#160;</td>
652           <td class="paramname"><em>a</em>&#160;</td>
653         </tr>
654         <tr>
655           <td></td>
656           <td>)</td>
657           <td></td><td></td>
658         </tr>
659       </table>
660   </td>
661   <td class="mlabels-right">
662 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
663   </tr>
664 </table>
665 </div><div class="memdoc">
666
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>
675   </table>
676   </dd>
677 </dl>
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>
680
681 </div>
682 </div>
683 <a id="ad0cb7b2ec8d18d7c6d366cc84741682c"></a>
684 <h2 class="memtitle"><span class="permalink"><a href="#ad0cb7b2ec8d18d7c6d366cc84741682c">&#9670;&nbsp;</a></span>fill() <span class="overload">[2/4]</span></h2>
685
686 <div class="memitem">
687 <div class="memproto">
688 <table class="mlabels">
689   <tr>
690   <td class="mlabels-left">
691       <table class="memname">
692         <tr>
693           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fill </td>
694           <td>(</td>
695           <td class="paramtype">std::unique_ptr&lt; <a class="el" href="classtvg_1_1Fill.html">Fill</a> &gt;&#160;</td>
696           <td class="paramname"><em>f</em></td><td>)</td>
697           <td></td>
698         </tr>
699       </table>
700   </td>
701   <td class="mlabels-right">
702 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
703   </tr>
704 </table>
705 </div><div class="memdoc">
706
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>
712   </table>
713   </dd>
714 </dl>
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>
717
718 </div>
719 </div>
720 <a id="a02b95c15d0c2006134a95cdadf64e3f4"></a>
721 <h2 class="memtitle"><span class="permalink"><a href="#a02b95c15d0c2006134a95cdadf64e3f4">&#9670;&nbsp;</a></span>fill() <span class="overload">[3/4]</span></h2>
722
723 <div class="memitem">
724 <div class="memproto">
725 <table class="mlabels">
726   <tr>
727   <td class="mlabels-left">
728       <table class="memname">
729         <tr>
730           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fill </td>
731           <td>(</td>
732           <td class="paramtype"><a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a>&#160;</td>
733           <td class="paramname"><em>r</em></td><td>)</td>
734           <td></td>
735         </tr>
736       </table>
737   </td>
738   <td class="mlabels-right">
739 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
740   </tr>
741 </table>
742 </div><div class="memdoc">
743
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>
748   </table>
749   </dd>
750 </dl>
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>
752
753 </div>
754 </div>
755 <a id="a989edf4b4f68532ff25004fc0c7fe826"></a>
756 <h2 class="memtitle"><span class="permalink"><a href="#a989edf4b4f68532ff25004fc0c7fe826">&#9670;&nbsp;</a></span>fill() <span class="overload">[4/4]</span></h2>
757
758 <div class="memitem">
759 <div class="memproto">
760 <table class="mlabels">
761   <tr>
762   <td class="mlabels-left">
763       <table class="memname">
764         <tr>
765           <td class="memname">const <a class="el" href="classtvg_1_1Fill.html">Fill</a>* fill </td>
766           <td>(</td>
767           <td class="paramname"></td><td>)</td>
768           <td> const</td>
769         </tr>
770       </table>
771   </td>
772   <td class="mlabels-right">
773 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
774   </tr>
775 </table>
776 </div><div class="memdoc">
777
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>
780
781 </div>
782 </div>
783 <a id="afc81d85ad3fb3f006abf835311a0acfc"></a>
784 <h2 class="memtitle"><span class="permalink"><a href="#afc81d85ad3fb3f006abf835311a0acfc">&#9670;&nbsp;</a></span>fillColor()</h2>
785
786 <div class="memitem">
787 <div class="memproto">
788 <table class="mlabels">
789   <tr>
790   <td class="mlabels-left">
791       <table class="memname">
792         <tr>
793           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fillColor </td>
794           <td>(</td>
795           <td class="paramtype">uint8_t *&#160;</td>
796           <td class="paramname"><em>r</em>, </td>
797         </tr>
798         <tr>
799           <td class="paramkey"></td>
800           <td></td>
801           <td class="paramtype">uint8_t *&#160;</td>
802           <td class="paramname"><em>g</em>, </td>
803         </tr>
804         <tr>
805           <td class="paramkey"></td>
806           <td></td>
807           <td class="paramtype">uint8_t *&#160;</td>
808           <td class="paramname"><em>b</em>, </td>
809         </tr>
810         <tr>
811           <td class="paramkey"></td>
812           <td></td>
813           <td class="paramtype">uint8_t *&#160;</td>
814           <td class="paramname"><em>a</em>&#160;</td>
815         </tr>
816         <tr>
817           <td></td>
818           <td>)</td>
819           <td></td><td> const</td>
820         </tr>
821       </table>
822   </td>
823   <td class="mlabels-right">
824 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
825   </tr>
826 </table>
827 </div><div class="memdoc">
828
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>
836   </table>
837   </dd>
838 </dl>
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>
840
841 </div>
842 </div>
843 <a id="ac14cd997439012e1abf6c1b8d9f3d4aa"></a>
844 <h2 class="memtitle"><span class="permalink"><a href="#ac14cd997439012e1abf6c1b8d9f3d4aa">&#9670;&nbsp;</a></span>fillRule()</h2>
845
846 <div class="memitem">
847 <div class="memproto">
848 <table class="mlabels">
849   <tr>
850   <td class="mlabels-left">
851       <table class="memname">
852         <tr>
853           <td class="memname"><a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a> fillRule </td>
854           <td>(</td>
855           <td class="paramname"></td><td>)</td>
856           <td> const</td>
857         </tr>
858       </table>
859   </td>
860   <td class="mlabels-right">
861 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
862   </tr>
863 </table>
864 </div><div class="memdoc">
865
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>
868
869 </div>
870 </div>
871 <a id="aa91a801f4f9e8fd8e1567d014c280cb9"></a>
872 <h2 class="memtitle"><span class="permalink"><a href="#aa91a801f4f9e8fd8e1567d014c280cb9">&#9670;&nbsp;</a></span>gen()</h2>
873
874 <div class="memitem">
875 <div class="memproto">
876 <table class="mlabels">
877   <tr>
878   <td class="mlabels-left">
879       <table class="memname">
880         <tr>
881           <td class="memname">static std::unique_ptr&lt;<a class="el" href="classtvg_1_1Shape.html">Shape</a>&gt; gen </td>
882           <td>(</td>
883           <td class="paramname"></td><td>)</td>
884           <td></td>
885         </tr>
886       </table>
887   </td>
888   <td class="mlabels-right">
889 <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
890   </tr>
891 </table>
892 </div><div class="memdoc">
893
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>
896
897 </div>
898 </div>
899 <a id="a9c28e9bbc6bd22dc62e891ffb3fa02cd"></a>
900 <h2 class="memtitle"><span class="permalink"><a href="#a9c28e9bbc6bd22dc62e891ffb3fa02cd">&#9670;&nbsp;</a></span>lineTo()</h2>
901
902 <div class="memitem">
903 <div class="memproto">
904 <table class="mlabels">
905   <tr>
906   <td class="mlabels-left">
907       <table class="memname">
908         <tr>
909           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> lineTo </td>
910           <td>(</td>
911           <td class="paramtype">float&#160;</td>
912           <td class="paramname"><em>x</em>, </td>
913         </tr>
914         <tr>
915           <td class="paramkey"></td>
916           <td></td>
917           <td class="paramtype">float&#160;</td>
918           <td class="paramname"><em>y</em>&#160;</td>
919         </tr>
920         <tr>
921           <td></td>
922           <td>)</td>
923           <td></td><td></td>
924         </tr>
925       </table>
926   </td>
927   <td class="mlabels-right">
928 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
929   </tr>
930 </table>
931 </div><div class="memdoc">
932
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>
939   </table>
940   </dd>
941 </dl>
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>
944
945 </div>
946 </div>
947 <a id="a59f97aaa973af7c58081690433286461"></a>
948 <h2 class="memtitle"><span class="permalink"><a href="#a59f97aaa973af7c58081690433286461">&#9670;&nbsp;</a></span>moveTo()</h2>
949
950 <div class="memitem">
951 <div class="memproto">
952 <table class="mlabels">
953   <tr>
954   <td class="mlabels-left">
955       <table class="memname">
956         <tr>
957           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> moveTo </td>
958           <td>(</td>
959           <td class="paramtype">float&#160;</td>
960           <td class="paramname"><em>x</em>, </td>
961         </tr>
962         <tr>
963           <td class="paramkey"></td>
964           <td></td>
965           <td class="paramtype">float&#160;</td>
966           <td class="paramname"><em>y</em>&#160;</td>
967         </tr>
968         <tr>
969           <td></td>
970           <td>)</td>
971           <td></td><td></td>
972         </tr>
973       </table>
974   </td>
975   <td class="mlabels-right">
976 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
977   </tr>
978 </table>
979 </div><div class="memdoc">
980
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>
987   </table>
988   </dd>
989 </dl>
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>
991
992 </div>
993 </div>
994 <a id="ac14d90c2c0130b66a9a33eb7d08101b7"></a>
995 <h2 class="memtitle"><span class="permalink"><a href="#ac14d90c2c0130b66a9a33eb7d08101b7">&#9670;&nbsp;</a></span>pathCommands()</h2>
996
997 <div class="memitem">
998 <div class="memproto">
999 <table class="mlabels">
1000   <tr>
1001   <td class="mlabels-left">
1002       <table class="memname">
1003         <tr>
1004           <td class="memname">uint32_t pathCommands </td>
1005           <td>(</td>
1006           <td class="paramtype">const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> **&#160;</td>
1007           <td class="paramname"><em>cmds</em></td><td>)</td>
1008           <td> const</td>
1009         </tr>
1010       </table>
1011   </td>
1012   <td class="mlabels-right">
1013 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1014   </tr>
1015 </table>
1016 </div><div class="memdoc">
1017
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>
1022   </table>
1023   </dd>
1024 </dl>
1025 <dl class="section return"><dt>Returns</dt><dd>The length of the <code>cmds</code> array when succeed, zero otherwise. </dd></dl>
1026
1027 </div>
1028 </div>
1029 <a id="a818b1b358f0ed7ba448b6d804e087923"></a>
1030 <h2 class="memtitle"><span class="permalink"><a href="#a818b1b358f0ed7ba448b6d804e087923">&#9670;&nbsp;</a></span>pathCoords()</h2>
1031
1032 <div class="memitem">
1033 <div class="memproto">
1034 <table class="mlabels">
1035   <tr>
1036   <td class="mlabels-left">
1037       <table class="memname">
1038         <tr>
1039           <td class="memname">uint32_t pathCoords </td>
1040           <td>(</td>
1041           <td class="paramtype">const <a class="el" href="structtvg_1_1Point.html">Point</a> **&#160;</td>
1042           <td class="paramname"><em>pts</em></td><td>)</td>
1043           <td> const</td>
1044         </tr>
1045       </table>
1046   </td>
1047   <td class="mlabels-right">
1048 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1049   </tr>
1050 </table>
1051 </div><div class="memdoc">
1052
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>
1057   </table>
1058   </dd>
1059 </dl>
1060 <dl class="section return"><dt>Returns</dt><dd>The length of the <code>pts</code> array when succeed, zero otherwise. </dd></dl>
1061
1062 </div>
1063 </div>
1064 <a id="a8014640e362066901c2e2ebe6ddd1251"></a>
1065 <h2 class="memtitle"><span class="permalink"><a href="#a8014640e362066901c2e2ebe6ddd1251">&#9670;&nbsp;</a></span>reset()</h2>
1066
1067 <div class="memitem">
1068 <div class="memproto">
1069 <table class="mlabels">
1070   <tr>
1071   <td class="mlabels-left">
1072       <table class="memname">
1073         <tr>
1074           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> reset </td>
1075           <td>(</td>
1076           <td class="paramname"></td><td>)</td>
1077           <td></td>
1078         </tr>
1079       </table>
1080   </td>
1081   <td class="mlabels-right">
1082 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1083   </tr>
1084 </table>
1085 </div><div class="memdoc">
1086
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>
1091
1092 </div>
1093 </div>
1094 <a id="a5ce764cd1970c7a7d76b209c4441bc73"></a>
1095 <h2 class="memtitle"><span class="permalink"><a href="#a5ce764cd1970c7a7d76b209c4441bc73">&#9670;&nbsp;</a></span>stroke() <span class="overload">[1/6]</span></h2>
1096
1097 <div class="memitem">
1098 <div class="memproto">
1099 <table class="mlabels">
1100   <tr>
1101   <td class="mlabels-left">
1102       <table class="memname">
1103         <tr>
1104           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1105           <td>(</td>
1106           <td class="paramtype">float&#160;</td>
1107           <td class="paramname"><em>width</em></td><td>)</td>
1108           <td></td>
1109         </tr>
1110       </table>
1111   </td>
1112   <td class="mlabels-right">
1113 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1114   </tr>
1115 </table>
1116 </div><div class="memdoc">
1117
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>
1122   </table>
1123   </dd>
1124 </dl>
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>
1126
1127 </div>
1128 </div>
1129 <a id="a68a4822b30573cf4f02195b249218e4e"></a>
1130 <h2 class="memtitle"><span class="permalink"><a href="#a68a4822b30573cf4f02195b249218e4e">&#9670;&nbsp;</a></span>stroke() <span class="overload">[2/6]</span></h2>
1131
1132 <div class="memitem">
1133 <div class="memproto">
1134 <table class="mlabels">
1135   <tr>
1136   <td class="mlabels-left">
1137       <table class="memname">
1138         <tr>
1139           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1140           <td>(</td>
1141           <td class="paramtype">uint8_t&#160;</td>
1142           <td class="paramname"><em>r</em>, </td>
1143         </tr>
1144         <tr>
1145           <td class="paramkey"></td>
1146           <td></td>
1147           <td class="paramtype">uint8_t&#160;</td>
1148           <td class="paramname"><em>g</em>, </td>
1149         </tr>
1150         <tr>
1151           <td class="paramkey"></td>
1152           <td></td>
1153           <td class="paramtype">uint8_t&#160;</td>
1154           <td class="paramname"><em>b</em>, </td>
1155         </tr>
1156         <tr>
1157           <td class="paramkey"></td>
1158           <td></td>
1159           <td class="paramtype">uint8_t&#160;</td>
1160           <td class="paramname"><em>a</em>&#160;</td>
1161         </tr>
1162         <tr>
1163           <td></td>
1164           <td>)</td>
1165           <td></td><td></td>
1166         </tr>
1167       </table>
1168   </td>
1169   <td class="mlabels-right">
1170 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1171   </tr>
1172 </table>
1173 </div><div class="memdoc">
1174
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>
1182   </table>
1183   </dd>
1184 </dl>
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>
1186
1187 </div>
1188 </div>
1189 <a id="ab0b09b5064dff4931db9ea898b36dcc1"></a>
1190 <h2 class="memtitle"><span class="permalink"><a href="#ab0b09b5064dff4931db9ea898b36dcc1">&#9670;&nbsp;</a></span>stroke() <span class="overload">[3/6]</span></h2>
1191
1192 <div class="memitem">
1193 <div class="memproto">
1194 <table class="mlabels">
1195   <tr>
1196   <td class="mlabels-left">
1197       <table class="memname">
1198         <tr>
1199           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1200           <td>(</td>
1201           <td class="paramtype">std::unique_ptr&lt; <a class="el" href="classtvg_1_1Fill.html">Fill</a> &gt;&#160;</td>
1202           <td class="paramname"><em>f</em></td><td>)</td>
1203           <td></td>
1204         </tr>
1205       </table>
1206   </td>
1207   <td class="mlabels-right">
1208 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1209   </tr>
1210 </table>
1211 </div><div class="memdoc">
1212
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>
1217   </table>
1218   </dd>
1219 </dl>
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>
1225   </table>
1226   </dd>
1227 </dl>
1228
1229 </div>
1230 </div>
1231 <a id="ae79102d63897ad86a96afb4436c731e4"></a>
1232 <h2 class="memtitle"><span class="permalink"><a href="#ae79102d63897ad86a96afb4436c731e4">&#9670;&nbsp;</a></span>stroke() <span class="overload">[4/6]</span></h2>
1233
1234 <div class="memitem">
1235 <div class="memproto">
1236 <table class="mlabels">
1237   <tr>
1238   <td class="mlabels-left">
1239       <table class="memname">
1240         <tr>
1241           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1242           <td>(</td>
1243           <td class="paramtype">const float *&#160;</td>
1244           <td class="paramname"><em>dashPattern</em>, </td>
1245         </tr>
1246         <tr>
1247           <td class="paramkey"></td>
1248           <td></td>
1249           <td class="paramtype">uint32_t&#160;</td>
1250           <td class="paramname"><em>cnt</em>&#160;</td>
1251         </tr>
1252         <tr>
1253           <td></td>
1254           <td>)</td>
1255           <td></td><td></td>
1256         </tr>
1257       </table>
1258   </td>
1259   <td class="mlabels-right">
1260 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1261   </tr>
1262 </table>
1263 </div><div class="memdoc">
1264
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>
1270   </table>
1271   </dd>
1272 </dl>
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>
1278   </table>
1279   </dd>
1280 </dl>
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>
1282
1283 </div>
1284 </div>
1285 <a id="a39068c9686211de862844dacabf92375"></a>
1286 <h2 class="memtitle"><span class="permalink"><a href="#a39068c9686211de862844dacabf92375">&#9670;&nbsp;</a></span>stroke() <span class="overload">[5/6]</span></h2>
1287
1288 <div class="memitem">
1289 <div class="memproto">
1290 <table class="mlabels">
1291   <tr>
1292   <td class="mlabels-left">
1293       <table class="memname">
1294         <tr>
1295           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1296           <td>(</td>
1297           <td class="paramtype"><a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a>&#160;</td>
1298           <td class="paramname"><em>cap</em></td><td>)</td>
1299           <td></td>
1300         </tr>
1301       </table>
1302   </td>
1303   <td class="mlabels-right">
1304 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1305   </tr>
1306 </table>
1307 </div><div class="memdoc">
1308
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>
1313   </table>
1314   </dd>
1315 </dl>
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>
1317
1318 </div>
1319 </div>
1320 <a id="ac416cad0d9e15079a112b1f609d19177"></a>
1321 <h2 class="memtitle"><span class="permalink"><a href="#ac416cad0d9e15079a112b1f609d19177">&#9670;&nbsp;</a></span>stroke() <span class="overload">[6/6]</span></h2>
1322
1323 <div class="memitem">
1324 <div class="memproto">
1325 <table class="mlabels">
1326   <tr>
1327   <td class="mlabels-left">
1328       <table class="memname">
1329         <tr>
1330           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
1331           <td>(</td>
1332           <td class="paramtype"><a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a>&#160;</td>
1333           <td class="paramname"><em>join</em></td><td>)</td>
1334           <td></td>
1335         </tr>
1336       </table>
1337   </td>
1338   <td class="mlabels-right">
1339 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1340   </tr>
1341 </table>
1342 </div><div class="memdoc">
1343
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>
1349   </table>
1350   </dd>
1351 </dl>
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>
1353
1354 </div>
1355 </div>
1356 <a id="a0948989a7f0a9e253234cd9f53784674"></a>
1357 <h2 class="memtitle"><span class="permalink"><a href="#a0948989a7f0a9e253234cd9f53784674">&#9670;&nbsp;</a></span>strokeCap()</h2>
1358
1359 <div class="memitem">
1360 <div class="memproto">
1361 <table class="mlabels">
1362   <tr>
1363   <td class="mlabels-left">
1364       <table class="memname">
1365         <tr>
1366           <td class="memname"><a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a> strokeCap </td>
1367           <td>(</td>
1368           <td class="paramname"></td><td>)</td>
1369           <td> const</td>
1370         </tr>
1371       </table>
1372   </td>
1373   <td class="mlabels-right">
1374 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1375   </tr>
1376 </table>
1377 </div><div class="memdoc">
1378
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>
1381
1382 </div>
1383 </div>
1384 <a id="a7b81219e058ae54e731c5702a1c61462"></a>
1385 <h2 class="memtitle"><span class="permalink"><a href="#a7b81219e058ae54e731c5702a1c61462">&#9670;&nbsp;</a></span>strokeColor()</h2>
1386
1387 <div class="memitem">
1388 <div class="memproto">
1389 <table class="mlabels">
1390   <tr>
1391   <td class="mlabels-left">
1392       <table class="memname">
1393         <tr>
1394           <td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> strokeColor </td>
1395           <td>(</td>
1396           <td class="paramtype">uint8_t *&#160;</td>
1397           <td class="paramname"><em>r</em>, </td>
1398         </tr>
1399         <tr>
1400           <td class="paramkey"></td>
1401           <td></td>
1402           <td class="paramtype">uint8_t *&#160;</td>
1403           <td class="paramname"><em>g</em>, </td>
1404         </tr>
1405         <tr>
1406           <td class="paramkey"></td>
1407           <td></td>
1408           <td class="paramtype">uint8_t *&#160;</td>
1409           <td class="paramname"><em>b</em>, </td>
1410         </tr>
1411         <tr>
1412           <td class="paramkey"></td>
1413           <td></td>
1414           <td class="paramtype">uint8_t *&#160;</td>
1415           <td class="paramname"><em>a</em>&#160;</td>
1416         </tr>
1417         <tr>
1418           <td></td>
1419           <td>)</td>
1420           <td></td><td> const</td>
1421         </tr>
1422       </table>
1423   </td>
1424   <td class="mlabels-right">
1425 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1426   </tr>
1427 </table>
1428 </div><div class="memdoc">
1429
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>
1437   </table>
1438   </dd>
1439 </dl>
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>
1441
1442 </div>
1443 </div>
1444 <a id="afbc1e469219ee86df47d216f58af282a"></a>
1445 <h2 class="memtitle"><span class="permalink"><a href="#afbc1e469219ee86df47d216f58af282a">&#9670;&nbsp;</a></span>strokeDash()</h2>
1446
1447 <div class="memitem">
1448 <div class="memproto">
1449 <table class="mlabels">
1450   <tr>
1451   <td class="mlabels-left">
1452       <table class="memname">
1453         <tr>
1454           <td class="memname">uint32_t strokeDash </td>
1455           <td>(</td>
1456           <td class="paramtype">const float **&#160;</td>
1457           <td class="paramname"><em>dashPattern</em></td><td>)</td>
1458           <td> const</td>
1459         </tr>
1460       </table>
1461   </td>
1462   <td class="mlabels-right">
1463 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1464   </tr>
1465 </table>
1466 </div><div class="memdoc">
1467
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>
1472   </table>
1473   </dd>
1474 </dl>
1475 <dl class="section return"><dt>Returns</dt><dd>The length of the <code>dashPattern</code> array. </dd></dl>
1476
1477 </div>
1478 </div>
1479 <a id="a08ce41b2d01d2d43980e5c26f4df111e"></a>
1480 <h2 class="memtitle"><span class="permalink"><a href="#a08ce41b2d01d2d43980e5c26f4df111e">&#9670;&nbsp;</a></span>strokeFill()</h2>
1481
1482 <div class="memitem">
1483 <div class="memproto">
1484 <table class="mlabels">
1485   <tr>
1486   <td class="mlabels-left">
1487       <table class="memname">
1488         <tr>
1489           <td class="memname">const <a class="el" href="classtvg_1_1Fill.html">Fill</a>* strokeFill </td>
1490           <td>(</td>
1491           <td class="paramname"></td><td>)</td>
1492           <td> const</td>
1493         </tr>
1494       </table>
1495   </td>
1496   <td class="mlabels-right">
1497 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1498   </tr>
1499 </table>
1500 </div><div class="memdoc">
1501
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>
1504
1505 </div>
1506 </div>
1507 <a id="aac0235df4172e9c079689e5291c7ad5a"></a>
1508 <h2 class="memtitle"><span class="permalink"><a href="#aac0235df4172e9c079689e5291c7ad5a">&#9670;&nbsp;</a></span>strokeJoin()</h2>
1509
1510 <div class="memitem">
1511 <div class="memproto">
1512 <table class="mlabels">
1513   <tr>
1514   <td class="mlabels-left">
1515       <table class="memname">
1516         <tr>
1517           <td class="memname"><a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a> strokeJoin </td>
1518           <td>(</td>
1519           <td class="paramname"></td><td>)</td>
1520           <td> const</td>
1521         </tr>
1522       </table>
1523   </td>
1524   <td class="mlabels-right">
1525 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1526   </tr>
1527 </table>
1528 </div><div class="memdoc">
1529
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>
1532
1533 </div>
1534 </div>
1535 <a id="a1536ec32e91c29dd8300b0d4354773f9"></a>
1536 <h2 class="memtitle"><span class="permalink"><a href="#a1536ec32e91c29dd8300b0d4354773f9">&#9670;&nbsp;</a></span>strokeWidth()</h2>
1537
1538 <div class="memitem">
1539 <div class="memproto">
1540 <table class="mlabels">
1541   <tr>
1542   <td class="mlabels-left">
1543       <table class="memname">
1544         <tr>
1545           <td class="memname">float strokeWidth </td>
1546           <td>(</td>
1547           <td class="paramname"></td><td>)</td>
1548           <td> const</td>
1549         </tr>
1550       </table>
1551   </td>
1552   <td class="mlabels-right">
1553 <span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
1554   </tr>
1555 </table>
1556 </div><div class="memdoc">
1557
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>
1560
1561 </div>
1562 </div>
1563 </div><!-- contents -->
1564 </div><!-- doc-content -->
1565 <!-- start footer part -->
1566 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
1567   <ul>
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>
1572   </ul>
1573 </div>
1574 </body>
1575 </html>