<!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>Construct a new Stroke</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.ui-draw-stroke.html">UI\Draw\Stroke</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-stroke.getcap.html">UI\Draw\Stroke::getCap</a></div> <div class="up"><a href="class.ui-draw-stroke.html">UI\Draw\Stroke</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="ui-draw-stroke.construct" class="refentry"> <div class="refnamediv"> <h1 class="refname">UI\Draw\Stroke::__construct</h1> <p class="verinfo">(PHP 7, UI 0.9.9)</p><p class="refpurpose"><span class="refname">UI\Draw\Stroke::__construct</span> — <span class="dc-title">Construct a new Stroke</span></p> </div> <div class="refsect1 description" id="refsect1-ui-draw-stroke.construct-description"> <h3 class="title">Description</h3> <div class="constructorsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>UI\Draw\Stroke::__construct</strong></span> ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$cap</code><span class="initializer"> = UI\Draw\Line\Cap::Flat</span></span> [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$join</code><span class="initializer"> = UI\Draw\Line\Join::Miter</span></span> [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$thickness</code><span class="initializer"> = 1</span></span> [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$miterLimit</code><span class="initializer"> = 10</span></span> ]]]] )</div> <p class="para rdfs-comment"> Shall construct a new Stroke </p> </div> <div class="refsect1 parameters" id="refsect1-ui-draw-stroke.construct-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <code class="parameter">cap</code></dt> <dd> <p class="para"> UI\Draw\Line\Cap::Flat, UI\Draw\Line\Cap::Round, or UI\Draw\Line\Cap::Square </p> </dd> <dt> <code class="parameter">join</code></dt> <dd> <p class="para"> UI\Draw\Line\Join::Miter, UI\Draw\Line\Join::Round, or UI\Draw\Line\Join::Bevel </p> </dd> <dt> <code class="parameter">thickness</code></dt> <dd> <p class="para"> The thickness of the stroke </p> </dd> <dt> <code class="parameter">miterLimit</code></dt> <dd> <p class="para"> Miter limit (default is sensible for all supported platforms) </p> </dd> </dl> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.ui-draw-stroke.html">UI\Draw\Stroke</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-stroke.getcap.html">UI\Draw\Stroke::getCap</a></div> <div class="up"><a href="class.ui-draw-stroke.html">UI\Draw\Stroke</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>