Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 1785

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WGridLayout Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WGridLayout.html">WGridLayout</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WGridLayout Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WGridLayout" --><!-- doxytag: inherits="Wt::WLayout" -->
<p>A layout manager which arranges widgets in a grid.  
 <a href="classWt_1_1WGridLayout.html#details">More...</a></p>

<p><code>#include &lt;Wt/WGridLayout&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WGridLayout:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WGridLayout__inherit__graph.png" border="0" usemap="#Wt_1_1WGridLayout_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WGridLayout_inherit__map" id="Wt_1_1WGridLayout_inherit__map">
<area shape="rect" href="classWt_1_1WLayout.html" title="An abstract base class for layout managers." alt="" coords="84,80,183,107"/><area shape="rect" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout." alt="" coords="5,5,128,32"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="152,5,248,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WGridLayout-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#ad6dc690b71e636f9d99f1ab6bf257002">WGridLayout</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new grid layout.  <a href="#ad6dc690b71e636f9d99f1ab6bf257002"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a82fb0e2743d9081893b83003d5263dbd">addItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a layout <em>item</em>.  <a href="#a82fb0e2743d9081893b83003d5263dbd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a35a10fd71fa00cad962bd0980d9cdc00">removeItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a layout <em>item</em> (widget or nested layout).  <a href="#a35a10fd71fa00cad962bd0980d9cdc00"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#adfbab1a8c0090423f24371bb5281fcb7">itemAt</a> (int index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the layout item at a specific <em>index</em>.  <a href="#adfbab1a8c0090423f24371bb5281fcb7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a95300e5b406b82d9e1993bd96c80cab7">count</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of items in this layout.  <a href="#a95300e5b406b82d9e1993bd96c80cab7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#ab325a8d6bdde1e96caf7ed3c694079a9">clear</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and deletes all child widgets and nested layouts.  <a href="#ab325a8d6bdde1e96caf7ed3c694079a9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a2dd5c84a8054c1bcb602cb72cb27f898">addItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item, int row, int column, int rowSpan=1, int columnSpan=1, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a layout item to the grid.  <a href="#a2dd5c84a8054c1bcb602cb72cb27f898"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a8e0ae47aa0e7283ce3d4be05249c05eb">addLayout</a> (<a class="el" href="classWt_1_1WLayout.html">WLayout</a> *layout, int row, int column, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a nested layout item to the grid.  <a href="#a8e0ae47aa0e7283ce3d4be05249c05eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#ab6e0f9aaecfed4dc978a3c0534f844ba">addLayout</a> (<a class="el" href="classWt_1_1WLayout.html">WLayout</a> *layout, int row, int column, int rowSpan, int columnSpan, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a nested layout item to the grid.  <a href="#ab6e0f9aaecfed4dc978a3c0534f844ba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a6e64afee237de5665fcd014f407130b2">addWidget</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget, int row, int column, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a widget to the grid.  <a href="#a6e64afee237de5665fcd014f407130b2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#add85db41b29855aa620adbcef7e19dae">addWidget</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget, int row, int column, int rowSpan, int columnSpan, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a widget to the grid.  <a href="#add85db41b29855aa620adbcef7e19dae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a60713a99ab98907fe5c9f99417fb6493">setHorizontalSpacing</a> (int size)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the horizontal spacing.  <a href="#a60713a99ab98907fe5c9f99417fb6493"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a4fe774ed02137f1834f79e9214d93fc9">horizontalSpacing</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the horizontal spacing.  <a href="#a4fe774ed02137f1834f79e9214d93fc9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#ad2a2188bece8a47628dae340108962ae">setVerticalSpacing</a> (int size)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the vertical spacing.  <a href="#ad2a2188bece8a47628dae340108962ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a455f8a42d2339a3485a34a9bb4f140cf">verticalSpacing</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the vertical spacing.  <a href="#a455f8a42d2339a3485a34a9bb4f140cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a540aa44a75a66fe61d5bae8e37ced84b">columnCount</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the column count.  <a href="#a540aa44a75a66fe61d5bae8e37ced84b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a7958b26122eb898572bf3117974de00b">rowCount</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the row count.  <a href="#a7958b26122eb898572bf3117974de00b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a4605de0523f5613096b6cbd983123c8b">setColumnStretch</a> (int column, int stretch)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the column stretch.  <a href="#a4605de0523f5613096b6cbd983123c8b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a33099b99582099b9ea4fadcc5b4b9f91">columnStretch</a> (int column) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the column stretch.  <a href="#a33099b99582099b9ea4fadcc5b4b9f91"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#ad8d1199b57063fb7286be6dab13c998c">setRowStretch</a> (int row, int stretch)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the row stretch.  <a href="#ad8d1199b57063fb7286be6dab13c998c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a118a1d8599100e6b9ee96618eff91637">rowStretch</a> (int row) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the column stretch.  <a href="#a118a1d8599100e6b9ee96618eff91637"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a4bf1c12862c45548c6cf9ca2dabdb971">setColumnResizable</a> (int column, bool enabled=true, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;initialSize=<a class="el" href="classWt_1_1WLength.html#a0cf39ca4225776879d56ade60320c31a">WLength::Auto</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets whether the user may drag a particular column border.  <a href="#a4bf1c12862c45548c6cf9ca2dabdb971"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#a1fe8bc99a587181d85a73465ab20d022">columnIsResizable</a> (int column) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the user may drag a particular column border.  <a href="#a1fe8bc99a587181d85a73465ab20d022"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#afe6f079d377ff1046dfdbc2d939da784">setRowResizable</a> (int row, bool enabled=true, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;initialSize=<a class="el" href="classWt_1_1WLength.html#a0cf39ca4225776879d56ade60320c31a">WLength::Auto</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets whether the user may drag a particular row border.  <a href="#afe6f079d377ff1046dfdbc2d939da784"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#ab60cbaf413636b09b09d3b6b43875286">rowIsResizable</a> (int row) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the user may drag a particular row border.  <a href="#ab60cbaf413636b09b09d3b6b43875286"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A layout manager which arranges widgets in a grid. </p>
<p>This layout manager arranges widgets in a grid.</p>
<p>Each grid cell (row, column) may contain one widget or nested layout. Horizontal and vertical space are divided so that each non-stretchable column/row is given its preferred size (if possible) and the remaining space is divided according to stretch factors among the columns/rows. If not all columns/rows can be given their preferred size (there is not enough room), then columns/rows are given a smaller size (down to a minimum size based on widget minimum sizes). If necessary, the container (or parent layout) of this layout is resized to meet minimum size requirements.</p>
<p>The preferred width/height of a column/row is based on the natural size of the widgets, where they present their contents without overflowing. <a class="el" href="classWt_1_1WWidget.html#a5bebad8f1582b8bebf01a9ed0ee11972" title="Resizes the widget.">WWidget::resize()</a> or (CSS <code>width</code>, <code>height</code> properties) can be used to adjust the preferred size of a widget.</p>
<p>The minimum width/height of a column/row is based on the minimum dimensions of contained widgets or nested layouts. The default minimum height and width for a widget is 0. It can be specified using <a class="el" href="classWt_1_1WWidget.html#a092c7d1ecfde7f004ef120389d91775d" title="Sets a minimum size.">WWidget::setMinimumSize()</a> or using CSS <code>min-width</code> and <code>min-height</code> properties.</p>
<p>You should use <a class="el" href="classWt_1_1WContainerWidget.html#ae269f870992c5843d3097a63795b10d6">WContainerWidget::setOverflow(OverflowAuto) </a> or use a <a class="el" href="classWt_1_1WScrollArea.html" title="A widget that adds scrolling capabilities to its content.">WScrollArea</a> to automatically show scrollbars for widgets inserted in the layout to cope with a size set by the layout manager that is smaller than the preferred size.</p>
<p>When the container of a layout manager has a maximum size set using <a class="el" href="classWt_1_1WWidget.html#af023064cf8007bda6baeb5277d79bbd9" title="Sets a maximum size.">WWidget::setMaximumSize()</a>, then the size of the container will be based on the preferred size of the contents, up to this maximum size, instead of the default behaviour of constraining the size of the children based on the size of the container.</p>
<p>A layout manager may provide resize handles between columns or rows which allow the user to change the automatic layout provided by the layout manager (see <a class="el" href="classWt_1_1WGridLayout.html#afe6f079d377ff1046dfdbc2d939da784" title="Sets whether the user may drag a particular row border.">setRowResizable()</a> and <a class="el" href="classWt_1_1WGridLayout.html#a4bf1c12862c45548c6cf9ca2dabdb971" title="Sets whether the user may drag a particular column border.">setColumnResizable()</a>).</p>
<p>Columns and rows are separated using a constant spacing, which defaults to 6 pixels by default, and can be changed using <a class="el" href="classWt_1_1WGridLayout.html#a60713a99ab98907fe5c9f99417fb6493" title="Sets the horizontal spacing.">setHorizontalSpacing()</a> and <a class="el" href="classWt_1_1WGridLayout.html#ad2a2188bece8a47628dae340108962ae" title="Sets the vertical spacing.">setVerticalSpacing()</a>. In addition, when this layout is a top-level layout (i.e. is not nested inside another layout), a margin is set around the contents. This margin defaults to 9 pixels, and can be changed using <a class="el" href="classWt_1_1WLayout.html#af18bae8c743c9f9a5cabee58826ffb45" title="Set contents margins (in pixels).">setContentsMargins()</a>.</p>
<p>For each column or row, a stretch factor may be defined, which controls how remaining horizontal or vertical space is used. Each column and row is stretched using the stretch factor to fill the remaining space. When the stretch factor is 0, the height of the row and its contents is set to the preferred size (if possible). When the stretch factor is 1 or higher, these widgets will be given the remaining size, limited only by their minimum size (their preferred size is ignored).</p>
<p>Usage example: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a> *w = <span class="keyword">new</span> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a>(<span class="keyword">this</span>);
 w-&gt;<a class="code" href="classWt_1_1WWebWidget.html#a4762c1aa0b5788e54a52270674f21e23" title="Resizes the widget.">resize</a>(<a class="code" href="classWt_1_1WLength.html#a0cf39ca4225776879d56ade60320c31a" title="An &#39;auto&#39; length.">WLength::Auto</a>, 600);

 <a class="code" href="classWt_1_1WGridLayout.html" title="A layout manager which arranges widgets in a grid.">Wt::WGridLayout</a> *layout = <span class="keyword">new</span> <a class="code" href="classWt_1_1WGridLayout.html#ad6dc690b71e636f9d99f1ab6bf257002" title="Create a new grid layout.">Wt::WGridLayout</a>();
 layout-&gt;<a class="code" href="classWt_1_1WGridLayout.html#a6e64afee237de5665fcd014f407130b2" title="Adds a widget to the grid.">addWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">&quot;Item 0 0&quot;</span>), 0, 0);
 layout-&gt;<a class="code" href="classWt_1_1WGridLayout.html#a6e64afee237de5665fcd014f407130b2" title="Adds a widget to the grid.">addWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">&quot;Item 0 1&quot;</span>), 0, 1);
 layout-&gt;<a class="code" href="classWt_1_1WGridLayout.html#a6e64afee237de5665fcd014f407130b2" title="Adds a widget to the grid.">addWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">&quot;Item 1 0&quot;</span>), 1, 0);
 layout-&gt;<a class="code" href="classWt_1_1WGridLayout.html#a6e64afee237de5665fcd014f407130b2" title="Adds a widget to the grid.">addWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">&quot;Item 1 1&quot;</span>), 1, 1);

 w-&gt;<a class="code" href="classWt_1_1WContainerWidget.html#a1c84e0ffe330d4798f0ce217f75be08c" title="Sets a layout manager for the container.">setLayout</a>(layout);
