mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
1835 lines
107 KiB
HTML
1835 lines
107 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>ThorVG: Shape</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="small_logo.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">ThorVG
|
|
 <span id="projectnumber">v0.14</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('classtvg_1_1Shape.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
|
<a href="classtvg_1_1Shape-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<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>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>A class representing two-dimensional figures and their properties.
|
|
<a href="classtvg_1_1Shape.html#details">More...</a></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for Shape:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classtvg_1_1Shape__inherit__graph.png" border="0" usemap="#aShape_inherit__map" alt="Inheritance graph"/></div>
|
|
<map name="aShape_inherit__map" id="aShape_inherit__map">
|
|
<area shape="rect" title="A class representing two-dimensional figures and their properties." alt="" coords="5,80,68,107"/>
|
|
<area shape="rect" href="classtvg_1_1Paint.html" title="An abstract class for managing graphical elements." alt="" coords="9,5,64,32"/>
|
|
</map>
|
|
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
|
|
<div class="dynheader">
|
|
Collaboration diagram for Shape:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classtvg_1_1Shape__coll__graph.png" border="0" usemap="#aShape_coll__map" alt="Collaboration graph"/></div>
|
|
<map name="aShape_coll__map" id="aShape_coll__map">
|
|
<area shape="rect" title="A class representing two-dimensional figures and their properties." alt="" coords="5,80,68,107"/>
|
|
<area shape="rect" href="classtvg_1_1Paint.html" title="An abstract class for managing graphical elements." alt="" coords="9,5,64,32"/>
|
|
</map>
|
|
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a8014640e362066901c2e2ebe6ddd1251"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a8014640e362066901c2e2ebe6ddd1251">reset</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a8014640e362066901c2e2ebe6ddd1251"><td class="mdescLeft"> </td><td class="mdescRight">Resets the properties of the shape path. <a href="classtvg_1_1Shape.html#a8014640e362066901c2e2ebe6ddd1251">More...</a><br /></td></tr>
|
|
<tr class="separator:a8014640e362066901c2e2ebe6ddd1251"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a59f97aaa973af7c58081690433286461"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a59f97aaa973af7c58081690433286461">moveTo</a> (float x, float y) noexcept</td></tr>
|
|
<tr class="memdesc:a59f97aaa973af7c58081690433286461"><td class="mdescLeft"> </td><td class="mdescRight">Sets the initial point of the sub-path. <a href="classtvg_1_1Shape.html#a59f97aaa973af7c58081690433286461">More...</a><br /></td></tr>
|
|
<tr class="separator:a59f97aaa973af7c58081690433286461"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9c28e9bbc6bd22dc62e891ffb3fa02cd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a9c28e9bbc6bd22dc62e891ffb3fa02cd">lineTo</a> (float x, float y) noexcept</td></tr>
|
|
<tr class="memdesc:a9c28e9bbc6bd22dc62e891ffb3fa02cd"><td class="mdescLeft"> </td><td class="mdescRight">Adds a new point to the sub-path, which results in drawing a line from the current point to the given end-point. <a href="classtvg_1_1Shape.html#a9c28e9bbc6bd22dc62e891ffb3fa02cd">More...</a><br /></td></tr>
|
|
<tr class="separator:a9c28e9bbc6bd22dc62e891ffb3fa02cd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7b71316176172fa052373bdb7c9efd29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a7b71316176172fa052373bdb7c9efd29">cubicTo</a> (float cx1, float cy1, float cx2, float cy2, float x, float y) noexcept</td></tr>
|
|
<tr class="memdesc:a7b71316176172fa052373bdb7c9efd29"><td class="mdescLeft"> </td><td class="mdescRight">Adds new points to the sub-path, which results in drawing a cubic Bezier curve starting at the current point and ending at the given end-point (<code>x</code>, <code>y</code>) using the control points (<code>cx1</code>, <code>cy1</code>) and (<code>cx2</code>, <code>cy2</code>). <a href="classtvg_1_1Shape.html#a7b71316176172fa052373bdb7c9efd29">More...</a><br /></td></tr>
|
|
<tr class="separator:a7b71316176172fa052373bdb7c9efd29"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2765987a2641ac1db76d5c64f00da697"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a2765987a2641ac1db76d5c64f00da697">close</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a2765987a2641ac1db76d5c64f00da697"><td class="mdescLeft"> </td><td class="mdescRight">Closes the current sub-path by drawing a line from the current point to the initial point of the sub-path. <a href="classtvg_1_1Shape.html#a2765987a2641ac1db76d5c64f00da697">More...</a><br /></td></tr>
|
|
<tr class="separator:a2765987a2641ac1db76d5c64f00da697"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8ef2587269a01153c9ea4ca4a8d31b49"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a8ef2587269a01153c9ea4ca4a8d31b49">appendRect</a> (float x, float y, float w, float h, float rx=0, float ry=0) noexcept</td></tr>
|
|
<tr class="memdesc:a8ef2587269a01153c9ea4ca4a8d31b49"><td class="mdescLeft"> </td><td class="mdescRight">Appends a rectangle to the path. <a href="classtvg_1_1Shape.html#a8ef2587269a01153c9ea4ca4a8d31b49">More...</a><br /></td></tr>
|
|
<tr class="separator:a8ef2587269a01153c9ea4ca4a8d31b49"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a52eccb2815eaa1231da9c389cd92ffa1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a52eccb2815eaa1231da9c389cd92ffa1">appendCircle</a> (float cx, float cy, float rx, float ry) noexcept</td></tr>
|
|
<tr class="memdesc:a52eccb2815eaa1231da9c389cd92ffa1"><td class="mdescLeft"> </td><td class="mdescRight">Appends an ellipse to the path. <a href="classtvg_1_1Shape.html#a52eccb2815eaa1231da9c389cd92ffa1">More...</a><br /></td></tr>
|
|
<tr class="separator:a52eccb2815eaa1231da9c389cd92ffa1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2f003a843ff42f6cee6a726f543836e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a2f003a843ff42f6cee6a726f543836e3">appendArc</a> (float cx, float cy, float radius, float startAngle, float sweep, bool pie) noexcept</td></tr>
|
|
<tr class="memdesc:a2f003a843ff42f6cee6a726f543836e3"><td class="mdescLeft"> </td><td class="mdescRight">Appends a circular arc to the path. <a href="classtvg_1_1Shape.html#a2f003a843ff42f6cee6a726f543836e3">More...</a><br /></td></tr>
|
|
<tr class="separator:a2f003a843ff42f6cee6a726f543836e3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3588ea30776a747a22b6ee82dadb9717"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a3588ea30776a747a22b6ee82dadb9717">appendPath</a> (const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> *cmds, uint32_t cmdCnt, const <a class="el" href="structtvg_1_1Point.html">Point</a> *pts, uint32_t ptsCnt) noexcept</td></tr>
|
|
<tr class="memdesc:a3588ea30776a747a22b6ee82dadb9717"><td class="mdescLeft"> </td><td class="mdescRight">Appends a given sub-path to the path. <a href="classtvg_1_1Shape.html#a3588ea30776a747a22b6ee82dadb9717">More...</a><br /></td></tr>
|
|
<tr class="separator:a3588ea30776a747a22b6ee82dadb9717"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5ce764cd1970c7a7d76b209c4441bc73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a5ce764cd1970c7a7d76b209c4441bc73">stroke</a> (float width) noexcept</td></tr>
|
|
<tr class="memdesc:a5ce764cd1970c7a7d76b209c4441bc73"><td class="mdescLeft"> </td><td class="mdescRight">Sets the stroke width for all of the figures from the path. <a href="classtvg_1_1Shape.html#a5ce764cd1970c7a7d76b209c4441bc73">More...</a><br /></td></tr>
|
|
<tr class="separator:a5ce764cd1970c7a7d76b209c4441bc73"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aad81d8f86d9432eac25b00cc675c8d7f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#aad81d8f86d9432eac25b00cc675c8d7f">stroke</a> (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) noexcept</td></tr>
|
|
<tr class="memdesc:aad81d8f86d9432eac25b00cc675c8d7f"><td class="mdescLeft"> </td><td class="mdescRight">Sets the color of the stroke for all of the figures from the path. <a href="classtvg_1_1Shape.html#aad81d8f86d9432eac25b00cc675c8d7f">More...</a><br /></td></tr>
|
|
<tr class="separator:aad81d8f86d9432eac25b00cc675c8d7f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab0b09b5064dff4931db9ea898b36dcc1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ab0b09b5064dff4931db9ea898b36dcc1">stroke</a> (std::unique_ptr< <a class="el" href="classtvg_1_1Fill.html">Fill</a> > f) noexcept</td></tr>
|
|
<tr class="memdesc:ab0b09b5064dff4931db9ea898b36dcc1"><td class="mdescLeft"> </td><td class="mdescRight">Sets the gradient fill of the stroke for all of the figures from the path. <a href="classtvg_1_1Shape.html#ab0b09b5064dff4931db9ea898b36dcc1">More...</a><br /></td></tr>
|
|
<tr class="separator:ab0b09b5064dff4931db9ea898b36dcc1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae79102d63897ad86a96afb4436c731e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ae79102d63897ad86a96afb4436c731e4">stroke</a> (const float *dashPattern, uint32_t cnt) noexcept</td></tr>
|
|
<tr class="memdesc:ae79102d63897ad86a96afb4436c731e4"><td class="mdescLeft"> </td><td class="mdescRight">Sets the dash pattern of the stroke. <a href="classtvg_1_1Shape.html#ae79102d63897ad86a96afb4436c731e4">More...</a><br /></td></tr>
|
|
<tr class="separator:ae79102d63897ad86a96afb4436c731e4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a39068c9686211de862844dacabf92375"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a39068c9686211de862844dacabf92375">stroke</a> (<a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a> cap) noexcept</td></tr>
|
|
<tr class="memdesc:a39068c9686211de862844dacabf92375"><td class="mdescLeft"> </td><td class="mdescRight">Sets the cap style of the stroke in the open sub-paths. <a href="classtvg_1_1Shape.html#a39068c9686211de862844dacabf92375">More...</a><br /></td></tr>
|
|
<tr class="separator:a39068c9686211de862844dacabf92375"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac416cad0d9e15079a112b1f609d19177"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ac416cad0d9e15079a112b1f609d19177">stroke</a> (<a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a> join) noexcept</td></tr>
|
|
<tr class="memdesc:ac416cad0d9e15079a112b1f609d19177"><td class="mdescLeft"> </td><td class="mdescRight">Sets the join style for stroked path segments. <a href="classtvg_1_1Shape.html#ac416cad0d9e15079a112b1f609d19177">More...</a><br /></td></tr>
|
|
<tr class="separator:ac416cad0d9e15079a112b1f609d19177"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad8fb8f42c07ac68ef83383b05203ff6f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ad8fb8f42c07ac68ef83383b05203ff6f">strokeMiterlimit</a> (float miterlimit) noexcept</td></tr>
|
|
<tr class="memdesc:ad8fb8f42c07ac68ef83383b05203ff6f"><td class="mdescLeft"> </td><td class="mdescRight">Sets the stroke miterlimit. <a href="classtvg_1_1Shape.html#ad8fb8f42c07ac68ef83383b05203ff6f">More...</a><br /></td></tr>
|
|
<tr class="separator:ad8fb8f42c07ac68ef83383b05203ff6f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac69db0796d8e184334add6b0b94b1898"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ac69db0796d8e184334add6b0b94b1898">strokeTrim</a> (float begin, float end, bool simultaneous=true) noexcept</td></tr>
|
|
<tr class="memdesc:ac69db0796d8e184334add6b0b94b1898"><td class="mdescLeft"> </td><td class="mdescRight">Sets the trim of the stroke along the defined path segment, allowing control over which part of the stroke is visible. <a href="classtvg_1_1Shape.html#ac69db0796d8e184334add6b0b94b1898">More...</a><br /></td></tr>
|
|
<tr class="separator:ac69db0796d8e184334add6b0b94b1898"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0552551ad67547043167f7f382174e89"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a0552551ad67547043167f7f382174e89">fill</a> (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) noexcept</td></tr>
|
|
<tr class="memdesc:a0552551ad67547043167f7f382174e89"><td class="mdescLeft"> </td><td class="mdescRight">Sets the solid color for all of the figures from the path. <a href="classtvg_1_1Shape.html#a0552551ad67547043167f7f382174e89">More...</a><br /></td></tr>
|
|
<tr class="separator:a0552551ad67547043167f7f382174e89"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad0cb7b2ec8d18d7c6d366cc84741682c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ad0cb7b2ec8d18d7c6d366cc84741682c">fill</a> (std::unique_ptr< <a class="el" href="classtvg_1_1Fill.html">Fill</a> > f) noexcept</td></tr>
|
|
<tr class="memdesc:ad0cb7b2ec8d18d7c6d366cc84741682c"><td class="mdescLeft"> </td><td class="mdescRight">Sets the gradient fill for all of the figures from the path. <a href="classtvg_1_1Shape.html#ad0cb7b2ec8d18d7c6d366cc84741682c">More...</a><br /></td></tr>
|
|
<tr class="separator:ad0cb7b2ec8d18d7c6d366cc84741682c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a02b95c15d0c2006134a95cdadf64e3f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a02b95c15d0c2006134a95cdadf64e3f4">fill</a> (<a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a> r) noexcept</td></tr>
|
|
<tr class="memdesc:a02b95c15d0c2006134a95cdadf64e3f4"><td class="mdescLeft"> </td><td class="mdescRight">Sets the fill rule for the <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties.">Shape</a> object. <a href="classtvg_1_1Shape.html#a02b95c15d0c2006134a95cdadf64e3f4">More...</a><br /></td></tr>
|
|
<tr class="separator:a02b95c15d0c2006134a95cdadf64e3f4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa7f1bade5864d60badcb5fae2b0fe034"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#aa7f1bade5864d60badcb5fae2b0fe034">order</a> (bool strokeFirst) noexcept</td></tr>
|
|
<tr class="memdesc:aa7f1bade5864d60badcb5fae2b0fe034"><td class="mdescLeft"> </td><td class="mdescRight">Sets the rendering order of the stroke and the fill. <a href="classtvg_1_1Shape.html#aa7f1bade5864d60badcb5fae2b0fe034">More...</a><br /></td></tr>
|
|
<tr class="separator:aa7f1bade5864d60badcb5fae2b0fe034"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac14d90c2c0130b66a9a33eb7d08101b7"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ac14d90c2c0130b66a9a33eb7d08101b7">pathCommands</a> (const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> **cmds) const noexcept</td></tr>
|
|
<tr class="memdesc:ac14d90c2c0130b66a9a33eb7d08101b7"><td class="mdescLeft"> </td><td class="mdescRight">Gets the commands data of the path. <a href="classtvg_1_1Shape.html#ac14d90c2c0130b66a9a33eb7d08101b7">More...</a><br /></td></tr>
|
|
<tr class="separator:ac14d90c2c0130b66a9a33eb7d08101b7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a818b1b358f0ed7ba448b6d804e087923"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a818b1b358f0ed7ba448b6d804e087923">pathCoords</a> (const <a class="el" href="structtvg_1_1Point.html">Point</a> **pts) const noexcept</td></tr>
|
|
<tr class="memdesc:a818b1b358f0ed7ba448b6d804e087923"><td class="mdescLeft"> </td><td class="mdescRight">Gets the points values of the path. <a href="classtvg_1_1Shape.html#a818b1b358f0ed7ba448b6d804e087923">More...</a><br /></td></tr>
|
|
<tr class="separator:a818b1b358f0ed7ba448b6d804e087923"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a989edf4b4f68532ff25004fc0c7fe826"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classtvg_1_1Fill.html">Fill</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a989edf4b4f68532ff25004fc0c7fe826">fill</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a989edf4b4f68532ff25004fc0c7fe826"><td class="mdescLeft"> </td><td class="mdescRight">Gets the pointer to the gradient fill of the shape. <a href="classtvg_1_1Shape.html#a989edf4b4f68532ff25004fc0c7fe826">More...</a><br /></td></tr>
|
|
<tr class="separator:a989edf4b4f68532ff25004fc0c7fe826"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8b4f00f01c2d24d6be2962ddf04a70ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a8b4f00f01c2d24d6be2962ddf04a70ca">fillColor</a> (uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a=nullptr) const noexcept</td></tr>
|
|
<tr class="memdesc:a8b4f00f01c2d24d6be2962ddf04a70ca"><td class="mdescLeft"> </td><td class="mdescRight">Gets the solid color of the shape. <a href="classtvg_1_1Shape.html#a8b4f00f01c2d24d6be2962ddf04a70ca">More...</a><br /></td></tr>
|
|
<tr class="separator:a8b4f00f01c2d24d6be2962ddf04a70ca"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac14cd997439012e1abf6c1b8d9f3d4aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#ac14cd997439012e1abf6c1b8d9f3d4aa">fillRule</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:ac14cd997439012e1abf6c1b8d9f3d4aa"><td class="mdescLeft"> </td><td class="mdescRight">Gets the fill rule value. <a href="classtvg_1_1Shape.html#ac14cd997439012e1abf6c1b8d9f3d4aa">More...</a><br /></td></tr>
|
|
<tr class="separator:ac14cd997439012e1abf6c1b8d9f3d4aa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1536ec32e91c29dd8300b0d4354773f9"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a1536ec32e91c29dd8300b0d4354773f9">strokeWidth</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a1536ec32e91c29dd8300b0d4354773f9"><td class="mdescLeft"> </td><td class="mdescRight">Gets the stroke width. <a href="classtvg_1_1Shape.html#a1536ec32e91c29dd8300b0d4354773f9">More...</a><br /></td></tr>
|
|
<tr class="separator:a1536ec32e91c29dd8300b0d4354773f9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6705be0d6481277e9bf17cc918597665"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a6705be0d6481277e9bf17cc918597665">strokeColor</a> (uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a=nullptr) const noexcept</td></tr>
|
|
<tr class="memdesc:a6705be0d6481277e9bf17cc918597665"><td class="mdescLeft"> </td><td class="mdescRight">Gets the color of the shape's stroke. <a href="classtvg_1_1Shape.html#a6705be0d6481277e9bf17cc918597665">More...</a><br /></td></tr>
|
|
<tr class="separator:a6705be0d6481277e9bf17cc918597665"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a08ce41b2d01d2d43980e5c26f4df111e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classtvg_1_1Fill.html">Fill</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a08ce41b2d01d2d43980e5c26f4df111e">strokeFill</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a08ce41b2d01d2d43980e5c26f4df111e"><td class="mdescLeft"> </td><td class="mdescRight">Gets the pointer to the gradient fill of the stroke. <a href="classtvg_1_1Shape.html#a08ce41b2d01d2d43980e5c26f4df111e">More...</a><br /></td></tr>
|
|
<tr class="separator:a08ce41b2d01d2d43980e5c26f4df111e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afbc1e469219ee86df47d216f58af282a"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#afbc1e469219ee86df47d216f58af282a">strokeDash</a> (const float **dashPattern) const noexcept</td></tr>
|
|
<tr class="memdesc:afbc1e469219ee86df47d216f58af282a"><td class="mdescLeft"> </td><td class="mdescRight">Gets the dash pattern of the stroke. <a href="classtvg_1_1Shape.html#afbc1e469219ee86df47d216f58af282a">More...</a><br /></td></tr>
|
|
<tr class="separator:afbc1e469219ee86df47d216f58af282a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0948989a7f0a9e253234cd9f53784674"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a0948989a7f0a9e253234cd9f53784674">strokeCap</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a0948989a7f0a9e253234cd9f53784674"><td class="mdescLeft"> </td><td class="mdescRight">Gets the cap style used for stroking the path. <a href="classtvg_1_1Shape.html#a0948989a7f0a9e253234cd9f53784674">More...</a><br /></td></tr>
|
|
<tr class="separator:a0948989a7f0a9e253234cd9f53784674"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aac0235df4172e9c079689e5291c7ad5a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#aac0235df4172e9c079689e5291c7ad5a">strokeJoin</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:aac0235df4172e9c079689e5291c7ad5a"><td class="mdescLeft"> </td><td class="mdescRight">Gets the join style value used for stroking the path. <a href="classtvg_1_1Shape.html#aac0235df4172e9c079689e5291c7ad5a">More...</a><br /></td></tr>
|
|
<tr class="separator:aac0235df4172e9c079689e5291c7ad5a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a84ec91023314c914e900cade78a9095d"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a84ec91023314c914e900cade78a9095d">strokeMiterlimit</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a84ec91023314c914e900cade78a9095d"><td class="mdescLeft"> </td><td class="mdescRight">Gets the stroke miterlimit. <a href="classtvg_1_1Shape.html#a84ec91023314c914e900cade78a9095d">More...</a><br /></td></tr>
|
|
<tr class="separator:a84ec91023314c914e900cade78a9095d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5e0762495957f05713a60540984fdae4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a5e0762495957f05713a60540984fdae4">strokeTrim</a> (float *begin, float *end) const noexcept</td></tr>
|
|
<tr class="memdesc:a5e0762495957f05713a60540984fdae4"><td class="mdescLeft"> </td><td class="mdescRight">Gets the trim of the stroke along the defined path segment. <a href="classtvg_1_1Shape.html#a5e0762495957f05713a60540984fdae4">More...</a><br /></td></tr>
|
|
<tr class="separator:a5e0762495957f05713a60540984fdae4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pub_methods_classtvg_1_1Paint"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classtvg_1_1Paint')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classtvg_1_1Paint.html">Paint</a></td></tr>
|
|
<tr class="memitem:a7841fa0c14643e09735d48042ead68f3 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a7841fa0c14643e09735d48042ead68f3">rotate</a> (float degree) noexcept</td></tr>
|
|
<tr class="memdesc:a7841fa0c14643e09735d48042ead68f3 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the angle by which the object is rotated. <a href="classtvg_1_1Paint.html#a7841fa0c14643e09735d48042ead68f3">More...</a><br /></td></tr>
|
|
<tr class="separator:a7841fa0c14643e09735d48042ead68f3 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5c057876185525c5723215f95a3984f2 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a5c057876185525c5723215f95a3984f2">scale</a> (float factor) noexcept</td></tr>
|
|
<tr class="memdesc:a5c057876185525c5723215f95a3984f2 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the scale value of the object. <a href="classtvg_1_1Paint.html#a5c057876185525c5723215f95a3984f2">More...</a><br /></td></tr>
|
|
<tr class="separator:a5c057876185525c5723215f95a3984f2 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae896f56bfa51c98a50eee3f2bb62e41e inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#ae896f56bfa51c98a50eee3f2bb62e41e">translate</a> (float x, float y) noexcept</td></tr>
|
|
<tr class="memdesc:ae896f56bfa51c98a50eee3f2bb62e41e inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the values by which the object is moved in a two-dimensional space. <a href="classtvg_1_1Paint.html#ae896f56bfa51c98a50eee3f2bb62e41e">More...</a><br /></td></tr>
|
|
<tr class="separator:ae896f56bfa51c98a50eee3f2bb62e41e inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac9f6ba428afe884bcc2861de0a2a96f4 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#ac9f6ba428afe884bcc2861de0a2a96f4">transform</a> (const <a class="el" href="structtvg_1_1Matrix.html">Matrix</a> &m) noexcept</td></tr>
|
|
<tr class="memdesc:ac9f6ba428afe884bcc2861de0a2a96f4 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the matrix of the affine transformation for the object. <a href="classtvg_1_1Paint.html#ac9f6ba428afe884bcc2861de0a2a96f4">More...</a><br /></td></tr>
|
|
<tr class="separator:ac9f6ba428afe884bcc2861de0a2a96f4 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad1e49b6eb81e87bd860f19e1b92c574b inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structtvg_1_1Matrix.html">Matrix</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#ad1e49b6eb81e87bd860f19e1b92c574b">transform</a> () noexcept</td></tr>
|
|
<tr class="memdesc:ad1e49b6eb81e87bd860f19e1b92c574b inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Gets the matrix of the affine transformation of the object. <a href="classtvg_1_1Paint.html#ad1e49b6eb81e87bd860f19e1b92c574b">More...</a><br /></td></tr>
|
|
<tr class="separator:ad1e49b6eb81e87bd860f19e1b92c574b inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2f25b71fed3ae390eb8051c7ea65aebf inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a2f25b71fed3ae390eb8051c7ea65aebf">opacity</a> (uint8_t o) noexcept</td></tr>
|
|
<tr class="memdesc:a2f25b71fed3ae390eb8051c7ea65aebf inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the opacity of the object. <a href="classtvg_1_1Paint.html#a2f25b71fed3ae390eb8051c7ea65aebf">More...</a><br /></td></tr>
|
|
<tr class="separator:a2f25b71fed3ae390eb8051c7ea65aebf inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2e2d077b820d1cfd6502a86e0221638b inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a2e2d077b820d1cfd6502a86e0221638b">composite</a> (std::unique_ptr< <a class="el" href="classtvg_1_1Paint.html">Paint</a> > target, <a class="el" href="group__ThorVG.html#gaabdf94ada64e69d06deabc5aa6576f87">CompositeMethod</a> method) noexcept</td></tr>
|
|
<tr class="memdesc:a2e2d077b820d1cfd6502a86e0221638b inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the composition target object and the composition method. <a href="classtvg_1_1Paint.html#a2e2d077b820d1cfd6502a86e0221638b">More...</a><br /></td></tr>
|
|
<tr class="separator:a2e2d077b820d1cfd6502a86e0221638b inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7e1214a5dc2f3c19ddeedc5371c4e488 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a7e1214a5dc2f3c19ddeedc5371c4e488">blend</a> (<a class="el" href="group__ThorVG.html#ga4dd2f3776540c10b565e0446aa8e9e02">BlendMethod</a> method) const noexcept</td></tr>
|
|
<tr class="memdesc:a7e1214a5dc2f3c19ddeedc5371c4e488 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Sets the blending method for the paint object. <a href="classtvg_1_1Paint.html#a7e1214a5dc2f3c19ddeedc5371c4e488">More...</a><br /></td></tr>
|
|
<tr class="separator:a7e1214a5dc2f3c19ddeedc5371c4e488 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aed5a6ad8edd827a378111b590ed7755d inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top">TVG_DEPRECATED <a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#aed5a6ad8edd827a378111b590ed7755d">bounds</a> (float *x, float *y, float *w, float *h) const noexcept</td></tr>
|
|
<tr class="separator:aed5a6ad8edd827a378111b590ed7755d inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1b51b7344eac48d285c073bc488197d3 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a1b51b7344eac48d285c073bc488197d3">bounds</a> (float *x, float *y, float *w, float *h, bool transformed) const noexcept</td></tr>
|
|
<tr class="memdesc:a1b51b7344eac48d285c073bc488197d3 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Gets the axis-aligned bounding box of the paint object. <a href="classtvg_1_1Paint.html#a1b51b7344eac48d285c073bc488197d3">More...</a><br /></td></tr>
|
|
<tr class="separator:a1b51b7344eac48d285c073bc488197d3 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a71afac69fe1e7c352460be5878812635 inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtvg_1_1Paint.html">Paint</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a71afac69fe1e7c352460be5878812635">duplicate</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a71afac69fe1e7c352460be5878812635 inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Duplicates the object. <a href="classtvg_1_1Paint.html#a71afac69fe1e7c352460be5878812635">More...</a><br /></td></tr>
|
|
<tr class="separator:a71afac69fe1e7c352460be5878812635 inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2ee7517b8bfad47e0f999ba3450e0e3e inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a2ee7517b8bfad47e0f999ba3450e0e3e">opacity</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a2ee7517b8bfad47e0f999ba3450e0e3e inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Gets the opacity value of the object. <a href="classtvg_1_1Paint.html#a2ee7517b8bfad47e0f999ba3450e0e3e">More...</a><br /></td></tr>
|
|
<tr class="separator:a2ee7517b8bfad47e0f999ba3450e0e3e inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aefe4ade5b1b6bc13d518bd5f968af3ee inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#gaabdf94ada64e69d06deabc5aa6576f87">CompositeMethod</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#aefe4ade5b1b6bc13d518bd5f968af3ee">composite</a> (const <a class="el" href="classtvg_1_1Paint.html">Paint</a> **target) const noexcept</td></tr>
|
|
<tr class="memdesc:aefe4ade5b1b6bc13d518bd5f968af3ee inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Gets the composition target object and the composition method. <a href="classtvg_1_1Paint.html#aefe4ade5b1b6bc13d518bd5f968af3ee">More...</a><br /></td></tr>
|
|
<tr class="separator:aefe4ade5b1b6bc13d518bd5f968af3ee inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4bd3efb580822b2db64034e3f3cd18ad inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ThorVG.html#ga4dd2f3776540c10b565e0446aa8e9e02">BlendMethod</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a4bd3efb580822b2db64034e3f3cd18ad">blend</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a4bd3efb580822b2db64034e3f3cd18ad inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Gets the blending method of the object. <a href="classtvg_1_1Paint.html#a4bd3efb580822b2db64034e3f3cd18ad">More...</a><br /></td></tr>
|
|
<tr class="separator:a4bd3efb580822b2db64034e3f3cd18ad inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a37466e9eff2de62ff15c9df3d72b656d inherit pub_methods_classtvg_1_1Paint"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Paint.html#a37466e9eff2de62ff15c9df3d72b656d">identifier</a> () const noexcept</td></tr>
|
|
<tr class="memdesc:a37466e9eff2de62ff15c9df3d72b656d inherit pub_methods_classtvg_1_1Paint"><td class="mdescLeft"> </td><td class="mdescRight">Return the unique id value of the paint instance. <a href="classtvg_1_1Paint.html#a37466e9eff2de62ff15c9df3d72b656d">More...</a><br /></td></tr>
|
|
<tr class="separator:a37466e9eff2de62ff15c9df3d72b656d inherit pub_methods_classtvg_1_1Paint"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
|
Static Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:aa91a801f4f9e8fd8e1567d014c280cb9"><td class="memItemLeft" align="right" valign="top">static std::unique_ptr< <a class="el" href="classtvg_1_1Shape.html">Shape</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#aa91a801f4f9e8fd8e1567d014c280cb9">gen</a> () noexcept</td></tr>
|
|
<tr class="memdesc:aa91a801f4f9e8fd8e1567d014c280cb9"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties.">Shape</a> object. <a href="classtvg_1_1Shape.html#aa91a801f4f9e8fd8e1567d014c280cb9">More...</a><br /></td></tr>
|
|
<tr class="separator:aa91a801f4f9e8fd8e1567d014c280cb9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a13df43a335dadaea01769a726dc9ddfd"><td class="memItemLeft" align="right" valign="top">static uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtvg_1_1Shape.html#a13df43a335dadaea01769a726dc9ddfd">identifier</a> () noexcept</td></tr>
|
|
<tr class="memdesc:a13df43a335dadaea01769a726dc9ddfd"><td class="mdescLeft"> </td><td class="mdescRight">Return the unique id value of this class. <a href="classtvg_1_1Shape.html#a13df43a335dadaea01769a726dc9ddfd">More...</a><br /></td></tr>
|
|
<tr class="separator:a13df43a335dadaea01769a726dc9ddfd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>A class representing two-dimensional figures and their properties. </p>
|
|
<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#a8ef2587269a01153c9ea4ca4a8d31b49" 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>
|
|
<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>
|
|
</div><h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a2f003a843ff42f6cee6a726f543836e3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2f003a843ff42f6cee6a726f543836e3">◆ </a></span>appendArc()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendArc </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>cx</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>cy</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>radius</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>startAngle</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>sweep</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>pie</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Appends a circular arc to the path. </p>
|
|
<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>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cx</td><td>The horizontal coordinate of the center of the arc. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cy</td><td>The vertical coordinate of the center of the arc. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">radius</td><td>The radius of the arc. </td></tr>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a52eccb2815eaa1231da9c389cd92ffa1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a52eccb2815eaa1231da9c389cd92ffa1">◆ </a></span>appendCircle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendCircle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>cx</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>cy</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>rx</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>ry</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Appends an ellipse to the path. </p>
|
|
<p>The position of the ellipse is specified by the coordinates of its center - <code>cx</code> and <code>cy</code> arguments.</p>
|
|
<p>The ellipse is treated as a new sub-path - it is not connected with the previous sub-path.</p>
|
|
<p>The value of the current point is set to (<code>cx</code>, <code>cy</code> - <code>ry</code>).</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cx</td><td>The horizontal coordinate of the center of the ellipse. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cy</td><td>The vertical coordinate of the center of the ellipse. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">rx</td><td>The x-axis radius of the ellipse. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ry</td><td>The y-axis radius of the ellipse. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3588ea30776a747a22b6ee82dadb9717"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3588ea30776a747a22b6ee82dadb9717">◆ </a></span>appendPath()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendPath </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> * </td>
|
|
<td class="paramname"><em>cmds</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint32_t </td>
|
|
<td class="paramname"><em>cmdCnt</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="structtvg_1_1Point.html">Point</a> * </td>
|
|
<td class="paramname"><em>pts</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint32_t </td>
|
|
<td class="paramname"><em>ptsCnt</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Appends a given sub-path to the path. </p>
|
|
<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. If the number of points in the <code>pts</code> array is different than the number required by the <code>cmds</code> array, the shape with this sub-path will not be displayed on the screen.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cmds</td><td>The array of the commands in the sub-path. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cmdCnt</td><td>The number of the sub-path's commands. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">pts</td><td>The array of the two-dimensional points. </td></tr>
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8ef2587269a01153c9ea4ca4a8d31b49"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8ef2587269a01153c9ea4ca4a8d31b49">◆ </a></span>appendRect()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> appendRect </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>rx</em> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>ry</em> = <code>0</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Appends a rectangle to the path. </p>
|
|
<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>
|
|
<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>
|
|
<p>The rectangle is treated as a new sub-path - it is not connected with the previous sub-path.</p>
|
|
<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>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
<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>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>The width of the rectangle. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>The height of the rectangle. </td></tr>
|
|
<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>
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2765987a2641ac1db76d5c64f00da697"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2765987a2641ac1db76d5c64f00da697">◆ </a></span>close()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> close </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Closes the current sub-path by drawing a line from the current point to the initial point of the sub-path. </p>
|
|
<p>The value of the current point is set to the initial point of the closed sub-path.</p>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7b71316176172fa052373bdb7c9efd29"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7b71316176172fa052373bdb7c9efd29">◆ </a></span>cubicTo()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> cubicTo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>cx1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>cy1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>cx2</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>cy2</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<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>
|
|
<p>The value of the current point is set to the given end-point.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cx1</td><td>The horizontal coordinate of the 1st control point. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cy1</td><td>The vertical coordinate of the 1st control point. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cx2</td><td>The horizontal coordinate of the 2nd control point. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cy2</td><td>The vertical coordinate of the 2nd control point. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The horizontal coordinate of the end-point of the curve. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The vertical coordinate of the end-point of the curve.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a989edf4b4f68532ff25004fc0c7fe826"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a989edf4b4f68532ff25004fc0c7fe826">◆ </a></span>fill() <span class="overload">[1/4]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classtvg_1_1Fill.html">Fill</a>* fill </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the pointer to the gradient fill of the shape. </p>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a02b95c15d0c2006134a95cdadf64e3f4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a02b95c15d0c2006134a95cdadf64e3f4">◆ </a></span>fill() <span class="overload">[2/4]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fill </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a> </td>
|
|
<td class="paramname"><em>r</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<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>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">r</td><td>The fill rule value. The default value is <code><a class="el" href="group__ThorVG.html#gga9a534b0377c9ca41983d53b0dae0d5a4a268b61c62382fc1f9ca5cf52a4fece32" title="A line from the point to a location outside the shape is drawn. The intersections of the line with th...">FillRule::Winding</a></code>. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad0cb7b2ec8d18d7c6d366cc84741682c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad0cb7b2ec8d18d7c6d366cc84741682c">◆ </a></span>fill() <span class="overload">[3/4]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fill </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::unique_ptr< <a class="el" href="classtvg_1_1Fill.html">Fill</a> > </td>
|
|
<td class="paramname"><em>f</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the gradient fill for all of the figures from the path. </p>
|
|
<p>The parts of the shape defined as inner are filled.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">f</td><td>The unique pointer to the gradient fill.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0552551ad67547043167f7f382174e89"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0552551ad67547043167f7f382174e89">◆ </a></span>fill() <span class="overload">[4/4]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fill </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>r</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>g</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>b</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>a</em> = <code>255</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the solid color for all of the figures from the path. </p>
|
|
<p>The parts of the shape defined as inner are colored.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<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>
|
|
<dd>
|
|
ClipPath won't use the fill values. (see: enum class <a class="el" href="group__ThorVG.html#ggaabdf94ada64e69d06deabc5aa6576f87a60575a18ece363c72551a982450efd52" title="The intersection of the source and the target is determined and only the resulting pixels from the so...">CompositeMethod::ClipPath</a>) </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8b4f00f01c2d24d6be2962ddf04a70ca"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8b4f00f01c2d24d6be2962ddf04a70ca">◆ </a></span>fillColor()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> fillColor </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>r</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>g</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>b</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>a</em> = <code>nullptr</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the solid color of the shape. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">r</td><td>The red color channel value in the range [0 ~ 255]. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">g</td><td>The green color channel value in the range [0 ~ 255]. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">b</td><td>The blue color channel value in the range [0 ~ 255]. </td></tr>
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac14cd997439012e1abf6c1b8d9f3d4aa"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac14cd997439012e1abf6c1b8d9f3d4aa">◆ </a></span>fillRule()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga9a534b0377c9ca41983d53b0dae0d5a4">FillRule</a> fillRule </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the fill rule value. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>The fill rule value of the shape. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa91a801f4f9e8fd8e1567d014c280cb9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa91a801f4f9e8fd8e1567d014c280cb9">◆ </a></span>gen()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static std::unique_ptr<<a class="el" href="classtvg_1_1Shape.html">Shape</a>> gen </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<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>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a13df43a335dadaea01769a726dc9ddfd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a13df43a335dadaea01769a726dc9ddfd">◆ </a></span>identifier()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static uint32_t identifier </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return the unique id value of this class. </p>
|
|
<p>This method can be referred for identifying the <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties.">Shape</a> class type.</p>
|
|
<dl class="section return"><dt>Returns</dt><dd>The type id of the <a class="el" href="classtvg_1_1Shape.html" title="A class representing two-dimensional figures and their properties.">Shape</a> class. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9c28e9bbc6bd22dc62e891ffb3fa02cd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9c28e9bbc6bd22dc62e891ffb3fa02cd">◆ </a></span>lineTo()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> lineTo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<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>
|
|
<p>The value of the current point is set to the given end-point.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The horizontal coordinate of the end-point of the line. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The vertical coordinate of the end-point of the line.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a59f97aaa973af7c58081690433286461"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a59f97aaa973af7c58081690433286461">◆ </a></span>moveTo()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> moveTo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>y</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the initial point of the sub-path. </p>
|
|
<p>The value of the current point is set to the given point.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa7f1bade5864d60badcb5fae2b0fe034"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa7f1bade5864d60badcb5fae2b0fe034">◆ </a></span>order()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> order </td>
|
|
<td>(</td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>strokeFirst</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the rendering order of the stroke and the fill. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">strokeFirst</td><td>If <code>true</code> the stroke is rendered before the fill, otherwise the stroke is rendered as the second one (the default option).</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section since"><dt>Since</dt><dd>0.10 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac14d90c2c0130b66a9a33eb7d08101b7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac14d90c2c0130b66a9a33eb7d08101b7">◆ </a></span>pathCommands()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint32_t pathCommands </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="group__ThorVG.html#ga6876ed676934f4dbcc19b1b53c153cc1">PathCommand</a> ** </td>
|
|
<td class="paramname"><em>cmds</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the commands data of the path. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>The length of the <code>cmds</code> array when succeed, zero otherwise. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a818b1b358f0ed7ba448b6d804e087923"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a818b1b358f0ed7ba448b6d804e087923">◆ </a></span>pathCoords()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint32_t pathCoords </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="structtvg_1_1Point.html">Point</a> ** </td>
|
|
<td class="paramname"><em>pts</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the points values of the path. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>The length of the <code>pts</code> array when succeed, zero otherwise. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8014640e362066901c2e2ebe6ddd1251"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8014640e362066901c2e2ebe6ddd1251">◆ </a></span>reset()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> reset </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Resets the properties of the shape path. </p>
|
|
<p>The transformation matrix, the color, the fill and the stroke properties are retained.</p>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae79102d63897ad86a96afb4436c731e4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae79102d63897ad86a96afb4436c731e4">◆ </a></span>stroke() <span class="overload">[1/6]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const float * </td>
|
|
<td class="paramname"><em>dashPattern</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint32_t </td>
|
|
<td class="paramname"><em>cnt</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the dash pattern of the stroke. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">cnt</td><td>The length of the <code>dashPattern</code> array.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<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 <code>dashPattern</code> is <code>nullptr</code> and <code>cnt</code> > 0, <code>cnt</code> is zero, any of the dash pattern values is zero or less.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section note"><dt>Note</dt><dd>To reset the stroke dash pattern, pass <code>nullptr</code> to <code>dashPattern</code> and zero to <code>cnt</code>. </dd></dl>
|
|
<dl class="section warning"><dt>Warning</dt><dd><code>cnt</code> must be greater than 1 if the dash pattern is valid. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5ce764cd1970c7a7d76b209c4441bc73"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5ce764cd1970c7a7d76b209c4441bc73">◆ </a></span>stroke() <span class="overload">[2/6]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>width</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the stroke width for all of the figures from the path. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>The width of the stroke. The default value is 0. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab0b09b5064dff4931db9ea898b36dcc1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab0b09b5064dff4931db9ea898b36dcc1">◆ </a></span>stroke() <span class="overload">[3/6]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::unique_ptr< <a class="el" href="classtvg_1_1Fill.html">Fill</a> > </td>
|
|
<td class="paramname"><em>f</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the gradient fill of the stroke for all of the figures from the path. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">f</td><td>The gradient fill.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a39068c9686211de862844dacabf92375"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a39068c9686211de862844dacabf92375">◆ </a></span>stroke() <span class="overload">[4/6]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a> </td>
|
|
<td class="paramname"><em>cap</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the cap style of the stroke in the open sub-paths. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac416cad0d9e15079a112b1f609d19177"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac416cad0d9e15079a112b1f609d19177">◆ </a></span>stroke() <span class="overload">[5/6]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a> </td>
|
|
<td class="paramname"><em>join</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the join style for stroked path segments. </p>
|
|
<p>The join style is used for joining the two line segment while stroking the path.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aad81d8f86d9432eac25b00cc675c8d7f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aad81d8f86d9432eac25b00cc675c8d7f">◆ </a></span>stroke() <span class="overload">[6/6]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> stroke </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>r</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>g</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>b</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>a</em> = <code>255</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the color of the stroke for all of the figures from the path. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0948989a7f0a9e253234cd9f53784674"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0948989a7f0a9e253234cd9f53784674">◆ </a></span>strokeCap()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga6239974a858100e129f1e0b8ffac4f96">StrokeCap</a> strokeCap </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the cap style used for stroking the path. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>The cap style value of the stroke. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6705be0d6481277e9bf17cc918597665"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6705be0d6481277e9bf17cc918597665">◆ </a></span>strokeColor()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> strokeColor </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>r</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>g</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>b</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>a</em> = <code>nullptr</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the color of the shape's stroke. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">r</td><td>The red color channel value in the range [0 ~ 255]. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">g</td><td>The green color channel value in the range [0 ~ 255]. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">b</td><td>The blue color channel value in the range [0 ~ 255]. </td></tr>
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="afbc1e469219ee86df47d216f58af282a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#afbc1e469219ee86df47d216f58af282a">◆ </a></span>strokeDash()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint32_t strokeDash </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const float ** </td>
|
|
<td class="paramname"><em>dashPattern</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the dash pattern of the stroke. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<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>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>The length of the <code>dashPattern</code> array. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a08ce41b2d01d2d43980e5c26f4df111e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a08ce41b2d01d2d43980e5c26f4df111e">◆ </a></span>strokeFill()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classtvg_1_1Fill.html">Fill</a>* strokeFill </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the pointer to the gradient fill of the stroke. </p>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aac0235df4172e9c079689e5291c7ad5a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aac0235df4172e9c079689e5291c7ad5a">◆ </a></span>strokeJoin()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#gaba8b7236c41a171289aef2f3c71eef51">StrokeJoin</a> strokeJoin </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the join style value used for stroking the path. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>The join style value of the stroke. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a84ec91023314c914e900cade78a9095d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a84ec91023314c914e900cade78a9095d">◆ </a></span>strokeMiterlimit() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">float strokeMiterlimit </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the stroke miterlimit. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>The stroke miterlimit value when succeed, 4 if no stroke was set.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>0.11 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad8fb8f42c07ac68ef83383b05203ff6f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad8fb8f42c07ac68ef83383b05203ff6f">◆ </a></span>strokeMiterlimit() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> strokeMiterlimit </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>miterlimit</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the stroke miterlimit. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">miterlimit</td><td>The miterlimit imposes a limit on the extent of the stroke join, when the <code><a class="el" href="group__ThorVG.html#ggaba8b7236c41a171289aef2f3c71eef51ae4396f81cd926bb129ccf3c147c64514" title="The outer corner of the joined path segments is spiked. The spike is created by extension beyond the ...">StrokeJoin::Miter</a></code> join style is set. The default value is 4.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">Result::InvalidArgument</td><td>for <code>miterlimit</code> values less than zero.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section since"><dt>Since</dt><dd>0.11 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5e0762495957f05713a60540984fdae4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5e0762495957f05713a60540984fdae4">◆ </a></span>strokeTrim() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool strokeTrim </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float * </td>
|
|
<td class="paramname"><em>begin</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float * </td>
|
|
<td class="paramname"><em>end</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the trim of the stroke along the defined path segment. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">begin</td><td>The starting point of the segment to display along the path. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">end</td><td>Specifies the end of the segment to display along the path.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if trimming is applied simultaneously to all paths of the shape, <code>false</code> otherwise.</dd></dl>
|
|
<dl class="section note"><dt>Note</dt><dd>Experimental API </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac69db0796d8e184334add6b0b94b1898"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac69db0796d8e184334add6b0b94b1898">◆ </a></span>strokeTrim() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__ThorVG.html#ga28287671eaf7406afd604bd055ba4066">Result</a> strokeTrim </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>begin</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>end</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>simultaneous</em> = <code>true</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the trim of the stroke along the defined path segment, allowing control over which part of the stroke is visible. </p>
|
|
<p>The values of the arguments <code>begin</code>, <code>end</code>, and <code>offset</code> are in the range of 0.0 to 1.0, representing the beginning of the path and the end, respectively.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">begin</td><td>Specifies the start of the segment to display along the path. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">end</td><td>Specifies the end of the segment to display along the path. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">simultaneous</td><td>Determines how to trim multiple paths within a single shape. If set to <code>true</code> (default), trimming is applied simultaneously to all paths; Otherwise, all paths are treated as a single entity with a combined length equal to the sum of their individual lengths and are trimmed as such.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section note"><dt>Note</dt><dd>Experimental API </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1536ec32e91c29dd8300b0d4354773f9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1536ec32e91c29dd8300b0d4354773f9">◆ </a></span>strokeWidth()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">float strokeWidth </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the stroke width. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>The stroke width value when succeed, zero if no stroke was set. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><b>tvg</b></li><li class="navelem"><a class="el" href="classtvg_1_1Shape.html">Shape</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|