Sophie

Sophie

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

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::WBorderLayout 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_1WBorderLayout.html">WBorderLayout</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WBorderLayout Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WBorderLayout" --><!-- doxytag: inherits="Wt::WLayout" -->
<p>A layout manager which divides the container region in five regions.  
 <a href="classWt_1_1WBorderLayout.html#details">More...</a></p>

<p><code>#include &lt;Wt/WBorderLayout&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WBorderLayout:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WBorderLayout__inherit__graph.png" border="0" usemap="#Wt_1_1WBorderLayout_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WBorderLayout_inherit__map" id="Wt_1_1WBorderLayout_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_1WBorderLayout-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a> { <br/>
&#160;&#160;<a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0eaf2e38a6995be9664803dbb76be808cf2">North</a>, 
<a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0ea8a84892f4ad01b663668150ea5a1a120">East</a>, 
<a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0ea22e18e93ad91e56d4d58a74593212257">South</a>, 
<a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0ea083d8ef2c7e8cea026f902dca9b519cc">West</a>, 
<br/>
&#160;&#160;<a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0ea6f0ad0bd2eb8d3c4f86ecd568e33ebe8">Center</a>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of possible positions in the layout.  <a href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbf879399f66c7d82695b0e6bee881ec"></a><!-- doxytag: member="Wt::WBorderLayout::WBorderLayout" ref="acbf879399f66c7d82695b0e6bee881ec" args="(WWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#acbf879399f66c7d82695b0e6bee881ec">WBorderLayout</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new border layout. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0dedcf9a1a5ed39adee1efad66ca27ff"></a><!-- doxytag: member="Wt::WBorderLayout::~WBorderLayout" ref="a0dedcf9a1a5ed39adee1efad66ca27ff" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#a0dedcf9a1a5ed39adee1efad66ca27ff">~WBorderLayout</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <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_1WBorderLayout.html#a353057bcf43bd82c579db80f3e38cee4">setSpacing</a> (int size)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets spacing between each item.  <a href="#a353057bcf43bd82c579db80f3e38cee4"></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_1WBorderLayout.html#a63dccee7ef6351a40535df377722f081">spacing</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the spacing between each item.  <a href="#a63dccee7ef6351a40535df377722f081"></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_1WBorderLayout.html#a5f9a17668850dfbd4566b4351334ab48">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="#a5f9a17668850dfbd4566b4351334ab48"></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_1WBorderLayout.html#a1d6703aaefe8924d71ad48dbd4b7dcab">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="#a1d6703aaefe8924d71ad48dbd4b7dcab"></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_1WBorderLayout.html#acd496ae37d97427d2234fb3147a2f500">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="#acd496ae37d97427d2234fb3147a2f500"></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_1WBorderLayout.html#a1a29297adea327f48c1235022125f069">count</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of items in this layout.  <a href="#a1a29297adea327f48c1235022125f069"></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_1WBorderLayout.html#acec6b03122c304d205806ff9b41d696d">clear</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and deletes all child widgets and nested layouts.  <a href="#acec6b03122c304d205806ff9b41d696d"></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_1WBorderLayout.html#af7667b3d486dc649a7ed0c56f8c06206">addWidget</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget, <a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a> position)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a widget to the given position.  <a href="#af7667b3d486dc649a7ed0c56f8c06206"></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_1WBorderLayout.html#afbf14676206fad724c6eb725d4650842">add</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item, <a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a> position)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a layout item to the given position.  <a href="#afbf14676206fad724c6eb725d4650842"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#aac75ab996385ab95fa5c774a12eb68a5">widgetAt</a> (<a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a> position) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the widget at a position.  <a href="#aac75ab996385ab95fa5c774a12eb68a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#ab241699474232f2562a5f2b5c4474879">itemAt</a> (<a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a> position) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the item at a position.  <a href="#ab241699474232f2562a5f2b5c4474879"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a322f2277abc4904bd92b4016bb5e27b8"></a><!-- doxytag: member="Wt::WBorderLayout::position" ref="a322f2277abc4904bd92b4016bb5e27b8" args="(WLayoutItem *item) const " -->
<a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#a322f2277abc4904bd92b4016bb5e27b8">position</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the position at which the given layout item is set. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A layout manager which divides the container region in five regions. </p>
<p>The five regions are composed of: </p>
<pre>
     ------------------------------------
     |              North               |
     ------------------------------------
     |      |                    |      |
     | West |       Center       | East |
     |      |                    |      |
     ------------------------------------
     |              South               |
     ------------------------------------
 </pre><p>Each region may hold no more than one widget, and for all but the Center region, the widget is optional.</p>
