File: classWt_1_1WGridLayout.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 (908 lines) | stat: -rw-r--r-- 60,310 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
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
<!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::WGridLayout 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_1WGridLayout.html">WGridLayout</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WGridLayout Class Reference</h1><!-- doxytag: class="Wt::WGridLayout" --><!-- doxytag: inherits="Wt::WLayout" -->A layout manager which arranges widgets in a grid.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WGridLayout&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WGridLayout:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WGridLayout__inherit__graph.png" border="0" usemap="#Wt_1_1WGridLayout__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WGridLayout__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_1WGridLayout-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#d6dc690b71e636f9d99f1ab6bf257002">WGridLayout</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new grid layout.  <a href="#d6dc690b71e636f9d99f1ab6bf257002"></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_1WGridLayout.html#82fb0e2743d9081893b83003d5263dbd">addItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a layout <em>item</em>.  <a href="#82fb0e2743d9081893b83003d5263dbd"></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_1WGridLayout.html#35a10fd71fa00cad962bd0980d9cdc00">removeItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes a layout <em>item</em> (widget or nested layout).  <a href="#35a10fd71fa00cad962bd0980d9cdc00"></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_1WGridLayout.html#dfbab1a8c0090423f24371bb5281fcb7">itemAt</a> (int index) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the layout item at a specific <em>index</em>.  <a href="#dfbab1a8c0090423f24371bb5281fcb7"></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_1WGridLayout.html#95300e5b406b82d9e1993bd96c80cab7">count</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of items in this layout.  <a href="#95300e5b406b82d9e1993bd96c80cab7"></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_1WGridLayout.html#2dd5c84a8054c1bcb602cb72cb27f898">addItem</a> (<a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *item, int row, int column, int rowSpan=1, int columnSpan=1, WFlags&lt; <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a layout item to the grid.  <a href="#2dd5c84a8054c1bcb602cb72cb27f898"></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_1WGridLayout.html#8e0ae47aa0e7283ce3d4be05249c05eb">addLayout</a> (<a class="el" href="classWt_1_1WLayout.html">WLayout</a> *layout, int row, int column, WFlags&lt; <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a nested layout item to the grid.  <a href="#8e0ae47aa0e7283ce3d4be05249c05eb"></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_1WGridLayout.html#b6e0f9aaecfed4dc978a3c0534f844ba">addLayout</a> (<a class="el" href="classWt_1_1WLayout.html">WLayout</a> *layout, int row, int column, int rowSpan, int columnSpan, WFlags&lt; <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a nested layout item to the grid.  <a href="#b6e0f9aaecfed4dc978a3c0534f844ba"></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_1WGridLayout.html#6e64afee237de5665fcd014f407130b2">addWidget</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget, int row, int column, WFlags&lt; <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a widget to the grid.  <a href="#6e64afee237de5665fcd014f407130b2"></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_1WGridLayout.html#dd85db41b29855aa620adbcef7e19dae">addWidget</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget, int row, int column, int rowSpan, int columnSpan, WFlags&lt; <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignment=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a widget to the grid.  <a href="#dd85db41b29855aa620adbcef7e19dae"></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_1WGridLayout.html#60713a99ab98907fe5c9f99417fb6493">setHorizontalSpacing</a> (int size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the horizontal spacing.  <a href="#60713a99ab98907fe5c9f99417fb6493"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#4fe774ed02137f1834f79e9214d93fc9">horizontalSpacing</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the horizontal spacing.  <a href="#4fe774ed02137f1834f79e9214d93fc9"></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_1WGridLayout.html#d2a2188bece8a47628dae340108962ae">setVerticalSpacing</a> (int size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the vertical spacing.  <a href="#d2a2188bece8a47628dae340108962ae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#455f8a42d2339a3485a34a9bb4f140cf">verticalSpacing</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the vertical spacing.  <a href="#455f8a42d2339a3485a34a9bb4f140cf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#540aa44a75a66fe61d5bae8e37ced84b">columnCount</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the column count.  <a href="#540aa44a75a66fe61d5bae8e37ced84b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#7958b26122eb898572bf3117974de00b">rowCount</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the row count.  <a href="#7958b26122eb898572bf3117974de00b"></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_1WGridLayout.html#4605de0523f5613096b6cbd983123c8b">setColumnStretch</a> (int column, int stretch)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the column stretch.  <a href="#4605de0523f5613096b6cbd983123c8b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#33099b99582099b9ea4fadcc5b4b9f91">columnStretch</a> (int column) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the column stretch.  <a href="#33099b99582099b9ea4fadcc5b4b9f91"></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_1WGridLayout.html#d8d1199b57063fb7286be6dab13c998c">setRowStretch</a> (int row, int stretch)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the row stretch.  <a href="#d8d1199b57063fb7286be6dab13c998c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WGridLayout.html#118a1d8599100e6b9ee96618eff91637">rowStretch</a> (int row) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the column stretch.  <a href="#118a1d8599100e6b9ee96618eff91637"></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_1WGridLayout.html#180c33a8f9e21a7b58f12e055fdb469e">setColumnResizable</a> (int column, bool enabled=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets whether the user may drag a particular column border.  <a href="#180c33a8f9e21a7b58f12e055fdb469e"></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_1WGridLayout.html#1fe8bc99a587181d85a73465ab20d022">columnIsResizable</a> (int column) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether the user may drag a particular column border.  <a href="#1fe8bc99a587181d85a73465ab20d022"></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_1WGridLayout.html#6028853eb5a66d868323d0e034b69390">setRowResizable</a> (int row, bool enabled=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets whether the user may drag a particular row border.  <a href="#6028853eb5a66d868323d0e034b69390"></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_1WGridLayout.html#b60cbaf413636b09b09d3b6b43875286">rowIsResizable</a> (int row) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether the user may drag a particular row border.  <a href="#b60cbaf413636b09b09d3b6b43875286"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A layout manager which arranges widgets in a grid. 
<p>
This is a layout class that arranges widgets in a grid, to span the entire area of the parent container. Each grid location (row, column) may contain one widget or nested layout. Horizontal and vertical space are divided so that each column/row is given its minimum size and the remaining space is dived according to stretch factors among the columns/rows. The minimum width of a column/row is based on the minimum dimensions of contained widgets or nested layouts. The default minimum height and width may be overridden using <a class="el" href="classWt_1_1WWidget.html#092c7d1ecfde7f004ef120389d91775d" title="Sets a minimum size.">WWidget::setMinimumSize()</a>.<p>
If you want to use the layout manager for a container which does not have a height that is constrained somehow, you need to 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>. Otherwise the behavior is undefined (the parent container will continue to increase in size as it tries to satisfy the constraints assuming a contrained height).<p>
You can use <a class="el" href="classWt_1_1WContainerWidget.html#e269f870992c5843d3097a63795b10d6">WContainerWidget::setOverflow(OverflowAuto) </a> to automatically show scrollbars on a container widget inserted in the layout. In some cases, you will want to wrap another widget (like a <a class="el" href="classWt_1_1WTable.html" title="A container widget which provides layout of children in a table grid.">WTable</a>) into <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a> to have the scrollbars, since not all widgets allow for scrollbars.<p>
A layout manager may provide resize handles between columns or rows which allow the user to change the automatic layout provided by the layout manager (see <a class="el" href="classWt_1_1WGridLayout.html#6028853eb5a66d868323d0e034b69390" title="Sets whether the user may drag a particular row border.">setRowResizable()</a> and <a class="el" href="classWt_1_1WGridLayout.html#180c33a8f9e21a7b58f12e055fdb469e" title="Sets whether the user may drag a particular column border.">setColumnResizable()</a>). Resize handles between rows only work when the layout fills the parent vertical space (i.e. is not aligned to the top). Likewise, resize handles between columns only work when the layout fills the parent horiziontal space (i.e. is not aligned left, right or centered).<p>
Columns and rows are separated using a constant spacing, which defaults to 6 pixels by default, and can be changed using <a class="el" href="classWt_1_1WGridLayout.html#60713a99ab98907fe5c9f99417fb6493" title="Sets the horizontal spacing.">setHorizontalSpacing()</a> and <a class="el" href="classWt_1_1WGridLayout.html#d2a2188bece8a47628dae340108962ae" title="Sets the vertical spacing.">setVerticalSpacing()</a>. In addition, when this layout is a top-level layout (i.e. is not nested inside another layout), a margin is set around the contents, which thus replaces padding defined for the container. It is not allowed to define padding for the container widget using its CSS 'padding' property or the <a class="el" href="classWt_1_1WContainerWidget.html#fa5f6800e2170ae2f4586a25c72f8c34" title="Sets padding inside the widget.">WContainerWidget::setPadding()</a>. This margin also defaults to 9 pixels, and can be changed using <a class="el" href="classWt_1_1WLayout.html#f18bae8c743c9f9a5cabee58826ffb45" title="Set contents margins (in pixels).">setContentsMargins()</a>.<p>
For each column or row, a stretch factor may be defined, which controls how remaining horizontal or vertical space is used. Each column and row is stretched using the stretch factor to fill the remaining space. When the stretch factor is 0, the height of the row and its contents is not actively managed. As a consequence, the contents of each cell will not fill the cell. You may use a special stretch factor of -1 to indicate that the height of the row should not stretch but the contents height should be actively managed. This has as draw-back that the height of the row will no longer reduce in size when any of the cell contents reduces in size.<p>
Usage example:<p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a> *w = <span class="keyword">new</span> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a>(<span class="keyword">this</span>);
 w-&gt;<a class="code" href="classWt_1_1WWebWidget.html#e1b84e31581405358b6d57ec14505234" title="Resizes the widget.">resize</a>(<a class="code" href="classWt_1_1WLength.html#0cf39ca4225776879d56ade60320c31a" title="An &amp;#39;auto&amp;#39; length.">WLength::Auto</a>, 600);

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

 w-&gt;<a class="code" href="classWt_1_1WContainerWidget.html#1c84e0ffe330d4798f0ce217f75be08c" title="Sets a layout manager for the container.">setLayout</a>(layout);
