</div>
<h1 id="CONSTANTS">CONSTANTS</h1><p><a href="#TOP" class="toplink">Top</a></p>
<div id="CONSTANTS_CONTENT">
-<p>The constants are not exported by default. You can export them into your namespace by doing:</p>
-<pre> use SDL::Pango ':direction';
+<p>The constants are exported by default. You can avoid this by doing:</p>
+<pre> use SDL::Pango ();
</pre>
-<p>or access them directly:</p>
+<p>and access them directly:</p>
<pre> SDL::Pango::SDLPANGO_DIRECTION_NEUTRAL;
</pre>
-<p>Available constants:</p>
+<p>or by choosing the export tags below:</p>
+<p>Export tag: ':align'</p>
+<dl>
+ <dt>SDLPANGO_ALIGN_LEFT</dt>
+ <dd>
+ <p>Left alignment</p>
+ </dd>
+ <dt>SDLPANGO_ALIGN_CENTER</dt>
+ <dd>
+ <p>Centered</p>
+ </dd>
+ <dt>SDLPANGO_ALIGN_RIGHT</dt>
+ <dd>
+ <p>Right alignment</p>
+ </dd>
+</dl>
+<p>Export tag: ':direction'</p>
<dl>
<dt>SDLPANGO_DIRECTION_LTR</dt>
<dd>
<h2 id="set_text">set_text</h2>
<div id="set_text_CONTENT">
<pre> SDL::Pango::set_text($context, $text, $length);
+ SDL::Pango::set_text($context, $text, $length, $alignment);
</pre>
<p>Set plain text to context. Text must be utf-8. <code>$length</code> chars will be rendered, pass <code>-1</code> to render the whole text.</p>
+<p><code>$alignment</code> can be:</p>
+<ul>
+ <li>SDLPANGO_ALIGN_LEFT (default) </li>
+ <li>SDLPANGO_ALIGN_CENTER </li>
+ <li>SDLPANGO_ALIGN_RIGHT</li>
+</ul>
+
</div>
<h2 id="set_markup">set_markup</h2>