<p>The North, West, East, and South widgets will take their preferred sizes, while the Center widget takes all available remaining space.</p>
<p>This layout manager is applicable to <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a> or <a class="el" href="classWt_1_1Ext_1_1Container.html" title="A container class which manages its contents using layout managers.">Ext::Container</a> container widgets. They use different properties from the widgets to determine the heights for the border panes:</p>
<ul>
<li>When used with 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>, the North and South regions need to have their height defined using <a class="el" href="classWt_1_1WWidget.html#a5bebad8f1582b8bebf01a9ed0ee11972" title="Resizes the widget.">WWidget::resize()</a>, and likewise, widgets in the West ad East regions need their width defined.</li>
<li>When used with a <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a>, the widget minimum sizes are used for sizing the border widgets, whose default values may be overridden using <a class="el" href="classWt_1_1WWidget.html#a092c7d1ecfde7f004ef120389d91775d" title="Sets a minimum size.">WWidget::setMinimumSize()</a>. You may not define any padding for the container widget. Instead, use <a class="el" href="classWt_1_1WLayout.html#af18bae8c743c9f9a5cabee58826ffb45" title="Set contents margins (in pixels).">setContentsMargins()</a>.</li>
</ul>
<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>);
 <a class="code" href="classWt_1_1WBorderLayout.html" title="A layout manager which divides the container region in five regions.">Wt::WBorderLayout</a> *<a class="code" href="classWt_1_1WLayout.html#a82078a08c5a21aa67bd5a83c377d437d" title="Returns the layout that implements this WLayoutItem.">layout</a> = <span class="keyword">new</span> <a class="code" href="classWt_1_1WBorderLayout.html#acbf879399f66c7d82695b0e6bee881ec" title="Creates a new border layout.">Wt::WBorderLayout</a>();
 layout-&gt;<a class="code" href="classWt_1_1WBorderLayout.html#af7667b3d486dc649a7ed0c56f8c06206" title="Adds a widget to the given position.">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;West-side is best&quot;</span>), Wt::West);
 layout-&gt;<a class="code" href="classWt_1_1WBorderLayout.html#af7667b3d486dc649a7ed0c56f8c06206" title="Adds a widget to the given position.">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;East-side is best&quot;</span>), Wt::East);
 layout-&gt;<a class="code" href="classWt_1_1WBorderLayout.html#af7667b3d486dc649a7ed0c56f8c06206" title="Adds a widget to the given position.">addWidget</a>(contents, Wt::Center);

 <span class="comment">// use layout but do not justify vertically</span>
 w-&gt;<a class="code" href="classWt_1_1WContainerWidget.html#a1c84e0ffe330d4798f0ce217f75be08c" title="Sets a layout manager for the container.">setLayout</a>(layout, <a class="code" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a> | <a class="code" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa18cdf9d975a5a41afa182aabfde0de88" title="Justify left and right.">Wt::AlignJustify</a>);
</pre></div><dl class="note"><dt><b>Note:</b></dt><dd>When used on a <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a>, this layout manager accepts the following hints (see <a class="el" href="classWt_1_1WLayout.html#ac8fa1927e7c9b15e3e673cbf6a473c34" title="Provides a hint to the layout implementation.">setLayoutHint()</a>): <ul>
<li>
"table-layout" with possible values "auto" (default) or "fixed".<br/>
 Use "fixed" to prevent nested tables from overflowing the layout. In that case, you will need to specify a width (in CSS or otherwise) for at least one item in every column that has no stretch factor. </li>
</ul>
</dd></dl>
<dl class="warning"><dt><b>Warning:</b></dt><dd>You should specify AlignTop in the alignment flags of <a class="el" href="classWt_1_1WContainerWidget.html#a1c84e0ffe330d4798f0ce217f75be08c" title="Sets a layout manager for the container.">WContainerWidget::setLayout()</a> if the container does not have a height that is constrained somehow. Otherwise the behavior is undefined (the parent container will continue to increase in size) </dd></dl>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a342b3134ad39ee14d6129c4dc35e0f0e"></a><!-- doxytag: member="Wt::WBorderLayout::Position" ref="a342b3134ad39ee14d6129c4dc35e0f0e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Wt::WBorderLayout::Position</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enumeration of possible positions in the layout. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a342b3134ad39ee14d6129c4dc35e0f0eaf2e38a6995be9664803dbb76be808cf2"></a><!-- doxytag: member="North" ref="a342b3134ad39ee14d6129c4dc35e0f0eaf2e38a6995be9664803dbb76be808cf2" args="" -->North</em>&nbsp;</td><td>
<p>North (top) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a342b3134ad39ee14d6129c4dc35e0f0ea8a84892f4ad01b663668150ea5a1a120"></a><!-- doxytag: member="East" ref="a342b3134ad39ee14d6129c4dc35e0f0ea8a84892f4ad01b663668150ea5a1a120" args="" -->East</em>&nbsp;</td><td>
<p>East (right) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a342b3134ad39ee14d6129c4dc35e0f0ea22e18e93ad91e56d4d58a74593212257"></a><!-- doxytag: member="South" ref="a342b3134ad39ee14d6129c4dc35e0f0ea22e18e93ad91e56d4d58a74593212257" args="" -->South</em>&nbsp;</td><td>
<p>South (bottom) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a342b3134ad39ee14d6129c4dc35e0f0ea083d8ef2c7e8cea026f902dca9b519cc"></a><!-- doxytag: member="West" ref="a342b3134ad39ee14d6129c4dc35e0f0ea083d8ef2c7e8cea026f902dca9b519cc" args="" -->West</em>&nbsp;</td><td>
<p>West (left) </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a342b3134ad39ee14d6129c4dc35e0f0ea6f0ad0bd2eb8d3c4f86ecd568e33ebe8"></a><!-- doxytag: member="Center" ref="a342b3134ad39ee14d6129c4dc35e0f0ea6f0ad0bd2eb8d3c4f86ecd568e33ebe8" args="" -->Center</em>&nbsp;</td><td>
<p>Center. </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="afbf14676206fad724c6eb725d4650842"></a><!-- doxytag: member="Wt::WBorderLayout::add" ref="afbf14676206fad724c6eb725d4650842" args="(WLayoutItem *item, Position position)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WBorderLayout::add </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"><a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a>&#160;</td>
          <td class="paramname"><em>position</em>&#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 given position. </p>
<p>Only one widget per position is supported. </p>

</div>
</div>
<a class="anchor" id="a5f9a17668850dfbd4566b4351334ab48"></a><!-- doxytag: member="Wt::WBorderLayout::addItem" ref="a5f9a17668850dfbd4566b4351334ab48" args="(WLayoutItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WBorderLayout::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_1WBorderLayout.html#a1d6703aaefe8924d71ad48dbd4b7dcab" 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="af7667b3d486dc649a7ed0c56f8c06206"></a><!-- doxytag: member="Wt::WBorderLayout::addWidget" ref="af7667b3d486dc649a7ed0c56f8c06206" args="(WWidget *widget, Position position)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WBorderLayout::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"><a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a>&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a widget to the given position. </p>
<p>Only one widget per position is supported.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WBorderLayout.html#afbf14676206fad724c6eb725d4650842" title="Adds a layout item to the given position.">add(WLayoutItem *, Position)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="acec6b03122c304d205806ff9b41d696d"></a><!-- doxytag: member="Wt::WBorderLayout::clear" ref="acec6b03122c304d205806ff9b41d696d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WBorderLayout::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="a1a29297adea327f48c1235022125f069"></a><!-- doxytag: member="Wt::WBorderLayout::count" ref="a1a29297adea327f48c1235022125f069" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WBorderLayout::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_1WBorderLayout.html#acd496ae37d97427d2234fb3147a2f500" 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="acd496ae37d97427d2234fb3147a2f500"></a><!-- doxytag: member="Wt::WBorderLayout::itemAt" ref="acd496ae37d97427d2234fb3147a2f500" 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::WBorderLayout::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_1WBorderLayout.html#a1a29297adea327f48c1235022125f069" 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="ab241699474232f2562a5f2b5c4474879"></a><!-- doxytag: member="Wt::WBorderLayout::itemAt" ref="ab241699474232f2562a5f2b5c4474879" args="(Position position) 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::WBorderLayout::itemAt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a>&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the item at a position. </p>
<p>Returns <code>0</code> if no item was set for that position. </p>

</div>
</div>
<a class="anchor" id="a1d6703aaefe8924d71ad48dbd4b7dcab"></a><!-- doxytag: member="Wt::WBorderLayout::removeItem" ref="a1d6703aaefe8924d71ad48dbd4b7dcab" args="(WLayoutItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WBorderLayout::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_1WBorderLayout.html#a5f9a17668850dfbd4566b4351334ab48" 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="a353057bcf43bd82c579db80f3e38cee4"></a><!-- doxytag: member="Wt::WBorderLayout::setSpacing" ref="a353057bcf43bd82c579db80f3e38cee4" args="(int size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WBorderLayout::setSpacing </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 spacing between each item. </p>
<p>The default spacing is 6 pixels. </p>

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

<p>Returns the spacing between each item. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WBorderLayout.html#a353057bcf43bd82c579db80f3e38cee4" title="Sets spacing between each item.">setSpacing()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aac75ab996385ab95fa5c774a12eb68a5"></a><!-- doxytag: member="Wt::WBorderLayout::widgetAt" ref="aac75ab996385ab95fa5c774a12eb68a5" args="(Position position) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * Wt::WBorderLayout::widgetAt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WBorderLayout.html#a342b3134ad39ee14d6129c4dc35e0f0e">Position</a>&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the widget at a position. </p>
<p>Returns <code>0</code> if no widget was set for that position. </p>

</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>