File: classWt_1_1WLayout.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (612 lines) | stat: -rw-r--r-- 40,268 bytes parent folder | download
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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
<!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::WLayout 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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WLayout.html">WLayout</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WLayout Class Reference</h1><!-- doxytag: class="Wt::WLayout" --><!-- doxytag: inherits="Wt::WLayoutItem,Wt::WObject" -->An abstract base class for layout managers.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WLayout&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WLayout:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WLayout__inherit__graph.png" border="0" usemap="#Wt_1_1WLayout__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WLayout__inherit__map">
<area shape="rect" href="classWt_1_1WBorderLayout.html" title="A layout manager which divides the container region in five regions." alt="" coords="5,155,139,181"><area shape="rect" href="classWt_1_1WBoxLayout.html" title="A layout manager which arranges widgets horizontally or vertically." alt="" coords="163,155,283,181"><area shape="rect" href="classWt_1_1WDefaultLayout.html" title="A default layout manager." alt="" coords="307,155,443,181"><area shape="rect" href="classWt_1_1WFitLayout.html" title="A layout manager which spans a single widget to all available space." alt="" coords="467,155,579,181"><area shape="rect" href="classWt_1_1WGridLayout.html" title="A layout manager which arranges widgets in a grid." alt="" coords="603,155,723,181"><area shape="rect" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout." alt="" coords="247,5,369,32"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="393,5,489,32"><area shape="rect" href="classWt_1_1WHBoxLayout.html" title="A layout manager which arranges widgets horizontally." alt="" coords="7,229,135,256"><area shape="rect" href="classWt_1_1WVBoxLayout.html" title="A layout manager which arranges widgets vertically." alt="" coords="159,229,287,256"><area shape="rect" href="classWt_1_1WAccordionLayout.html" title="A layout manager which shows one item at a time." alt="" coords="311,229,463,256"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WLayout-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 Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#fee1a345112b107158765695fc6837eb">~WLayout</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#fee1a345112b107158765695fc6837eb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#d4a778298c01d290692afc77e441c629">addItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a layout <em>item</em>.  <a href="#d4a778298c01d290692afc77e441c629"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#886d2ec4b6b97524ba3dff93252e6540">addWidget</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds the given <em>widget</em> to the layout.  <a href="#886d2ec4b6b97524ba3dff93252e6540"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#8c8d94070a51e669f8077249b67742ae">removeItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes a layout <em>item</em> (widget or nested layout).  <a href="#8c8d94070a51e669f8077249b67742ae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#3f5e0f62a0deb8f2473e52c5270128d5">removeWidget</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes the given <em>widget</em> from the layout.  <a href="#3f5e0f62a0deb8f2473e52c5270128d5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#799b3cce5c1717b18e54c14471e84033">count</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of items in this layout.  <a href="#799b3cce5c1717b18e54c14471e84033"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#3d48e5e4f56ad5d1b0e60180ebc91442">itemAt</a> (int index) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the layout item at a specific <em>index</em>.  <a href="#3d48e5e4f56ad5d1b0e60180ebc91442"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#fecba709ae19b93ef9bbe167650dbc5c">indexOf</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the index of a given <em>item</em>.  <a href="#fecba709ae19b93ef9bbe167650dbc5c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af26f397f48824ed1e359d6a603eebe8"></a><!-- doxytag: member="Wt::WLayout::findWidgetItem" ref="af26f397f48824ed1e359d6a603eebe8" args="(WWidget *widget)" -->
virtual <a class="el" href="classWt_1_1WWidgetItem.html">WWidgetItem</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#af26f397f48824ed1e359d6a603eebe8">findWidgetItem</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Finds the widget item associated with the given <em>widget</em>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#c8fa1927e7c9b15e3e673cbf6a473c34">setLayoutHint</a> (const std::string &amp;name, const std::string &amp;value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides a hint to the layout implementation.  <a href="#c8fa1927e7c9b15e3e673cbf6a473c34"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#da2f5beaa8a0153451ba55581ea9bbf8">widget</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the widget that is held by this <a class="el" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout.">WLayoutItem</a>.  <a href="#da2f5beaa8a0153451ba55581ea9bbf8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WLayout.html">WLayout</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#82078a08c5a21aa67bd5a83c377d437d">layout</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the layout that implements this <a class="el" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout.">WLayoutItem</a>.  <a href="#82078a08c5a21aa67bd5a83c377d437d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f0448e22813516009edc5555572a2043"></a><!-- doxytag: member="Wt::WLayout::parentLayout" ref="f0448e22813516009edc5555572a2043" args="() const " -->
virtual <a class="el" href="classWt_1_1WLayout.html">WLayout</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#f0448e22813516009edc5555572a2043">parentLayout</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the layout in which this item is contained. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WLayoutItemImpl.html">WLayoutItemImpl</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#eb31f2caad3ed9b1ab2b06327cc92bb2">impl</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the implementation for this layout item.  <a href="#eb31f2caad3ed9b1ab2b06327cc92bb2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#f18bae8c743c9f9a5cabee58826ffb45">setContentsMargins</a> (int left, int top, int right, int bottom)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set contents margins (in pixels).  <a href="#f18bae8c743c9f9a5cabee58826ffb45"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#90756cc8765259a26f8d54fd4531c7b3">getContentsMargins</a> (int *left, int *top, int *right, int *bottom) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the contents margins.  <a href="#90756cc8765259a26f8d54fd4531c7b3"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ea1c353ac9d38a94ad08fc0cb8d6c25"></a><!-- doxytag: member="Wt::WLayout::WLayout" ref="7ea1c353ac9d38a94ad08fc0cb8d6c25" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#7ea1c353ac9d38a94ad08fc0cb8d6c25">WLayout</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a layout. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#a1549c20751b9a50cbc47d3a47adcb21">update</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update the layout.  <a href="#a1549c20751b9a50cbc47d3a47adcb21"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#8cf7d6517ab800c975a25dfc6682c58f">updateAddItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update the layout, adding the given layout <em>item</em>.  <a href="#8cf7d6517ab800c975a25dfc6682c58f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#31c7495263f67a4fbc8b384784af628d">updateRemoveItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update the layout, remove the given layout <em>item</em>.  <a href="#31c7495263f67a4fbc8b384784af628d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#f196e38edc970646d765f003a6cc352e">setLayoutInParent</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *parent)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the layout in the <em>parent</em>.  <a href="#f196e38edc970646d765f003a6cc352e"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c3f37ebdf9b12e078c7303990e139f9d"></a><!-- doxytag: member="Wt::WLayout::setParent" ref="c3f37ebdf9b12e078c7303990e139f9d" args="(WWidget *parent)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#c3f37ebdf9b12e078c7303990e139f9d">setParent</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *parent)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal method. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15f0f5f75cc008b12619d643153889da"></a><!-- doxytag: member="Wt::WLayout::setParentLayout" ref="15f0f5f75cc008b12619d643153889da" args="(WLayout *parentLayout)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLayout.html#15f0f5f75cc008b12619d643153889da">setParentLayout</a> (<a class="el" href="classWt_1_1WLayout.html">WLayout</a> *parentLayout)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal method. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An abstract base class for layout managers. 
<p>
This class is the abstract base class for any layout manager. A layout manager is associated with a container widget, and manages the layout of children inside the whole space available to the container widget.<p>
Layout managers may be used with <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a> and <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. A suitable implementation for all layout classes is not yet available for both containers, and thus you need to refer to the documentation of a layout manager to see if it is applicable to your situation.<p>
The implementation of the layout manager depends on the container widget to which it is set, and is therefore deferred to WLayoutImpl.<p>
A layout never assumes ownership of contained items, instead these are owned by the parent widget to which the layout is applied.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>When applying a layout manager to a <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</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>. </dd></dl>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="fee1a345112b107158765695fc6837eb"></a><!-- doxytag: member="Wt::WLayout::~WLayout" ref="fee1a345112b107158765695fc6837eb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WLayout::~WLayout           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor. 
<p>
This will delete the layout (and nested layouts), but not the contained widgets. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="d4a778298c01d290692afc77e441c629"></a><!-- doxytag: member="Wt::WLayout::addItem" ref="d4a778298c01d290692afc77e441c629" args="(WLayoutItem *item)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Wt::WLayout::addItem           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure 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_1WLayout.html#8c8d94070a51e669f8077249b67742ae" 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>Implemented in <a class="el" href="classWt_1_1WBorderLayout.html#5f9a17668850dfbd4566b4351334ab48">Wt::WBorderLayout</a>, <a class="el" href="classWt_1_1WBoxLayout.html#2932a804ac01e0b314408bf4d366385d">Wt::WBoxLayout</a>, <a class="el" href="classWt_1_1WDefaultLayout.html#281200191e8568c0dd8f7f355640cfbf">Wt::WDefaultLayout</a>, <a class="el" href="classWt_1_1WFitLayout.html#c961be1e914193e5f46992ef326d0939">Wt::WFitLayout</a>, and <a class="el" href="classWt_1_1WGridLayout.html#82fb0e2743d9081893b83003d5263dbd">Wt::WGridLayout</a>.</p>