</pre></div><dl class="note"><dt><b>Note:</b></dt><dd>This layout manager is applicable only to <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a> container widgets. You may use it within an <a class="el" href="classWt_1_1Ext_1_1Container.html" title="A container class which manages its contents using layout managers.">Ext::Container</a> indirectly by first setting a <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a> using a <a class="el" href="classWt_1_1WFitLayout.html" title="A layout manager which spans a single widget to all available space.">WFitLayout</a>.</dd>
<dd>
When JavaScript support is not available, not all functionality of the layout is available. In particular, vertical size management is not available.</dd>
<dd>
When a layout is used on a first page with progressive bootstrap, then the layout will progress only in a limited way to a full JavaScript-based layout. You can thus not rely on it to behave properly for example when dynamically adding or removing widgets. </dd></dl>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad6dc690b71e636f9d99f1ab6bf257002"></a><!-- doxytag: member="Wt::WGridLayout::WGridLayout" ref="ad6dc690b71e636f9d99f1ab6bf257002" args="(WWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WGridLayout::WGridLayout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new grid layout. </p>
<p>The grid will grow dynamically as items are added.</p>
<p>Use <code>parent</code> = <code>0</code> to create a layout manager that can be nested inside other layout managers or if you use <a class="el" href="classWt_1_1WContainerWidget.html#a1c84e0ffe330d4798f0ce217f75be08c" title="Sets a layout manager for the container.">WContainerWidget::setLayout()</a> to add specify the container later. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a82fb0e2743d9081893b83003d5263dbd"></a><!-- doxytag: member="Wt::WGridLayout::addItem" ref="a82fb0e2743d9081893b83003d5263dbd" args="(WLayoutItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a layout <em>item</em>. </p>
<p>The item may be a widget or nested layout.</p>
<p>How the item is layed out with respect to siblings is implementation specific to the layout manager. In some cases, a layout manager will overload this method with extra arguments that specify layout options.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a35a10fd71fa00cad962bd0980d9cdc00" title="Removes a layout item (widget or nested layout).">removeItem(WLayoutItem *)</a>, <a class="el" href="classWt_1_1WLayout.html#a886d2ec4b6b97524ba3dff93252e6540" title="Adds the given widget to the layout.">addWidget(WWidget *)</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WLayout.html#ad4a778298c01d290692afc77e441c629">Wt::WLayout</a>.</p>

</div>
</div>
<a class="anchor" id="a2dd5c84a8054c1bcb602cb72cb27f898"></a><!-- doxytag: member="Wt::WGridLayout::addItem" ref="a2dd5c84a8054c1bcb602cb72cb27f898" args="(WLayoutItem *item, int row, int column, int rowSpan=1, int columnSpan=1, WFlags&lt; AlignmentFlag &gt; alignment=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rowSpan</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>columnSpan</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>alignment</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a layout item to the grid. </p>
<p>Adds the <em>item</em> at (<em>row</em>, <code>column</code>). If an item was already added to that location, it is replaced (but not deleted).</p>
<p>An item may span several more rows or columns, which is controlled by <em>rowSpan</em> and <code>columnSpan</code>.</p>
<p>The <code>alignment</code> specifies the vertical and horizontal alignment of the item. The default value 0 indicates that the item is stretched to fill the entire grid cell. The alignment can be specified as a logical combination of a horizontal alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fad033ef69b45d0b75633be34168c9b606" title="Align to the left.">Wt::AlignLeft</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa121104cdbb5db77c7d038813a93998e5" title="Align horizontally in the center.">Wt::AlignCenter</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fab250310385383f0b2f68d4e0ad5567e1" title="Align to the right.">Wt::AlignRight</a>) and a vertical alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa4f2aa4abba8500e25651bf8db5f0c162" title="Align bottom of widget to the bottom of the lowest sigling widget.">Wt::AlignBottom</a>).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a8e0ae47aa0e7283ce3d4be05249c05eb" title="Adds a nested layout item to the grid.">addLayout()</a>, <a class="el" href="classWt_1_1WGridLayout.html#a6e64afee237de5665fcd014f407130b2" title="Adds a widget to the grid.">addWidget()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a8e0ae47aa0e7283ce3d4be05249c05eb"></a><!-- doxytag: member="Wt::WGridLayout::addLayout" ref="a8e0ae47aa0e7283ce3d4be05249c05eb" args="(WLayout *layout, int row, int column, WFlags&lt; AlignmentFlag &gt; alignment=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addLayout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayout.html">WLayout</a> *&#160;</td>
          <td class="paramname"><em>layout</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>alignment</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a nested layout item to the grid. </p>
<p>Adds the <em>layout</em> at (<em>row</em>, <code>column</code>). If an item was already added to that location, it is replaced (but not deleted).</p>
<p>The <code>alignment</code> specifies the vertical and horizontal alignment of the item. The default value 0 indicates that the item is stretched to fill the entire grid cell. The alignment can be specified as a logical combination of a horizontal alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fad033ef69b45d0b75633be34168c9b606" title="Align to the left.">Wt::AlignLeft</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa121104cdbb5db77c7d038813a93998e5" title="Align horizontally in the center.">Wt::AlignCenter</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fab250310385383f0b2f68d4e0ad5567e1" title="Align to the right.">Wt::AlignRight</a>) and a vertical alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa4f2aa4abba8500e25651bf8db5f0c162" title="Align bottom of widget to the bottom of the lowest sigling widget.">Wt::AlignBottom</a>).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#ab6e0f9aaecfed4dc978a3c0534f844ba" title="Adds a nested layout item to the grid.">addLayout(WLayout *, int, int, int, int, WFlags&lt;AlignmentFlag&gt;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab6e0f9aaecfed4dc978a3c0534f844ba"></a><!-- doxytag: member="Wt::WGridLayout::addLayout" ref="ab6e0f9aaecfed4dc978a3c0534f844ba" args="(WLayout *layout, int row, int column, int rowSpan, int columnSpan, WFlags&lt; AlignmentFlag &gt; alignment=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addLayout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayout.html">WLayout</a> *&#160;</td>
          <td class="paramname"><em>layout</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rowSpan</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>columnSpan</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>alignment</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a nested layout item to the grid. </p>