</pre></div><p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This layout manager is applicable only to <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a> container widgets. You may use it within an <a class="el" href="classWt_1_1Ext_1_1Container.html" title="A container class which manages its contents using layout managers.">Ext::Container</a> indirectly by first setting a <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a> using a <a class="el" href="classWt_1_1WFitLayout.html" title="A layout manager which spans a single widget to all available space.">WFitLayout</a>.<p>
When JavaScript support is not available, only Safari and Firefox properly implement this layout. For other browsers, only the horizontal layout is properly implemented, while vertically all widgets use their minimum size.<p>
When set 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>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="d6dc690b71e636f9d99f1ab6bf257002"></a><!-- doxytag: member="Wt::WGridLayout::WGridLayout" ref="d6dc690b71e636f9d99f1ab6bf257002" args="(WWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WGridLayout::WGridLayout           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a new grid layout. 
<p>
The grid will grow dynamically as items are added.<p>
Use <code>parent</code> = <code>0</code> to create a layout manager that can be nested inside other layout managers or to specify a specific alignment when setting the layout to a <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a>. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="82fb0e2743d9081893b83003d5263dbd"></a><!-- doxytag: member="Wt::WGridLayout::addItem" ref="82fb0e2743d9081893b83003d5263dbd" args="(WLayoutItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addItem           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</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_1WGridLayout.html#35a10fd71fa00cad962bd0980d9cdc00" 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="35a10fd71fa00cad962bd0980d9cdc00"></a><!-- doxytag: member="Wt::WGridLayout::removeItem" ref="35a10fd71fa00cad962bd0980d9cdc00" args="(WLayoutItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::removeItem           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</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_1WGridLayout.html#82fb0e2743d9081893b83003d5263dbd" 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="dfbab1a8c0090423f24371bb5281fcb7"></a><!-- doxytag: member="Wt::WGridLayout::itemAt" ref="dfbab1a8c0090423f24371bb5281fcb7" args="(int index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> * Wt::WGridLayout::itemAt           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</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_1WGridLayout.html#95300e5b406b82d9e1993bd96c80cab7" 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="95300e5b406b82d9e1993bd96c80cab7"></a><!-- doxytag: member="Wt::WGridLayout::count" ref="95300e5b406b82d9e1993bd96c80cab7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::count           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</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_1WGridLayout.html#dfbab1a8c0090423f24371bb5281fcb7" 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="2dd5c84a8054c1bcb602cb72cb27f898"></a><!-- doxytag: member="Wt::WGridLayout::addItem" ref="2dd5c84a8054c1bcb602cb72cb27f898" args="(WLayoutItem *item, int row, int column, int rowSpan=1, int columnSpan=1, WFlags&lt; AlignmentFlag &gt; alignment=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addItem           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLayoutItem.html">WLayoutItem</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>rowSpan</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>columnSpan</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&nbsp;</td>
          <td class="paramname"> <em>alignment</em> = <code>0</code></td><td>&nbsp;</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 grid. 