</div>
</div><p>
<a class="anchor" name="886d2ec4b6b97524ba3dff93252e6540"></a><!-- doxytag: member="Wt::WLayout::addWidget" ref="886d2ec4b6b97524ba3dff93252e6540" args="(WWidget *widget)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLayout::addWidget           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>widget</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds the given <em>widget</em> to the layout. 
<p>
This method wraps the widget in a <a class="el" href="classWt_1_1WWidgetItem.html" title="A layout item that holds a single widget.">WWidgetItem</a> and calls <a class="el" href="classWt_1_1WLayout.html#d4a778298c01d290692afc77e441c629" title="Adds a layout item.">addItem(WLayoutItem *)</a>.<p>
How the widget 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_1WLayout.html#3f5e0f62a0deb8f2473e52c5270128d5" title="Removes the given widget from the layout.">removeWidget(WWidget *)</a>, <a class="el" href="classWt_1_1WLayout.html#d4a778298c01d290692afc77e441c629" title="Adds a layout item.">addItem(WLayoutItem *)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="8c8d94070a51e669f8077249b67742ae"></a><!-- doxytag: member="Wt::WLayout::removeItem" ref="8c8d94070a51e669f8077249b67742ae" args="(WLayoutItem *item)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Wt::WLayout::removeItem           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure 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_1WLayout.html#d4a778298c01d290692afc77e441c629" 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>Implemented in <a class="el" href="classWt_1_1WBorderLayout.html#1d6703aaefe8924d71ad48dbd4b7dcab">Wt::WBorderLayout</a>, <a class="el" href="classWt_1_1WBoxLayout.html#a01f05c0f40fa89e418b802f78f2870c">Wt::WBoxLayout</a>, <a class="el" href="classWt_1_1WDefaultLayout.html#2172639feddcd11fd319eb481a5d20a6">Wt::WDefaultLayout</a>, <a class="el" href="classWt_1_1WFitLayout.html#fd4c47377c0aa0a3a55db13a0ff2bae2">Wt::WFitLayout</a>, and <a class="el" href="classWt_1_1WGridLayout.html#35a10fd71fa00cad962bd0980d9cdc00">Wt::WGridLayout</a>.</p>