<p>Adds the <em>layout</em> at (<em>row</em>, <code>column</code>). If an item was already added to that location, it is replaced (but not deleted).</p>
<p>An item may span several more rows or columns, which is controlled by <em>rowSpan</em> and <code>columnSpan</code>.</p>
<p>The <code>alignment</code> specifies the vertical and horizontal alignment of the item. The default value 0 indicates that the item is stretched to fill the entire grid cell. The alignment can be specified as a logical combination of a horizontal alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fad033ef69b45d0b75633be34168c9b606" title="Align to the left.">Wt::AlignLeft</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa121104cdbb5db77c7d038813a93998e5" title="Align horizontally in the center.">Wt::AlignCenter</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fab250310385383f0b2f68d4e0ad5567e1" title="Align to the right.">Wt::AlignRight</a>) and a vertical alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa4f2aa4abba8500e25651bf8db5f0c162" title="Align bottom of widget to the bottom of the lowest sigling widget.">Wt::AlignBottom</a>).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a8e0ae47aa0e7283ce3d4be05249c05eb" title="Adds a nested layout item to the grid.">addLayout(WLayout *, int, int, WFlags&lt;AlignmentFlag&gt;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6e64afee237de5665fcd014f407130b2"></a><!-- doxytag: member="Wt::WGridLayout::addWidget" ref="a6e64afee237de5665fcd014f407130b2" args="(WWidget *widget, int row, int column, WFlags&lt; AlignmentFlag &gt; alignment=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addWidget </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>alignment</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a widget to the grid. </p>
<p>Adds the <em>widget</em> at (<em>row</em>, <code>column</code>). If an item was already added to that location, it is replaced (but not deleted).</p>
<p>The <code>alignment</code> specifies the vertical and horizontal alignment of the item. The default value 0 indicates that the item is stretched to fill the entire grid cell. The alignment can be specified as a logical combination of a horizontal alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fad033ef69b45d0b75633be34168c9b606" title="Align to the left.">Wt::AlignLeft</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa121104cdbb5db77c7d038813a93998e5" title="Align horizontally in the center.">Wt::AlignCenter</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fab250310385383f0b2f68d4e0ad5567e1" title="Align to the right.">Wt::AlignRight</a>) and a vertical alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa4f2aa4abba8500e25651bf8db5f0c162" title="Align bottom of widget to the bottom of the lowest sigling widget.">Wt::AlignBottom</a>).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#add85db41b29855aa620adbcef7e19dae" title="Adds a widget to the grid.">addWidget(WWidget *, int, int, int, int, WFlags&lt;AlignmentFlag&gt;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="add85db41b29855aa620adbcef7e19dae"></a><!-- doxytag: member="Wt::WGridLayout::addWidget" ref="add85db41b29855aa620adbcef7e19dae" args="(WWidget *widget, int row, int column, int rowSpan, int columnSpan, WFlags&lt; AlignmentFlag &gt; alignment=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addWidget </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rowSpan</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>columnSpan</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>alignment</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a widget to the grid. </p>
<p>Adds the <em>widget</em> at (<em>row</em>, <code>column</code>). If an item was already added to that location, it is replaced (but not deleted).</p>
<p>The widget may span several more rows or columns, which is controlled by <em>rowSpan</em> and <code>columnSpan</code>.</p>
<p>The <code>alignment</code> specifies the vertical and horizontal alignment of the item. The default value 0 indicates that the item is stretched to fill the entire grid cell. The alignment can be specified as a logical combination of a horizontal alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fad033ef69b45d0b75633be34168c9b606" title="Align to the left.">Wt::AlignLeft</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa121104cdbb5db77c7d038813a93998e5" title="Align horizontally in the center.">Wt::AlignCenter</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fab250310385383f0b2f68d4e0ad5567e1" title="Align to the right.">Wt::AlignRight</a>) and a vertical alignment (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa4f2aa4abba8500e25651bf8db5f0c162" title="Align bottom of widget to the bottom of the lowest sigling widget.">Wt::AlignBottom</a>).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a6e64afee237de5665fcd014f407130b2" title="Adds a widget to the grid.">addWidget(WWidget *, int, int, WFlags&lt;AlignmentFlag&gt;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab325a8d6bdde1e96caf7ed3c694079a9"></a><!-- doxytag: member="Wt::WGridLayout::clear" ref="ab325a8d6bdde1e96caf7ed3c694079a9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes and deletes all child widgets and nested layouts. </p>
<p>This is similar to <a class="el" href="classWt_1_1WContainerWidget.html#a608f748cbdda763f1a11556ddad9fbe1" title="Removes and deletes all child widgets.">WContainerWidget::clear()</a>, with the exception that the layout itself is not deleted. </p>

