Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > e0521f28751d07a87e3a3d6c7d15a1ac > files > 1461

libgtkmm2.0_1-devel-2.2.1-2mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Pango::Layout class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
    <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
    <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
  <a class="qindex" href="../../index.html">Main Page</a> &nbsp;
  <a href="group__Widgets.html">Widgets</a> &nbsp;
  <a class="qindex" href="namespaces.html"> Namespaces</a> &nbsp;
  <a href="../../tutorial/html/index.html"> Book</a> &nbsp;
</center>
<hr width="100%"/>

<!-- Generated by Doxygen 1.3-rc1 -->
<h1>Pango::Layout Class Reference</h1>A Pango::Layout represents and entire paragraph of text. 
<a href="#_details">More...</a>
<p>
Inheritance diagram for Pango::Layout:<p><center><img src="classPango_1_1Layout__inherit__graph.png" border="0" usemap="#Pango_1_1Layout__inherit__map" alt="Inheritance graph"></center>
<map name="Pango_1_1Layout__inherit__map">
<area href="classGlib_1_1Object.html" shape="rect" coords="21,86,101,105" alt="">
<area href="classGlib_1_1ObjectBase.html" shape="rect" coords="7,17,116,36" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classPango_1_1Layout-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a0">~Layout</a> ()</td></tr>
<tr><td nowrap align=right valign=top>PangoLayout*&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a1">gobj</a> ()</td></tr>
<tr><td nowrap align=right valign=top>const PangoLayout*&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a2">gobj</a> () const</td></tr>
<tr><td nowrap align=right valign=top>PangoLayout*&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a3">gobj_copy</a> ()</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Layout&gt;&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a4">copy</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Does a deep copy-by-value of the <em>src</em> layout.</em> <a href="#a4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Context.html">Context</a>&gt;&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a5">get_context</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Retrieves the <a class="el" href="classPango_1_1Context.html">Pango::Context</a> used for this layout.</em> <a href="#a5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a6">set_attributes</a> (<a class="el" href="classPango_1_1AttrList.html">AttrList</a>&amp; attrs)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the text attributes for a layout object.</em> <a href="#a6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classPango_1_1AttrList.html">AttrList</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a7">get_attributes</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the attribute list for the layout, if any.</em> <a href="#a7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a8">set_text</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set the text of the layout.</em> <a href="#a8"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a9">get_text</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the text in the layout.</em> <a href="#a9"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a10">set_markup</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; markup)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the layout text and attribute list from marked-up text (see markup format).</em> <a href="#a10"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a11">set_markup</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; markup, gunichar accel_marker, gunichar&amp; accel_char)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the layout text and attribute list from marked-up text (see markup format).</em> <a href="#a11"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a12">set_font_description</a> (const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp; desc)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set the default font description for the layout.</em> <a href="#a12"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a13">set_width</a> (int width)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the width to which the lines of the Pango::Layout should be wrapped.</em> <a href="#a13"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a14">get_width</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the width to which the lines of the Pango::Layout should be wrapped.</em> <a href="#a14"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a15">set_wrap</a> (<a class="el" href="group__pangommEnums.html#a17">WrapMode</a> wrap)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the wrap style; the wrap style only has an effect if a width is set on the layout with pango_layout_set_width().</em> <a href="#a15"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="group__pangommEnums.html#a17">WrapMode</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a16">get_wrap</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get the wrap mode for the layout.</em> <a href="#a16"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a17">set_indent</a> (int indent)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the amount by which the first line should be shorter than the rest of the lines.</em> <a href="#a17"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a18">get_indent</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the amount by which the first line should be shorter than the rest of the lines.</em> <a href="#a18"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a19">set_spacing</a> (int spacing)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the amount of spacing between the lines of the layout.</em> <a href="#a19"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a20">get_spacing</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the amount of spacing between the lines of the layout.</em> <a href="#a20"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a21">set_justify</a> (bool justify=true)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets whether or not each complete line should be stretched to fill the entire width of the layout.</em> <a href="#a21"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a22">get_justify</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets whether or not each complete line should be stretched to fill the entire width of the layout.</em> <a href="#a22"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a23">set_alignment</a> (<a class="el" href="group__pangommEnums.html#a16">Alignment</a> alignment)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the alignment for the layout (how partial lines are positioned within the horizontal space available.).</em> <a href="#a23"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="group__pangommEnums.html#a16">Alignment</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a24">get_alignment</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the alignment for the layout (how partial lines are positioned within the horizontal space available.).</em> <a href="#a24"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a25">set_tabs</a> (<a class="el" href="classPango_1_1TabArray.html">TabArray</a>&amp; tabs)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the tabs to use for <em>layout</em> , overriding the default tabs (by default, tabs are every 8 spaces).</em> <a href="#a25"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classPango_1_1TabArray.html">TabArray</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a26">get_tabs</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get the current <a class="el" href="classPango_1_1TabArray.html">Pango::TabArray</a> used by this layout.</em> <a href="#a26"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a27">set_single_paragraph_mode</a> (bool setting=true)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>If <em>setting</em> is <code>true</code>, do not treat newlines and similar characters as paragraph separators; instead, keep all text in a single paragraph, and display a glyph for paragraph separator characters.</em> <a href="#a27"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a28">get_single_paragraph_mode</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Obtains the value set by pango_layout_set_single_paragraph_mode().</em> <a href="#a28"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a29">context_changed</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Forces recomputation of any state in the Pango::Layout that might depend on the layout's context.</em> <a href="#a29"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt;<a class="el" href="namespacePango.html#a20">LogAttr</a>&gt;&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a30">get_log_attrs</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Retrieve an array of logical attributes for each character in the layout.</em> <a href="#a30"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a31">index_to_pos</a> (int index) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert from an index within the layout to the onscreen position corresponding to the grapheme at that index, which is represented as rectangle.</em> <a href="#a31"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a32">get_cursor_pos</a> (int index, <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp; strong_pos, <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp; weak_pos) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Given an index within a layout, determine the positions that of the strong and weak cursors if the insertion point is at that index.</em> <a href="#a32"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a33">get_cursor_strong_pos</a> (int index) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Given an index within the layout, determine the positions that of the strong cursors if the insertion point is at that index.</em> <a href="#a33"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a34">get_cursor_weak_pos</a> (int index) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Given an index within the layout, determine the positions that of the weak cursors if the insertion point is at that index.</em> <a href="#a34"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a35">move_cursor_visually</a> (bool strong, int old_index, int old_trailing, int direction, int&amp; new_index, int&amp; new_trailing) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Computes a new cursor position from an old position and a count of positions to move visually.</em> <a href="#a35"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a36">xy_to_index</a> (int x, int y, int&amp; index, int&amp; trailing) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert from X and Y position within a layout to the byte index to the character at that logical position.</em> <a href="#a36"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a37">get_extents</a> (<a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp; ink_rect, <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp; logical_rect) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Compute the logical and ink extents of <em>layout</em> .</em> <a href="#a37"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a38">get_ink_extents</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Compute the ink extents of layout.</em> <a href="#a38"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a39">get_logical_extents</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Compute the logical extents of layout.</em> <a href="#a39"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a40">get_pixel_extents</a> (<a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp; ink_rect, <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp; logical_rect) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Compute the logical and ink extents of <em>layout</em> in device units.</em> <a href="#a40"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a41">get_pixel_ink_extents</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Compute the ink extents of the layout in device units.</em> <a href="#a41"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a42">get_pixel_logical_extents</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Compute the logical extents of the layout in device units.</em> <a href="#a42"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a43">get_size</a> (int&amp; width, int&amp; height) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Determine the logical width and height of a Pango::Layout in <a class="el" href="namespacePango.html">Pango</a> units.</em> <a href="#a43"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a44">get_pixel_size</a> (int&amp; width, int&amp; height) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Determine the logical width and height of a Pango::Layout in device units.</em> <a href="#a44"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a45">get_line_count</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Retrieve the count of lines for the <em>layout</em> .</em> <a href="#a45"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1LayoutLine.html">LayoutLine</a>&gt;&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a46">get_line</a> (int line) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Retrieves a particular line from a Pango::Layout.</em> <a href="#a46"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1SListHandle.html">SListHandle_LayoutLine</a>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a47">get_lines</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return the lines of the <em>layout</em> as a list.</em> <a href="#a47"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#a48">get_iter</a> (<a class="el" href="classPango_1_1LayoutIter.html">LayoutIter</a>&amp; iter)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets an iterator to iterate over the visual extents of the layout.</em> <a href="#a48"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Layout&gt;&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#d0">create</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Context.html">Context</a>&gt;&amp; context)</td></tr>
<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#b0">Layout</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Context.html">Context</a>&gt;&amp; context)</td></tr>
<tr><td colspan=2><br><h2>Related Functions</h2></td></tr>
<tr><td colspan=2>(Note that these are not member functions.)<br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Pango::Layout&gt;&nbsp;</td><td valign=bottom><a class="el" href="classPango_1_1Layout.html#k0">wrap</a> (PangoLayout* object, bool take_copy=false)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A Pango::Layout represents and entire paragraph of text.
<p>
It is initialized with a <a class="el" href="classPango_1_1Context.html">Pango::Context</a>, UTF-8 string and set of attributes for that string. Once that is done, the set of formatted lines can be extracted from the object, the layout can be rendered, and conversion between logical character positions within the layout's text, and the physical position of the resulting glyphs can be made. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="Pango::Layout::~Layout"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual Pango::Layout::~Layout </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="b0" doxytag="Pango::Layout::Layout"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> Pango::Layout::Layout </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Context.html">Context</a>&gt;&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>context</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [explicit, protected]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a29" doxytag="Pango::Layout::context_changed"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::context_changed </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Forces recomputation of any state in the Pango::Layout that might depend on the layout's context.
<p>
This function should be called if you make changes to the context subsequent to creating the layout.     </td>
  </tr>