<p>
Adds the <em>item</em> at (<em>row</em>, <code>column</code>). If an item was already added to that location, it is replaced (but not deleted).<p>
An item may span several more rows or columns, which is controlled by <em>rowSpan</em> and <code>columnSpan</code>.<p>
The <code>alignment</code> specifies the vertical and horizontal alignment of the item. The default value 0 indicates that the item is stretched to fill the entire grid cell. The alignment can be specified as a logical combination of a horizontal alignment (<a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143fd033ef69b45d0b75633be34168c9b606" title="Align to the left.">Wt::AlignLeft</a>, <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f121104cdbb5db77c7d038813a93998e5" title="Align horizontally in the center.">Wt::AlignCenter</a>, or <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143fb250310385383f0b2f68d4e0ad5567e1" title="Align to the right.">Wt::AlignRight</a>) and a vertical alignment (<a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a>, <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>, or <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f4f2aa4abba8500e25651bf8db5f0c162" title="Align bottom of widget to the bottom of the lowest sigling widget.">Wt::AlignBottom</a>).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#8e0ae47aa0e7283ce3d4be05249c05eb" title="Adds a nested layout item to the grid.">addLayout()</a>, <a class="el" href="classWt_1_1WGridLayout.html#6e64afee237de5665fcd014f407130b2" title="Adds a widget to the grid.">addWidget()</a> </dd></dl>

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

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

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

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