<p>Implements <a class="el" href="classWt_1_1WLayout.html#af9b4512adecf7adca01b8757108be4d6">Wt::WLayout</a>.</p>

</div>
</div>
<a class="anchor" id="a540aa44a75a66fe61d5bae8e37ced84b"></a><!-- doxytag: member="Wt::WGridLayout::columnCount" ref="a540aa44a75a66fe61d5bae8e37ced84b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::columnCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the column count. </p>
<p>The grid dimensions change dynamically when adding contents to the grid.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a7958b26122eb898572bf3117974de00b" title="Returns the row count.">rowCount()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1fe8bc99a587181d85a73465ab20d022"></a><!-- doxytag: member="Wt::WGridLayout::columnIsResizable" ref="a1fe8bc99a587181d85a73465ab20d022" args="(int column) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WGridLayout::columnIsResizable </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the user may drag a particular column border. </p>
<p>This method returns whether the border that separates column <em>column</em> from the next column may be resized by the user.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a4bf1c12862c45548c6cf9ca2dabdb971" title="Sets whether the user may drag a particular column border.">setColumnResizable()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a33099b99582099b9ea4fadcc5b4b9f91"></a><!-- doxytag: member="Wt::WGridLayout::columnStretch" ref="a33099b99582099b9ea4fadcc5b4b9f91" args="(int column) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::columnStretch </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the column stretch. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a4605de0523f5613096b6cbd983123c8b" title="Sets the column stretch.">setColumnStretch(int, int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a95300e5b406b82d9e1993bd96c80cab7"></a><!-- doxytag: member="Wt::WGridLayout::count" ref="a95300e5b406b82d9e1993bd96c80cab7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::count </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of items in this layout. </p>
<p>This may be a theoretical number, which is greater than the actual number of items. It can be used to iterate over the items in the layout, in conjunction with <a class="el" href="classWt_1_1WGridLayout.html#adfbab1a8c0090423f24371bb5281fcb7" title="Returns the layout item at a specific index.">itemAt()</a>. </p>

<p>Implements <a class="el" href="classWt_1_1WLayout.html#a799b3cce5c1717b18e54c14471e84033">Wt::WLayout</a>.</p>

</div>
</div>
<a class="anchor" id="a4fe774ed02137f1834f79e9214d93fc9"></a><!-- doxytag: member="Wt::WGridLayout::horizontalSpacing" ref="a4fe774ed02137f1834f79e9214d93fc9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::horizontalSpacing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the horizontal spacing. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a60713a99ab98907fe5c9f99417fb6493" title="Sets the horizontal spacing.">setHorizontalSpacing(int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="adfbab1a8c0090423f24371bb5281fcb7"></a><!-- doxytag: member="Wt::WGridLayout::itemAt" ref="adfbab1a8c0090423f24371bb5281fcb7" args="(int index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> * Wt::WGridLayout::itemAt </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the layout item at a specific <em>index</em>. </p>
<p>If there is no item at the <code>index</code>, <code>0</code> is returned.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLayout.html#afecba709ae19b93ef9bbe167650dbc5c" title="Returns the index of a given item.">indexOf(WLayoutItem *) const</a>, <a class="el" href="classWt_1_1WGridLayout.html#a95300e5b406b82d9e1993bd96c80cab7" title="Returns the number of items in this layout.">count()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WLayout.html#a3d48e5e4f56ad5d1b0e60180ebc91442">Wt::WLayout</a>.</p>

</div>
</div>
<a class="anchor" id="a35a10fd71fa00cad962bd0980d9cdc00"></a><!-- doxytag: member="Wt::WGridLayout::removeItem" ref="a35a10fd71fa00cad962bd0980d9cdc00" args="(WLayoutItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::removeItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes a layout <em>item</em> (widget or nested layout). </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a82fb0e2743d9081893b83003d5263dbd" title="Adds a layout item.">addItem(WLayoutItem *)</a>, <a class="el" href="classWt_1_1WLayout.html#a3f5e0f62a0deb8f2473e52c5270128d5" title="Removes the given widget from the layout.">removeWidget(WWidget *)</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WLayout.html#a8c8d94070a51e669f8077249b67742ae">Wt::WLayout</a>.</p>

</div>
</div>
<a class="anchor" id="a7958b26122eb898572bf3117974de00b"></a><!-- doxytag: member="Wt::WGridLayout::rowCount" ref="a7958b26122eb898572bf3117974de00b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::rowCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the row count. </p>
<p>The grid dimensions change dynamically when adding contents to the grid.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a540aa44a75a66fe61d5bae8e37ced84b" title="Returns the column count.">columnCount()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab60cbaf413636b09b09d3b6b43875286"></a><!-- doxytag: member="Wt::WGridLayout::rowIsResizable" ref="ab60cbaf413636b09b09d3b6b43875286" args="(int row) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WGridLayout::rowIsResizable </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the user may drag a particular row border. </p>
<p>This method returns whether the border that separates row <em>row</em> from the next row may be resized by the user.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#afe6f079d377ff1046dfdbc2d939da784" title="Sets whether the user may drag a particular row border.">setRowResizable()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a118a1d8599100e6b9ee96618eff91637"></a><!-- doxytag: member="Wt::WGridLayout::rowStretch" ref="a118a1d8599100e6b9ee96618eff91637" args="(int row) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::rowStretch </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the column stretch. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#ad8d1199b57063fb7286be6dab13c998c" title="Sets the row stretch.">setRowStretch(int, int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a4bf1c12862c45548c6cf9ca2dabdb971"></a><!-- doxytag: member="Wt::WGridLayout::setColumnResizable" ref="a4bf1c12862c45548c6cf9ca2dabdb971" args="(int column, bool enabled=true, const WLength &amp;initialSize=WLength::Auto)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::setColumnResizable </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>initialSize</em> = <code><a class="el" href="classWt_1_1WLength.html#a0cf39ca4225776879d56ade60320c31a">WLength::Auto</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether the user may drag a particular column border. </p>
<p>This method sets whether the border that separates column <em>column</em> from the next column may be resized by the user, depending on the value of <em>enabled</em>.</p>
<p>The default value is <em>false</em>.</p>
<p>If an <code>initialSize</code> is given (that is not <a class="el" href="classWt_1_1WLength.html#a0cf39ca4225776879d56ade60320c31a" title="An &#39;auto&#39; length.">WLength::Auto</a>), then this size is used for the width of the column, overriding the width it would be given by the layout manager. </p>

</div>
</div>
<a class="anchor" id="a4605de0523f5613096b6cbd983123c8b"></a><!-- doxytag: member="Wt::WGridLayout::setColumnStretch" ref="a4605de0523f5613096b6cbd983123c8b" args="(int column, int stretch)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::setColumnStretch </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>stretch</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the column stretch. </p>
<p>Sets the <em>stretch</em> factor for column <code>column</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a33099b99582099b9ea4fadcc5b4b9f91" title="Returns the column stretch.">columnStretch()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a60713a99ab98907fe5c9f99417fb6493"></a><!-- doxytag: member="Wt::WGridLayout::setHorizontalSpacing" ref="a60713a99ab98907fe5c9f99417fb6493" args="(int size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::setHorizontalSpacing </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the horizontal spacing. </p>
<p>The default horizontal spacing is 9 pixels.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#ad2a2188bece8a47628dae340108962ae" title="Sets the vertical spacing.">setVerticalSpacing(int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="afe6f079d377ff1046dfdbc2d939da784"></a><!-- doxytag: member="Wt::WGridLayout::setRowResizable" ref="afe6f079d377ff1046dfdbc2d939da784" args="(int row, bool enabled=true, const WLength &amp;initialSize=WLength::Auto)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::setRowResizable </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>initialSize</em> = <code><a class="el" href="classWt_1_1WLength.html#a0cf39ca4225776879d56ade60320c31a">WLength::Auto</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether the user may drag a particular row border. </p>
<p>This method sets whether the border that separates row <em>row</em> from the next row may be resized by the user, depending on the value of <em>enabled</em>.</p>
<p>The default value is <em>false</em>.</p>
<p>If an <code>initialSize</code> is given (that is not <a class="el" href="classWt_1_1WLength.html#a0cf39ca4225776879d56ade60320c31a" title="An &#39;auto&#39; length.">WLength::Auto</a>), then this size is used for the height of the row, overriding the height it would be given by the layout manager. </p>

</div>
</div>
<a class="anchor" id="ad8d1199b57063fb7286be6dab13c998c"></a><!-- doxytag: member="Wt::WGridLayout::setRowStretch" ref="ad8d1199b57063fb7286be6dab13c998c" args="(int row, int stretch)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::setRowStretch </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>stretch</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the row stretch. </p>
<p>Sets the <em>stretch</em> factor for row <code>row</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a118a1d8599100e6b9ee96618eff91637" title="Returns the column stretch.">rowStretch()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad2a2188bece8a47628dae340108962ae"></a><!-- doxytag: member="Wt::WGridLayout::setVerticalSpacing" ref="ad2a2188bece8a47628dae340108962ae" args="(int size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::setVerticalSpacing </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the vertical spacing. </p>
<p>The default vertical spacing is 9 pixels.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#a60713a99ab98907fe5c9f99417fb6493" title="Sets the horizontal spacing.">setHorizontalSpacing(int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a455f8a42d2339a3485a34a9bb4f140cf"></a><!-- doxytag: member="Wt::WGridLayout::verticalSpacing" ref="a455f8a42d2339a3485a34a9bb4f140cf" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::verticalSpacing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the vertical spacing. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#ad2a2188bece8a47628dae340108962ae" title="Sets the vertical spacing.">setVerticalSpacing(int)</a> </dd></dl>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>