</table>
<a name="a4" doxytag="Pango::Layout::copy"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Layout&gt; Pango::Layout::copy </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Does a deep copy-by-value of the <em>src</em> layout.
<p>
The attribute list, tab array, and text from the original layout are all copied by value. <dl compact><dt><b>Returns:</b></dt><dd>A new Pango::Layout identical to <em>src</em> . </dd></dl>
    </td>
  </tr>
</table>
<a name="d0" doxytag="Pango::Layout::create"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Layout&gt; Pango::Layout::create </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Context.html">Context</a>&gt;&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>context</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a24" doxytag="Pango::Layout::get_alignment"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="group__pangommEnums.html#a16">Alignment</a> Pango::Layout::get_alignment </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the alignment for the layout (how partial lines are positioned within the horizontal space available.).
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The alignment value. </dd></dl>
    </td>
  </tr>
</table>
<a name="a7" doxytag="Pango::Layout::get_attributes"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classPango_1_1AttrList.html">AttrList</a> Pango::Layout::get_attributes </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the attribute list for the layout, if any.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classPango_1_1AttrList.html">Pango::AttrList</a>. </dd></dl>
    </td>
  </tr>
</table>
<a name="a5" doxytag="Pango::Layout::get_context"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1Context.html">Context</a>&gt; Pango::Layout::get_context </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Retrieves the <a class="el" href="classPango_1_1Context.html">Pango::Context</a> used for this layout.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classPango_1_1Context.html">Pango::Context</a> for the layout. This does not have an additional refcount added, so if you want to keep a copy of this around, you must reference it yourself. </dd></dl>
    </td>
  </tr>