</div>
</div><p>
<a class="anchor" name="6e64afee237de5665fcd014f407130b2"></a><!-- doxytag: member="Wt::WGridLayout::addWidget" ref="6e64afee237de5665fcd014f407130b2" args="(WWidget *widget, int row, int column, WFlags&lt; AlignmentFlag &gt; alignment=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addWidget           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&nbsp;</td>
          <td class="paramname"> <em>alignment</em> = <code>0</code></td><td>&nbsp;</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 grid. 
<p>
Adds the <em>widget</em> at (<em>row</em>, <code>column</code>). If an item was already added to that location, it is replaced (but not deleted).<p>
The <code>alignment</code> specifies the vertical and horizontal alignment of the item. The default value 0 indicates that the item is stretched to fill the entire grid cell. The alignment can be specified as a logical combination of a horizontal alignment (<a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143fd033ef69b45d0b75633be34168c9b606" title="Align to the left.">Wt::AlignLeft</a>, <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f121104cdbb5db77c7d038813a93998e5" title="Align horizontally in the center.">Wt::AlignCenter</a>, or <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143fb250310385383f0b2f68d4e0ad5567e1" title="Align to the right.">Wt::AlignRight</a>) and a vertical alignment (<a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a>, <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>, or <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f4f2aa4abba8500e25651bf8db5f0c162" title="Align bottom of widget to the bottom of the lowest sigling widget.">Wt::AlignBottom</a>).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#dd85db41b29855aa620adbcef7e19dae" title="Adds a widget to the grid.">addWidget(WWidget *, int, int, int, int, WFlags&lt;AlignmentFlag&gt;)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="dd85db41b29855aa620adbcef7e19dae"></a><!-- doxytag: member="Wt::WGridLayout::addWidget" ref="dd85db41b29855aa620adbcef7e19dae" args="(WWidget *widget, int row, int column, int rowSpan, int columnSpan, WFlags&lt; AlignmentFlag &gt; alignment=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::addWidget           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>rowSpan</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>columnSpan</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&nbsp;</td>
          <td class="paramname"> <em>alignment</em> = <code>0</code></td><td>&nbsp;</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 grid. 
