1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::WBorderLayout Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related 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>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WBorderLayout.html">WBorderLayout</a>
</div>
</div>
<div class="contents">
<h1>Wt::WBorderLayout Class Reference</h1><!-- doxytag: class="Wt::WBorderLayout" --><!-- doxytag: inherits="Wt::WLayout" -->A layout manager which divides the container region in five regions.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WBorderLayout></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WBorderLayout:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WBorderLayout__inherit__graph.png" border="0" usemap="#Wt_1_1WBorderLayout__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WBorderLayout__inherit__map">
<area shape="rect" href="classWt_1_1WLayout.html" title="An abstract base class for layout managers." alt="" coords="85,80,181,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><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WBorderLayout-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> { <br>
<a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0ef2e38a6995be9664803dbb76be808cf2">North</a>,
<a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e8a84892f4ad01b663668150ea5a1a120">East</a>,
<a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e22e18e93ad91e56d4d58a74593212257">South</a>,
<a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e083d8ef2c7e8cea026f902dca9b519cc">West</a>,
<br>
<a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e6f0ad0bd2eb8d3c4f86ecd568e33ebe8">Center</a>
<br>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumeration of possible positions in the layout. <a href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cbf879399f66c7d82695b0e6bee881ec"></a><!-- doxytag: member="Wt::WBorderLayout::WBorderLayout" ref="cbf879399f66c7d82695b0e6bee881ec" args="(WWidget *parent=0)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#cbf879399f66c7d82695b0e6bee881ec">WBorderLayout</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new border layout. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0dedcf9a1a5ed39adee1efad66ca27ff"></a><!-- doxytag: member="Wt::WBorderLayout::~WBorderLayout" ref="0dedcf9a1a5ed39adee1efad66ca27ff" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#0dedcf9a1a5ed39adee1efad66ca27ff">~WBorderLayout</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#5f9a17668850dfbd4566b4351334ab48">addItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a layout <em>item</em>. <a href="#5f9a17668850dfbd4566b4351334ab48"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#1d6703aaefe8924d71ad48dbd4b7dcab">removeItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes a layout <em>item</em> (widget or nested layout). <a href="#1d6703aaefe8924d71ad48dbd4b7dcab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#cd496ae37d97427d2234fb3147a2f500">itemAt</a> (int index) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the layout item at a specific <em>index</em>. <a href="#cd496ae37d97427d2234fb3147a2f500"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#1a29297adea327f48c1235022125f069">count</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of items in this layout. <a href="#1a29297adea327f48c1235022125f069"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#f7667b3d486dc649a7ed0c56f8c06206">addWidget</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget, <a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> position)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a widget to the given position. <a href="#f7667b3d486dc649a7ed0c56f8c06206"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#fbf14676206fad724c6eb725d4650842">add</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item, <a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> position)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a layout item to the given position. <a href="#fbf14676206fad724c6eb725d4650842"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#ac75ab996385ab95fa5c774a12eb68a5">widgetAt</a> (<a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> position) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the widget at a position. <a href="#ac75ab996385ab95fa5c774a12eb68a5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#b241699474232f2562a5f2b5c4474879">itemAt</a> (<a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> position) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the item at a position. <a href="#b241699474232f2562a5f2b5c4474879"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="322f2277abc4904bd92b4016bb5e27b8"></a><!-- doxytag: member="Wt::WBorderLayout::position" ref="322f2277abc4904bd92b4016bb5e27b8" args="(WLayoutItem *item) const " -->
<a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBorderLayout.html#322f2277abc4904bd92b4016bb5e27b8">position</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the position at which the given layout item is set. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A layout manager which divides the container region in five regions.
<p>
The five regions are composed of: <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>
Widgets in the North and South regions need to have The Center widget takes all available remaining space.<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#5bebad8f1582b8bebf01a9ed0ee11972" 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#092c7d1ecfde7f004ef120389d91775d" 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#f18bae8c743c9f9a5cabee58826ffb45" title="Set contents margins (in pixels).">setContentsMargins()</a>.</li></ul>
<p>
Usage example: <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#82078a08c5a21aa67bd5a83c377d437d" title="Returns the layout that implements this WLayoutItem.">layout</a> = <span class="keyword">new</span> <a class="code" href="classWt_1_1WBorderLayout.html" title="A layout manager which divides the container region in five regions.">Wt::WBorderLayout</a>();
layout-><a class="code" href="classWt_1_1WBorderLayout.html#f7667b3d486dc649a7ed0c56f8c06206" 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">"West-side is best"</span>), Wt::West);
layout-><a class="code" href="classWt_1_1WBorderLayout.html#f7667b3d486dc649a7ed0c56f8c06206" 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">"East-side is best"</span>), Wt::East);
layout-><a class="code" href="classWt_1_1WBorderLayout.html#f7667b3d486dc649a7ed0c56f8c06206" 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-><a class="code" href="classWt_1_1WContainerWidget.html#1c84e0ffe330d4798f0ce217f75be08c" title="Sets a layout manager for the container.">setLayout</a>(layout, <a class="code" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a> | <a class="code" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f18cdf9d975a5a41afa182aabfde0de88" title="Justify left and right.">Wt::AlignJustify</a>);
</pre></div><p>
<dl class="note" compact><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#c8fa1927e7c9b15e3e673cbf6a473c34" 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" compact><dt><b>Warning:</b></dt><dd>You should specify AlignTop in the alignment flags of <a class="el" href="classWt_1_1WContainerWidget.html#1c84e0ffe330d4798f0ce217f75be08c" 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>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="342b3134ad39ee14d6129c4dc35e0f0e"></a><!-- doxytag: member="Wt::WBorderLayout::Position" ref="342b3134ad39ee14d6129c4dc35e0f0e" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classWt_1_1WBorderLayout.html#342b3134ad39ee14d6129c4dc35e0f0e">Wt::WBorderLayout::Position</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Enumeration of possible positions in the layout.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="342b3134ad39ee14d6129c4dc35e0f0ef2e38a6995be9664803dbb76be808cf2"></a><!-- doxytag: member="North" ref="342b3134ad39ee14d6129c4dc35e0f0ef2e38a6995be9664803dbb76be808cf2" args="" -->North</em> </td><td>
North (top). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="342b3134ad39ee14d6129c4dc35e0f0e8a84892f4ad01b663668150ea5a1a120"></a><!-- doxytag: member="East" ref="342b3134ad39ee14d6129c4dc35e0f0e8a84892f4ad01b663668150ea5a1a120" args="" -->East</em> </td><td>
East (right). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="342b3134ad39ee14d6129c4dc35e0f0e22e18e93ad91e56d4d58a74593212257"></a><!-- doxytag: member="South" ref="342b3134ad39ee14d6129c4dc35e0f0e22e18e93ad91e56d4d58a74593212257" args="" -->South</em> </td><td>
South (bottom). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="342b3134ad39ee14d6129c4dc35e0f0e083d8ef2c7e8cea026f902dca9b519cc"></a><!-- doxytag: member="West" ref="342b3134ad39ee14d6129c4dc35e0f0e083d8ef2c7e8cea026f902dca9b519cc" args="" -->West</em> </td><td>
West (left). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="342b3134ad39ee14d6129c4dc35e0f0e6f0ad0bd2eb8d3c4f86ecd568e33ebe8"></a><!-- doxytag: member="Center" ref="342b3134ad39ee14d6129c4dc35e0f0e6f0ad0bd2eb8d3c4f86ecd568e33ebe8" args="" -->Center</em> </td><td>
Center. </td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="5f9a17668850dfbd4566b4351334ab48"></a><!-- doxytag: member="Wt::WBorderLayout::addItem" ref="5f9a17668850dfbd4566b4351334ab48" 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> * </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>
The item may be a widget or nested layout.<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" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WBorderLayout.html#1d6703aaefe8924d71ad48dbd4b7dcab" title="Removes a layout item (widget or nested layout).">removeItem(WLayoutItem *)</a>, <a class="el" href="classWt_1_1WLayout.html#886d2ec4b6b97524ba3dff93252e6540" title="Adds the given widget to the layout.">addWidget(WWidget *)</a> </dd></dl>
<p>Implements <a class="el" href="classWt_1_1WLayout.html#d4a778298c01d290692afc77e441c629">Wt::WLayout</a>.</p>
</div>
</div><p>
<a class="anchor" name="1d6703aaefe8924d71ad48dbd4b7dcab"></a><!-- doxytag: member="Wt::WBorderLayout::removeItem" ref="1d6703aaefe8924d71ad48dbd4b7dcab" 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> * </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" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WBorderLayout.html#5f9a17668850dfbd4566b4351334ab48" title="Adds a layout item.">addItem(WLayoutItem *)</a>, <a class="el" href="classWt_1_1WLayout.html#3f5e0f62a0deb8f2473e52c5270128d5" title="Removes the given widget from the layout.">removeWidget(WWidget *)</a> </dd></dl>
<p>Implements <a class="el" href="classWt_1_1WLayout.html#8c8d94070a51e669f8077249b67742ae">Wt::WLayout</a>.</p>
</div>
</div><p>
<a class="anchor" name="cd496ae37d97427d2234fb3147a2f500"></a><!-- doxytag: member="Wt::WBorderLayout::itemAt" ref="cd496ae37d97427d2234fb3147a2f500" 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 </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>
If there is no item at the <code>index</code>, <code>0</code> is returned.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLayout.html#fecba709ae19b93ef9bbe167650dbc5c" title="Returns the index of a given item.">indexOf(WLayoutItem *) const</a>, <a class="el" href="classWt_1_1WBorderLayout.html#1a29297adea327f48c1235022125f069" title="Returns the number of items in this layout.">count()</a> </dd></dl>
<p>Implements <a class="el" href="classWt_1_1WLayout.html#3d48e5e4f56ad5d1b0e60180ebc91442">Wt::WLayout</a>.</p>
</div>
</div><p>
<a class="anchor" name="1a29297adea327f48c1235022125f069"></a><!-- doxytag: member="Wt::WBorderLayout::count" ref="1a29297adea327f48c1235022125f069" 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>
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#cd496ae37d97427d2234fb3147a2f500" title="Returns the layout item at a specific index.">itemAt()</a>.
<p>Implements <a class="el" href="classWt_1_1WLayout.html#799b3cce5c1717b18e54c14471e84033">Wt::WLayout</a>.</p>
</div>
</div><p>
<a class="anchor" name="f7667b3d486dc649a7ed0c56f8c06206"></a><!-- doxytag: member="Wt::WBorderLayout::addWidget" ref="f7667b3d486dc649a7ed0c56f8c06206" 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> * </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#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> </td>
<td class="paramname"> <em>position</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Adds a widget to the given position.
<p>
Only one widget per position is supported.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WBorderLayout.html#fbf14676206fad724c6eb725d4650842" title="Adds a layout item to the given position.">add(WLayoutItem *, Position)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="fbf14676206fad724c6eb725d4650842"></a><!-- doxytag: member="Wt::WBorderLayout::add" ref="fbf14676206fad724c6eb725d4650842" 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> * </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#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> </td>
<td class="paramname"> <em>position</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Adds a layout item to the given position.
<p>
Only one widget per position is supported.
</div>
</div><p>
<a class="anchor" name="ac75ab996385ab95fa5c774a12eb68a5"></a><!-- doxytag: member="Wt::WBorderLayout::widgetAt" ref="ac75ab996385ab95fa5c774a12eb68a5" 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#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> </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>
Returns <code>0</code> if no widget was set for that position.
</div>
</div><p>
<a class="anchor" name="b241699474232f2562a5f2b5c4474879"></a><!-- doxytag: member="Wt::WBorderLayout::itemAt" ref="b241699474232f2562a5f2b5c4474879" 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#342b3134ad39ee14d6129c4dc35e0f0e">Position</a> </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>
Returns <code>0</code> if no item was set for that position.
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:06 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|