</table>
<a name="a32" doxytag="Pango::Layout::get_cursor_pos"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::get_cursor_pos </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>strong_pos</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>weak_pos</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Given an index within a layout, determine the positions that of the strong and weak cursors if the insertion point is at that index.
<p>
The position of each cursor is stored as a zero-width rectangle. The strong cursor location is the location where characters of the directionality equal to the base direction of the layout are inserted. The weak cursor location is the location where characters of the directionality opposite to the base direction of the layout are inserted. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>index_</em>&nbsp;</td><td>The byte index of the cursor. </td></tr>
    <tr><td valign=top><em>strong_pos</em>&nbsp;</td><td>Location to store the strong cursor position (may be <code>0</code>). </td></tr>
    <tr><td valign=top><em>weak_pos</em>&nbsp;</td><td>Location to store the weak cursor position (may be <code>0</code>). </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a33" doxytag="Pango::Layout::get_cursor_strong_pos"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> Pango::Layout::get_cursor_strong_pos </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Given an index within the layout, determine the positions that of the strong cursors if the insertion point is at that index.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>index</em>&nbsp;</td><td>The byte index of the cursor. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The strong cursor position. </dd></dl>
    </td>
  </tr>
</table>
<a name="a34" doxytag="Pango::Layout::get_cursor_weak_pos"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> Pango::Layout::get_cursor_weak_pos </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Given an index within the layout, determine the positions that of the weak cursors if the insertion point is at that index.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>index</em>&nbsp;</td><td>The byte index of the cursor. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The weak cursor position. </dd></dl>
    </td>
  </tr>