<p>
Adds the <em>widget</em> at (<em>row</em>, <code>column</code>). If an item was already added to that location, it is replaced (but not deleted).<p>
The widget may span several more rows or columns, which is controlled by <em>rowSpan</em> and <code>columnSpan</code>.<p>
The <code>alignment</code> specifies the vertical and horizontal alignment of the item. The default value 0 indicates that the item is stretched to fill the entire grid cell. The alignment can be specified as a logical combination of a horizontal alignment (<a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143fd033ef69b45d0b75633be34168c9b606" title="Align to the left.">Wt::AlignLeft</a>, <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f121104cdbb5db77c7d038813a93998e5" title="Align horizontally in the center.">Wt::AlignCenter</a>, or <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143fb250310385383f0b2f68d4e0ad5567e1" title="Align to the right.">Wt::AlignRight</a>) and a vertical alignment (<a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a>, <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>, or <a class="el" href="namespaceWt.html#b8f772c69bc8180c31f9e4f4593b143f4f2aa4abba8500e25651bf8db5f0c162" title="Align bottom of widget to the bottom of the lowest sigling widget.">Wt::AlignBottom</a>).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#6e64afee237de5665fcd014f407130b2" title="Adds a widget to the grid.">addWidget(WWidget *, int, int, WFlags&lt;AlignmentFlag&gt;)</a> </dd></dl>

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

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

</div>
</div><p>
<a class="anchor" name="4fe774ed02137f1834f79e9214d93fc9"></a><!-- doxytag: member="Wt::WGridLayout::horizontalSpacing" ref="4fe774ed02137f1834f79e9214d93fc9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::horizontalSpacing           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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

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

</div>
</div><p>
<a class="anchor" name="455f8a42d2339a3485a34a9bb4f140cf"></a><!-- doxytag: member="Wt::WGridLayout::verticalSpacing" ref="455f8a42d2339a3485a34a9bb4f140cf" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::verticalSpacing           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="540aa44a75a66fe61d5bae8e37ced84b"></a><!-- doxytag: member="Wt::WGridLayout::columnCount" ref="540aa44a75a66fe61d5bae8e37ced84b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::columnCount           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="7958b26122eb898572bf3117974de00b"></a><!-- doxytag: member="Wt::WGridLayout::rowCount" ref="7958b26122eb898572bf3117974de00b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WGridLayout::rowCount           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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

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

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

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

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

<p>
Sets the row stretch. 
<p>
Sets the <em>stretch</em> factor for row <code>row</code>. See the description for the special value of -1.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WGridLayout.html#118a1d8599100e6b9ee96618eff91637" title="Returns the column stretch.">rowStretch()</a> </dd></dl>

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

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

</div>
</div><p>
<a class="anchor" name="180c33a8f9e21a7b58f12e055fdb469e"></a><!-- doxytag: member="Wt::WGridLayout::setColumnResizable" ref="180c33a8f9e21a7b58f12e055fdb469e" args="(int column, bool enabled=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::setColumnResizable           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>enabled</em> = <code>true</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets whether the user may drag a particular column border. 
<p>
This method sets whether the border that separates column <em>column</em> from the next column may be resized by the user, depending on the value of <em>enabled</em>.<p>
The default value is <em>false</em>. 
</div>
</div><p>
<a class="anchor" name="1fe8bc99a587181d85a73465ab20d022"></a><!-- doxytag: member="Wt::WGridLayout::columnIsResizable" ref="1fe8bc99a587181d85a73465ab20d022" args="(int column) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WGridLayout::columnIsResizable           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="6028853eb5a66d868323d0e034b69390"></a><!-- doxytag: member="Wt::WGridLayout::setRowResizable" ref="6028853eb5a66d868323d0e034b69390" args="(int row, bool enabled=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WGridLayout::setRowResizable           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>enabled</em> = <code>true</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets whether the user may drag a particular row border. 
<p>
This method sets whether the border that separates row <em>row</em> from the next row may be resized by the user, depending on the value of <em>enabled</em>.<p>
The default value is <em>false</em>. 
</div>
</div><p>
<a class="anchor" name="b60cbaf413636b09b09d3b6b43875286"></a><!-- doxytag: member="Wt::WGridLayout::rowIsResizable" ref="b60cbaf413636b09b09d3b6b43875286" args="(int row) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WGridLayout::rowIsResizable           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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