</div>
</div><p>
<a class="anchor" name="3f5e0f62a0deb8f2473e52c5270128d5"></a><!-- doxytag: member="Wt::WLayout::removeWidget" ref="3f5e0f62a0deb8f2473e52c5270128d5" args="(WWidget *widget)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WLayout::removeWidget           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>widget</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Removes the given <em>widget</em> from the layout. 
<p>
This method finds the corresponding <a class="el" href="classWt_1_1WWidgetItem.html" title="A layout item that holds a single widget.">WWidgetItem</a> and calls <a class="el" href="classWt_1_1WLayout.html#8c8d94070a51e669f8077249b67742ae" title="Removes a layout item (widget or nested layout).">removeItem(WLayoutItem *)</a>. The widget itself is not destroyed.<p>
Returns <code>true</code> if succesful.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLayout.html#886d2ec4b6b97524ba3dff93252e6540" title="Adds the given widget to the layout.">addWidget(WWidget *)</a>, <a class="el" href="classWt_1_1WLayout.html#8c8d94070a51e669f8077249b67742ae" title="Removes a layout item (widget or nested layout).">removeItem(WLayoutItem *)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="799b3cce5c1717b18e54c14471e84033"></a><!-- doxytag: member="Wt::WLayout::count" ref="799b3cce5c1717b18e54c14471e84033" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int Wt::WLayout::count           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure 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_1WLayout.html#3d48e5e4f56ad5d1b0e60180ebc91442" title="Returns the layout item at a specific index.">itemAt()</a>. 
<p>Implemented in <a class="el" href="classWt_1_1WBorderLayout.html#1a29297adea327f48c1235022125f069">Wt::WBorderLayout</a>, <a class="el" href="classWt_1_1WBoxLayout.html#961fe311fd07adbf7b60b571ef7a8278">Wt::WBoxLayout</a>, <a class="el" href="classWt_1_1WDefaultLayout.html#2c662db2763510aa0e47a84c098dcc62">Wt::WDefaultLayout</a>, <a class="el" href="classWt_1_1WFitLayout.html#f8f23224493fcb1958fa676fd079b5e7">Wt::WFitLayout</a>, and <a class="el" href="classWt_1_1WGridLayout.html#95300e5b406b82d9e1993bd96c80cab7">Wt::WGridLayout</a>.</p>