</table>
<a name="a37" doxytag="Pango::Layout::get_extents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::get_extents </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top"><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>ink_rect</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>logical_rect</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Compute the logical and ink extents of <em>layout</em> .
<p>
Logical extents are usually what you want for positioning things. The extents are given in layout coordinates; layout coordinates begin at the top left corner of the layout. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>ink_rect</em>&nbsp;</td><td><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> used to store the extents of the layout as drawn or <code>0</code> to indicate that the result is not needed. </td></tr>
    <tr><td valign=top><em>logical_rect</em>&nbsp;</td><td><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> used to store the logical extents of the layout or <code>0</code> to indicate that the result is not needed. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a18" doxytag="Pango::Layout::get_indent"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int Pango::Layout::get_indent </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the amount by which the first line should be shorter than the rest of the lines.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The indent. </dd></dl>
    </td>
  </tr>
</table>
<a name="a38" doxytag="Pango::Layout::get_ink_extents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> Pango::Layout::get_ink_extents </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Compute the ink extents of layout.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The extents of the layout as drawn. </dd></dl>
    </td>
  </tr>
</table>
<a name="a48" doxytag="Pango::Layout::get_iter"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::get_iter </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top"><a class="el" href="classPango_1_1LayoutIter.html">LayoutIter</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>iter</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets an iterator to iterate over the visual extents of the layout.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>iter</em>&nbsp;</td><td>Location to store the iterator. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a22" doxytag="Pango::Layout::get_justify"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Pango::Layout::get_justify </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets whether or not each complete line should be stretched to fill the entire width of the layout.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The justify. </dd></dl>
    </td>
  </tr>
</table>
<a name="a46" doxytag="Pango::Layout::get_line"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classPango_1_1LayoutLine.html">LayoutLine</a>&gt; Pango::Layout::get_line </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>line</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Retrieves a particular line from a Pango::Layout.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>line</em>&nbsp;</td><td>The index of a line, which must be between 0 and pango_layout_get_line_count(layout) - 1, inclusive. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The requested <a class="el" href="classPango_1_1LayoutLine.html">Pango::LayoutLine</a>, or <code>0</code> if the index is out of range. This layout line can be ref'ed and retained, but will become invalid if changes are made to the Pango::Layout. </dd></dl>
    </td>
  </tr>
</table>
<a name="a45" doxytag="Pango::Layout::get_line_count"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int Pango::Layout::get_line_count </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Retrieve the count of lines for the <em>layout</em> .
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The line count. </dd></dl>
    </td>
  </tr>
</table>
<a name="a47" doxytag="Pango::Layout::get_lines"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1SListHandle.html">SListHandle_LayoutLine</a> Pango::Layout::get_lines </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return the lines of the <em>layout</em> as a list.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A G::SList containing the lines in the layout. This points to internal data of the Pango::Layout and must be used with care. It will become invalid on any change to the layout's text or properties. </dd></dl>
    </td>
  </tr>
</table>
<a name="a30" doxytag="Pango::Layout::get_log_attrs"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt;<a class="el" href="namespacePango.html#a20">LogAttr</a>&gt; Pango::Layout::get_log_attrs </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Retrieve an array of logical attributes for each character in the layout.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>An array of logical attributes. </dd></dl>
    </td>
  </tr>
</table>
<a name="a39" doxytag="Pango::Layout::get_logical_extents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> Pango::Layout::get_logical_extents </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Compute the logical extents of layout.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The logical extents of the layout. </dd></dl>
    </td>
  </tr>
</table>
<a name="a40" doxytag="Pango::Layout::get_pixel_extents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::get_pixel_extents </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top"><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>ink_rect</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>logical_rect</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Compute the logical and ink extents of <em>layout</em> in device units.
<p>
See pango_layout_get_extents(); this function just calls pango_layout_get_extents() and then converts the extents to pixels using the <a class="el" href="namespacePango.html#a30">Pango::SCALE</a> factor. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>ink_rect</em>&nbsp;</td><td><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> used to store the extents of the layout as drawn or <code>0</code> to indicate that the result is not needed. </td></tr>
    <tr><td valign=top><em>logical_rect</em>&nbsp;</td><td><a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> used to store the logical extents of the layout or <code>0</code> to indicate that the result is not needed. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a41" doxytag="Pango::Layout::get_pixel_ink_extents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> Pango::Layout::get_pixel_ink_extents </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Compute the ink extents of the layout in device units.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The extents of the layout as drawn. </dd></dl>
    </td>
  </tr>
