<!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 Pen</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ui-controls-box.setpadded.html">UI\Controls\Box::setPadded</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-pen.clip.html">UI\Draw\Pen::clip</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-pen" class="reference"> <h1 class="title">Draw Pen</h1> <div class="partintro"><p class="verinfo">(PHP 7, UI 0.9.9)</p> <div class="section" id="ui-draw-pen.intro"> <h2 class="title">Introduction</h2> <p class="para"> The Pen is passed to the Area Draw event handler, it is used for clipping, filling, stroking, and writing to Draw Paths. </p> </div> <div class="section" id="ui-draw-pen.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <span class="modifier">final</span> <strong class="classname">UI\Draw\Pen</strong> </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-pen.clip.html" class="methodname">clip</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Draw\Path">UI\Draw\Path</span></span> <code class="parameter">$path</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.fill.html" class="methodname">fill</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Draw\Path">UI\Draw\Path</span></span> <code class="parameter">$path</code></span> , <span class="methodparam"><span class="type"><span class="type UI\Draw\Brush">UI\Draw\Brush</span></span> <code class="parameter">$with</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.fill.html" class="methodname">fill</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Draw\Path">UI\Draw\Path</span></span> <code class="parameter">$path</code></span> , <span class="methodparam"><span class="type"><span class="type UI\Draw\Color">UI\Draw\Color</span></span> <code class="parameter">$with</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.fill.html" class="methodname">fill</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Draw\Path">UI\Draw\Path</span></span> <code class="parameter">$path</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$with</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.restore.html" class="methodname">restore</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-pen.save.html" class="methodname">save</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-pen.stroke.html" class="methodname">stroke</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Draw\Path">UI\Draw\Path</span></span> <code class="parameter">$path</code></span> , <span class="methodparam"><span class="type"><span class="type UI\Draw\Brush">UI\Draw\Brush</span></span> <code class="parameter">$with</code></span> , <span class="methodparam"><span class="type"><span class="type UI\Draw\Stroke">UI\Draw\Stroke</span></span> <code class="parameter">$stroke</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.stroke.html" class="methodname">stroke</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Draw\Path">UI\Draw\Path</span></span> <code class="parameter">$path</code></span> , <span class="methodparam"><span class="type"><span class="type UI\Draw\Color">UI\Draw\Color</span></span> <code class="parameter">$with</code></span> , <span class="methodparam"><span class="type"><span class="type UI\Draw\Stroke">UI\Draw\Stroke</span></span> <code class="parameter">$stroke</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.stroke.html" class="methodname">stroke</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Draw\Path">UI\Draw\Path</span></span> <code class="parameter">$path</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$with</code></span> , <span class="methodparam"><span class="type"><span class="type UI\Draw\Stroke">UI\Draw\Stroke</span></span> <code class="parameter">$stroke</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.transform.html" class="methodname">transform</a></span> ( <span class="methodparam"><span class="type"><span class="type UI\Draw\Matrix">UI\Draw\Matrix</span></span> <code class="parameter">$matrix</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="ui-draw-pen.write.html" class="methodname">write</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\Draw\Text\Layout">UI\Draw\Text\Layout</span></span> <code class="parameter">$layout</code></span> )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="ui-draw-pen.clip.html">UI\Draw\Pen::clip</a> — Clip a Path</li><li><a href="ui-draw-pen.fill.html">UI\Draw\Pen::fill</a> — Fill a Path</li><li><a href="ui-draw-pen.restore.html">UI\Draw\Pen::restore</a> — Restore</li><li><a href="ui-draw-pen.save.html">UI\Draw\Pen::save</a> — Save</li><li><a href="ui-draw-pen.stroke.html">UI\Draw\Pen::stroke</a> — Stroke a Path</li><li><a href="ui-draw-pen.transform.html">UI\Draw\Pen::transform</a> — Matrix Transform</li><li><a href="ui-draw-pen.write.html">UI\Draw\Pen::write</a> — Draw Text at Point</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ui-controls-box.setpadded.html">UI\Controls\Box::setPadded</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-pen.clip.html">UI\Draw\Pen::clip</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>