<!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 Text Layout</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.ui-draw-text-layout.html">UI\Draw\Text\Layout</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-text-layout.setcolor.html">UI\Draw\Text\Layout::setColor</a></div> <div class="up"><a href="class.ui-draw-text-layout.html">UI\Draw\Text\Layout</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="ui-draw-text-layout.construct" class="refentry"> <div class="refnamediv"> <h1 class="refname">UI\Draw\Text\Layout::__construct</h1> <p class="verinfo">(PHP 7, UI 0.9.9)</p><p class="refpurpose"><span class="refname">UI\Draw\Text\Layout::__construct</span> — <span class="dc-title">Construct a new Text Layout</span></p> </div> <div class="refsect1 description" id="refsect1-ui-draw-text-layout.construct-description"> <h3 class="title">Description</h3> <div class="constructorsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>UI\Draw\Text\Layout::__construct</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$text</code></span> , <span class="methodparam"><span class="type"><span class="type UI\Draw\Text\Font">UI\Draw\Text\Font</span></span> <code class="parameter">$font</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$width</code></span> )</div> <p class="para rdfs-comment"> Shall construct a new Text Layout </p> </div> <div class="refsect1 parameters" id="refsect1-ui-draw-text-layout.construct-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <code class="parameter">text</code></dt> <dd> <p class="para"> The text for the layout </p> </dd> <dt> <code class="parameter">font</code></dt> <dd> <p class="para"> The font to use for writing </p> </dd> <dt> <code class="parameter">width</code></dt> <dd> <p class="para"> The width of the layout </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-text-layout.html">UI\Draw\Text\Layout</a></div> <div class="next" style="text-align: right; float: right;"><a href="ui-draw-text-layout.setcolor.html">UI\Draw\Text\Layout::setColor</a></div> <div class="up"><a href="class.ui-draw-text-layout.html">UI\Draw\Text\Layout</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>