</table>
<a name="a42" doxytag="Pango::Layout::get_pixel_logical_extents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> Pango::Layout::get_pixel_logical_extents </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Compute the logical extents of the layout in device units.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The logical extents of the layout. </dd></dl>
    </td>
  </tr>
</table>
<a name="a44" doxytag="Pango::Layout::get_pixel_size"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::get_pixel_size </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>width</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>height</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Determine the logical width and height of a Pango::Layout in device units.
<p>
(pango_layout_get_size() returns the width and height in thousandths of a device unit.) This is simply a convenience function around pango_layout_get_extents. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>width</em>&nbsp;</td><td>Location to store the logical width, or <code>0</code>. </td></tr>
    <tr><td valign=top><em>height</em>&nbsp;</td><td>Location to store the logical height, or <code>0</code>. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a28" doxytag="Pango::Layout::get_single_paragraph_mode"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Pango::Layout::get_single_paragraph_mode </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Obtains the value set by pango_layout_set_single_paragraph_mode().
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the layout does not break paragraphs at paragraph separator characters. </dd></dl>
    </td>
  </tr>
</table>
<a name="a43" doxytag="Pango::Layout::get_size"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::get_size </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>width</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>height</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Determine the logical width and height of a Pango::Layout in <a class="el" href="namespacePango.html">Pango</a> units.
<p>
(device units divided by PANGO_SCALE). This is simply a convenience function around pango_layout_get_extents. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>width</em>&nbsp;</td><td>Location to store the logical width, or <code>0</code>. </td></tr>
    <tr><td valign=top><em>height</em>&nbsp;</td><td>Location to store the logical height, or <code>0</code>. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a20" doxytag="Pango::Layout::get_spacing"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int Pango::Layout::get_spacing </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the amount of spacing between the lines of the layout.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The spacing (in thousandths of a device unit). </dd></dl>
    </td>
  </tr>
</table>
<a name="a26" doxytag="Pango::Layout::get_tabs"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classPango_1_1TabArray.html">TabArray</a> Pango::Layout::get_tabs </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get the current <a class="el" href="classPango_1_1TabArray.html">Pango::TabArray</a> used by this layout.
<p>
If no <a class="el" href="classPango_1_1TabArray.html">Pango::TabArray</a> has been set, then the default tabs are in use and <code>0</code> is returned. Default tabs are every 8 spaces. The return value should be freed with pango_tab_array_free(). <dl compact><dt><b>Returns:</b></dt><dd>A copy of the tabs for this layout, or <code>0</code>. </dd></dl>
    </td>
  </tr>
</table>
<a name="a9" doxytag="Pango::Layout::get_text"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Pango::Layout::get_text </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the text in the layout.
<p>
The returned text should not be freed or modified. <dl compact><dt><b>Returns:</b></dt><dd>The text in the <em>layout</em> . </dd></dl>
    </td>
  </tr>
</table>
<a name="a14" doxytag="Pango::Layout::get_width"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int Pango::Layout::get_width </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the width to which the lines of the Pango::Layout should be wrapped.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The width. </dd></dl>
    </td>
  </tr>
</table>
<a name="a16" doxytag="Pango::Layout::get_wrap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="group__pangommEnums.html#a17">WrapMode</a> Pango::Layout::get_wrap </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get the wrap mode for the layout.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>Active wrap mode. </dd></dl>
    </td>
  </tr>
</table>
<a name="a2" doxytag="Pango::Layout::gobj"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const PangoLayout* Pango::Layout::gobj </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#a3">Glib::ObjectBase</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="Pango::Layout::gobj"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> PangoLayout* Pango::Layout::gobj </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#a2">Glib::ObjectBase</a>.    </td>
  </tr>
</table>
<a name="a3" doxytag="Pango::Layout::gobj_copy"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> PangoLayout* Pango::Layout::gobj_copy </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a31" doxytag="Pango::Layout::index_to_pos"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classPango_1_1Rectangle.html">Rectangle</a> Pango::Layout::index_to_pos </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Convert from an index within the layout to the onscreen position corresponding to the grapheme at that index, which is represented as rectangle.
<p>
Note that <em>x</em> in the returned rectangle is always the leading edge of the grapheme and <em>x</em> + <em>width</em> the trailing edge of the grapheme. If the directionality of the grapheme is right-to-left, then <em>width</em> will be negative. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>index</em>&nbsp;</td><td>Byte index within layout. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The position of the grapheme. </dd></dl>
    </td>
  </tr>