</div>
</div><p>
<a class="anchor" name="3d48e5e4f56ad5d1b0e60180ebc91442"></a><!-- doxytag: member="Wt::WLayout::itemAt" ref="3d48e5e4f56ad5d1b0e60180ebc91442" args="(int index) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a>* Wt::WLayout::itemAt           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure 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_1WLayout.html#799b3cce5c1717b18e54c14471e84033" title="Returns the number of items in this layout.">count()</a> </dd></dl>

<p>Implemented in <a class="el" href="classWt_1_1WBorderLayout.html#cd496ae37d97427d2234fb3147a2f500">Wt::WBorderLayout</a>, <a class="el" href="classWt_1_1WBoxLayout.html#ad2ec4be48cb11a7802b3e6d7cb8f0fd">Wt::WBoxLayout</a>, <a class="el" href="classWt_1_1WDefaultLayout.html#865e47b372c73f913f5a1c7d7124bd1e">Wt::WDefaultLayout</a>, <a class="el" href="classWt_1_1WFitLayout.html#9a058c59e6fc3d7526d1d3c57c940049">Wt::WFitLayout</a>, and <a class="el" href="classWt_1_1WGridLayout.html#dfbab1a8c0090423f24371bb5281fcb7">Wt::WGridLayout</a>.</p>

</div>
</div><p>
<a class="anchor" name="fecba709ae19b93ef9bbe167650dbc5c"></a><!-- doxytag: member="Wt::WLayout::indexOf" ref="fecba709ae19b93ef9bbe167650dbc5c" args="(WLayoutItem *item) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLayout::indexOf           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the index of a given <em>item</em>. 
<p>
The default implementation loops over all items, and returns the index for which itemAt(index) equals <code>item</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLayout.html#3d48e5e4f56ad5d1b0e60180ebc91442" title="Returns the layout item at a specific index.">itemAt(int) const</a> </dd></dl>

<p>Reimplemented in <a class="el" href="classWt_1_1WDefaultLayout.html#b07de0e688076a6d722c2558a5675337">Wt::WDefaultLayout</a>, and <a class="el" href="classWt_1_1WFitLayout.html#68002f0345e96fdfec1ccaa823c52a3e">Wt::WFitLayout</a>.</p>

</div>
</div><p>
<a class="anchor" name="c8fa1927e7c9b15e3e673cbf6a473c34"></a><!-- doxytag: member="Wt::WLayout::setLayoutHint" ref="c8fa1927e7c9b15e3e673cbf6a473c34" args="(const std::string &amp;name, const std::string &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLayout::setLayoutHint           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides a hint to the layout implementation. 
<p>
In some cases, a layout implementation may require some hints for rendering its contents. Possible hints are indicated in the reference documentation for each layout manager. 
</div>
</div><p>
<a class="anchor" name="da2f5beaa8a0153451ba55581ea9bbf8"></a><!-- doxytag: member="Wt::WLayout::widget" ref="da2f5beaa8a0153451ba55581ea9bbf8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classWt_1_1WWidget.html">WWidget</a>* Wt::WLayout::widget           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the widget that is held by this <a class="el" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout.">WLayoutItem</a>. 
<p>
This implements a type-safe upcasting mechanism to a <a class="el" href="classWt_1_1WWidgetItem.html" title="A layout item that holds a single widget.">WWidgetItem</a>. 
<p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#06b127060eaf8a0b87a994b483d493e1">Wt::WLayoutItem</a>.</p>

