<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Draw Path</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ui-draw-pen.write.html">UI\Draw\Pen::write</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-path.addrectangle.html">UI\Draw\Path::addRectangle</a></div> <div class="up"><a href="book.ui.html">UI</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.ui-draw-path" class="reference"> <h1 class="title">Draw Path</h1> <div class="partintro"><p class="verinfo">(PHP 7, UI 0.9.9)</p> <div class="section" id="ui-draw-path.intro"> <h2 class="title">Introduction</h2> <p class="para"> A Draw Path guides a Draw Pen, telling the Pen where to draw on an Area. </p> </div> <div class="section" id="ui-draw-path.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">UI\Draw\Path</strong> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">integer</span> <var class="fieldsynopsis_varname"><a href="class.ui-draw-path.html#ui-draw-path.constants.winding"><var class="varname">Winding</var></a></var> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">integer</span> <var class="fieldsynopsis_varname"><a href="class.ui-draw-path.html#ui-draw-path.constants.alternate"><var class="varname">Alternate</var></a></var> ;</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constructor */</div> <div class="constructorsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-path.construct.html" class="methodname">__construct</a></span> ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code><span class="initializer"> = UI\Draw\Path::Winding</span></span> ] )</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-path.addrectangle.html" class="methodname">addRectangle</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Point">UI\Point</span></span> <code class="parameter">$point</code></span> , <span class="methodparam"><span class="type"><span class="type UI\Size">UI\Size</span></span> <code class="parameter">$size</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-path.arcto.html" class="methodname">arcTo</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Point">UI\Point</span></span> <code class="parameter">$point</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$radius</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$sweep</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$negative</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-path.bezierto.html" class="methodname">bezierTo</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Point">UI\Point</span></span> <code class="parameter">$point</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$radius</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$sweep</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$negative</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-path.closefigure.html" class="methodname">closeFigure</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-path.end.html" class="methodname">end</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-path.lineto.html" class="methodname">lineTo</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Point">UI\Point</span></span> <code class="parameter">$point</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$radius</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$sweep</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$negative</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-path.newfigure.html" class="methodname">newFigure</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Point">UI\Point</span></span> <code class="parameter">$point</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-path.newfigurewitharc.html" class="methodname">newFigureWithArc</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Point">UI\Point</span></span> <code class="parameter">$point</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$radius</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$sweep</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$negative</code></span> )</div> }</div> </div> <div class="section" id="ui-draw-path.constants"> <h2 class="title">Predefined Constants</h2> <dl> <dt id="ui-draw-path.constants.winding"><strong><code>UI\Draw\Path::Winding</code></strong></dt> <dd> <p class="para"> This is the default draw path mode </p> </dd> <dt id="ui-draw-path.constants.alternate"><strong><code>UI\Draw\Path::Alternate</code></strong></dt> <dd> <p class="para"> This is the alternate draw path mode </p> </dd> </dl> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="ui-draw-path.addrectangle.html">UI\Draw\Path::addRectangle</a> — Draw a Rectangle</li><li><a href="ui-draw-path.arcto.html">UI\Draw\Path::arcTo</a> — Draw an Arc</li><li><a href="ui-draw-path.bezierto.html">UI\Draw\Path::bezierTo</a> — Draw Bezier Curve</li><li><a href="ui-draw-path.closefigure.html">UI\Draw\Path::closeFigure</a> — Close Figure</li><li><a href="ui-draw-path.construct.html">UI\Draw\Path::__construct</a> — Construct a new Path</li><li><a href="ui-draw-path.end.html">UI\Draw\Path::end</a> — Finalize Path</li><li><a href="ui-draw-path.lineto.html">UI\Draw\Path::lineTo</a> — Draw a Line</li><li><a href="ui-draw-path.newfigure.html">UI\Draw\Path::newFigure</a> — Draw Figure</li><li><a href="ui-draw-path.newfigurewitharc.html">UI\Draw\Path::newFigureWithArc</a> — Draw Figure with Arc</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ui-draw-pen.write.html">UI\Draw\Pen::write</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-path.addrectangle.html">UI\Draw\Path::addRectangle</a></div> <div class="up"><a href="book.ui.html">UI</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>