</table>
<a name="a35" doxytag="Pango::Layout::move_cursor_visually"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::move_cursor_visually </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>strong</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>old_index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>old_trailing</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>direction</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>new_index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>new_trailing</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Computes a new cursor position from an old position and a count of positions to move visually.
<p>
If <em>count</em> is positive, then the new strong cursor position will be one position to the right of the old cursor position. If <em>count</em> is position then the new strong cursor position will be one position to the left of the old cursor position.
<p>
In the presence of bidirection text, the correspondence between logical and visual order will depend on the direction of the current run, and there may be jumps when the cursor is moved off of the end of a run.
<p>
Motion here is in cursor positions, not in characters, so a single call to pango_layout_move_cursor_visually() may move the cursor over multiple characters when multiple characters combine to form a single grapheme. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>strong</em>&nbsp;</td><td>Whether the moving cursor is the strong cursor or the weak cursor. The strong cursor is the cursor corresponding to text insertion in the base direction for the layout. </td></tr>
    <tr><td valign=top><em>old_index</em>&nbsp;</td><td>The byte index of the grapheme for the old index. </td></tr>
    <tr><td valign=top><em>old_trailing</em>&nbsp;</td><td>If 0, the cursor was at the trailing edge of the grapheme indicated by <em>old_index</em> , if &gt; 0, the cursor was at the leading edge. </td></tr>
    <tr><td valign=top><em>direction</em>&nbsp;</td><td>Direction to move cursor. A negative value indicates motion to the left. </td></tr>
    <tr><td valign=top><em>new_index</em>&nbsp;</td><td>Location to store the new cursor byte index. A value of -1 indicates that the cursor has been moved off the beginning of the layout. A value of G_MAXINT indicates that the cursor has been moved off the end of the layout. </td></tr>
    <tr><td valign=top><em>new_trailing</em>&nbsp;</td><td>Number of characters to move forward from the location returned for <em>new_index</em> to get the position where the cursor should be displayed. This allows distinguishing the position at the beginning of one line from the position at the end of the preceding line. <em>new_index</em> is always on the line where the cursor should be displayed. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a23" doxytag="Pango::Layout::set_alignment"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_alignment </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__pangommEnums.html#a16">Alignment</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>alignment</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the alignment for the layout (how partial lines are positioned within the horizontal space available.).
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>alignment</em>&nbsp;</td><td>The new alignment. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a6" doxytag="Pango::Layout::set_attributes"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_attributes </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top"><a class="el" href="classPango_1_1AttrList.html">AttrList</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>attrs</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the text attributes for a layout object.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>attrs</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1AttrList.html">Pango::AttrList</a>. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a12" doxytag="Pango::Layout::set_font_description"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_font_description </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classPango_1_1FontDescription.html">FontDescription</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>desc</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the default font description for the layout.
<p>
If no font description is set on the layout, the font description from the layout's context is used. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>desc</em>&nbsp;</td><td>The new pango font description, or <code>0</code> to unset the current font description. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a17" doxytag="Pango::Layout::set_indent"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_indent </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>indent</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the amount by which the first line should be shorter than the rest of the lines.
<p>
This may be negative, in which case the subsequent lines will be shorter than the first line. (However, in either case, the entire width of the layout will be given by the value <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>indent</em>&nbsp;</td><td>The amount by which to indent. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a21" doxytag="Pango::Layout::set_justify"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_justify </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>justify</em> = true          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets whether or not each complete line should be stretched to fill the entire width of the layout.
<p>
This stretching is typically done by adding whitespace, but for some scripts (such as Arabic), the justification is done by extending the characters. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>justify</em>&nbsp;</td><td>Whether the lines in the layout should be justified. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a11" doxytag="Pango::Layout::set_markup"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_markup </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>markup</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>gunichar&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>accel_marker</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>gunichar&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>accel_char</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the layout text and attribute list from marked-up text (see markup format).
<p>
Replaces the current text and attribute list.
<p>
If <em>accel_marker</em> is nonzero, the given character will mark the character following it as an accelerator. For example, the accel marker might be an ampersand or underscore. All characters marked as an accelerator will receive a <a class="el" href="group__pangommEnums.html#a8a19">Pango::UNDERLINE_LOW</a> attribute, and the first character so marked will be returned in <em>accel_char.</em> Two <em>accel_marker</em> characters following each other produce a single literal <em>accel_marker</em> character. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>markup</em>&nbsp;</td><td>Some marked-up text. </td></tr>
    <tr><td valign=top><em>accel_marker</em>&nbsp;</td><td>Marker for accelerators in the text. </td></tr>
    <tr><td valign=top><em>accel_char</em>&nbsp;</td><td>Return location for any located accelerators. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a10" doxytag="Pango::Layout::set_markup"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_markup </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>markup</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the layout text and attribute list from marked-up text (see markup format).
<p>
Replaces the current text and attribute list. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>markup</em>&nbsp;</td><td>Some marked-up text. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a27" doxytag="Pango::Layout::set_single_paragraph_mode"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_single_paragraph_mode </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>setting</em> = true          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
If <em>setting</em> is <code>true</code>, do not treat newlines and similar characters as paragraph separators; instead, keep all text in a single paragraph, and display a glyph for paragraph separator characters.
<p>
Used when you want to allow editing of newlines on a single text line. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>setting</em>&nbsp;</td><td>New setting. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a19" doxytag="Pango::Layout::set_spacing"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_spacing </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>spacing</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the amount of spacing between the lines of the layout.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>spacing</em>&nbsp;</td><td>The amount of spacing. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a25" doxytag="Pango::Layout::set_tabs"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_tabs </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top"><a class="el" href="classPango_1_1TabArray.html">TabArray</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>tabs</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the tabs to use for <em>layout</em> , overriding the default tabs (by default, tabs are every 8 spaces).
<p>
If <em>tabs</em> is <code>0</code>, the default tabs are reinstated. <em>tabs</em> is copied into the layout; you must free your copy of <em>tabs</em> yourself. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>tabs</em>&nbsp;</td><td>A <a class="el" href="classPango_1_1TabArray.html">Pango::TabArray</a>. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a8" doxytag="Pango::Layout::set_text"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_text </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>text</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the text of the layout.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>text</em>&nbsp;</td><td>The text for the layout. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a13" doxytag="Pango::Layout::set_width"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_width </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>width</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the width to which the lines of the Pango::Layout should be wrapped.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>width</em>&nbsp;</td><td>The desired width, or -1 to indicate that no wrapping should be performed. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a15" doxytag="Pango::Layout::set_wrap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Pango::Layout::set_wrap </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__pangommEnums.html#a17">WrapMode</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>wrap</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the wrap style; the wrap style only has an effect if a width is set on the layout with pango_layout_set_width().
<p>
To turn off wrapping, set the width to -1. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>wrap</em>&nbsp;</td><td>Wrap mode. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a36" doxytag="Pango::Layout::xy_to_index"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Pango::Layout::xy_to_index </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>trailing</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Convert from X and Y position within a layout to the byte index to the character at that logical position.
<p>
If the position is not inside the layout, the closest position is chosen (the x/y position will be clamped inside the layout). If a closest position is chosen, then the function returns <code>false</code>; on an exact hit, it returns <code>true</code>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>x</em>&nbsp;</td><td>The X offset (in thousandths of a device unit) from the left edge of the layout. </td></tr>
    <tr><td valign=top><em>y</em>&nbsp;</td><td>The Y offset (in thousandths of a device unit) from the top edge of the layout. </td></tr>
    <tr><td valign=top><em>index_</em>&nbsp;</td><td>Location to store calculated byte index. </td></tr>
    <tr><td valign=top><em>trailing</em>&nbsp;</td><td>Location to store a integer indicating where in the grapheme the user clicked. It will either be zero, or the number of characters in the grapheme. 0 represents the trailing edge of the grapheme. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the coordinates were inside text. </dd></dl>
    </td>
  </tr>
</table>
<hr><h2>Friends And Related Function Documentation</h2>
<a name="k0" doxytag="Pango::Layout::wrap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Pango::Layout&gt; wrap </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">PangoLayout*&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>object</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>take_copy</em> = false</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [related]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pango_2pangomm_2layout_8h.html">pango/pangomm/layout.h</a></ul>
<hr><address><small>
Generated for gtkmm by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.3-rc1 &copy;&nbsp;1997-2001</small></address>
</body>
</html>