</div>
</div><p>
<a class="anchor" name="82078a08c5a21aa67bd5a83c377d437d"></a><!-- doxytag: member="Wt::WLayout::layout" ref="82078a08c5a21aa67bd5a83c377d437d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classWt_1_1WLayout.html">WLayout</a>* Wt::WLayout::layout           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the layout that implements this <a class="el" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout.">WLayoutItem</a>. 
<p>
This implements a type-safe upcasting mechanism to a <a class="el" href="classWt_1_1WLayout.html" title="An abstract base class for layout managers.">WLayout</a>. 
<p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#3f81b4d198401ae493276a61be6784cf">Wt::WLayoutItem</a>.</p>

</div>
</div><p>
<a class="anchor" name="eb31f2caad3ed9b1ab2b06327cc92bb2"></a><!-- doxytag: member="Wt::WLayout::impl" ref="eb31f2caad3ed9b1ab2b06327cc92bb2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WLayoutItemImpl.html">WLayoutItemImpl</a>* Wt::WLayout::impl           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the implementation for this layout item. 
<p>
The implementation of a layout item depends on the kind of container for which the layout does layout management. 
<p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#b2f17122cf9589657bc0e6fa5e3ea560">Wt::WLayoutItem</a>.</p>

</div>
</div><p>
<a class="anchor" name="f18bae8c743c9f9a5cabee58826ffb45"></a><!-- doxytag: member="Wt::WLayout::setContentsMargins" ref="f18bae8c743c9f9a5cabee58826ffb45" args="(int left, int top, int right, int bottom)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLayout::setContentsMargins           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>bottom</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set contents margins (in pixels). 
<p>
The default contents margins are 9 pixels in all directions.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Only used when the layout manager is applied to a <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a>.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLayout.html#f18bae8c743c9f9a5cabee58826ffb45" title="Set contents margins (in pixels).">setContentsMargins()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="90756cc8765259a26f8d54fd4531c7b3"></a><!-- doxytag: member="Wt::WLayout::getContentsMargins" ref="90756cc8765259a26f8d54fd4531c7b3" args="(int *left, int *top, int *right, int *bottom) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLayout::getContentsMargins           </td>
          <td>(</td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>bottom</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the contents margins. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLayout.html#f18bae8c743c9f9a5cabee58826ffb45" title="Set contents margins (in pixels).">setContentsMargins()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="a1549c20751b9a50cbc47d3a47adcb21"></a><!-- doxytag: member="Wt::WLayout::update" ref="a1549c20751b9a50cbc47d3a47adcb21" args="(WLayoutItem *item=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLayout::update           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Update the layout. 
<p>
Must be called whenever some properties of the layout have changed. 
</div>
</div><p>
<a class="anchor" name="8cf7d6517ab800c975a25dfc6682c58f"></a><!-- doxytag: member="Wt::WLayout::updateAddItem" ref="8cf7d6517ab800c975a25dfc6682c58f" args="(WLayoutItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLayout::updateAddItem           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Update the layout, adding the given layout <em>item</em>. 
<p>
Must be called from the implementation of <a class="el" href="classWt_1_1WLayout.html#d4a778298c01d290692afc77e441c629" title="Adds a layout item.">addItem(WLayoutItem *)</a> 
</div>
</div><p>
<a class="anchor" name="31c7495263f67a4fbc8b384784af628d"></a><!-- doxytag: member="Wt::WLayout::updateRemoveItem" ref="31c7495263f67a4fbc8b384784af628d" args="(WLayoutItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLayout::updateRemoveItem           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Update the layout, remove the given layout <em>item</em>. 
<p>
Must be called from the implementation of <a class="el" href="classWt_1_1WLayout.html#8c8d94070a51e669f8077249b67742ae" title="Removes a layout item (widget or nested layout).">removeItem(WLayoutItem *)</a> 
</div>
</div><p>
<a class="anchor" name="f196e38edc970646d765f003a6cc352e"></a><!-- doxytag: member="Wt::WLayout::setLayoutInParent" ref="f196e38edc970646d765f003a6cc352e" args="(WWidget *parent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLayout::setLayoutInParent           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>parent</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the layout in the <em>parent</em>. 
<p>
Must be called from the constructor after the layout has been fully created (since it will call virtual methods <a class="el" href="classWt_1_1WLayout.html#799b3cce5c1717b18e54c14471e84033" title="Returns the number of items in this layout.">count()</a> and <a class="el" href="classWt_1_1WLayout.html#3d48e5e4f56ad5d1b0e60180ebc91442" title="Returns the layout item at a specific index.">itemAt()</a>). 
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<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>