File: classCEGUI_1_1GridLayoutContainer.html

package info (click to toggle)
cegui-mk2 0.7.6-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 105,384 kB
  • sloc: cpp: 142,729; ansic: 27,984; sh: 11,010; makefile: 2,275; python: 916; xml: 17
file content (654 lines) | stat: -rw-r--r-- 54,033 bytes parent folder | download | duplicates (2)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Crazy Eddies GUI System: CEGUI::GridLayoutContainer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Crazy Eddies GUI System&#160;<span id="projectnumber">0.7.6</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceCEGUI.html">CEGUI</a>      </li>
      <li class="navelem"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html">GridLayoutContainer</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CEGUI::GridLayoutContainer Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CEGUI::GridLayoutContainer" --><!-- doxytag: inherits="CEGUI::LayoutContainer" -->
<p>A Layout Container window layouting it's children into a grid.  
 <a href="classCEGUI_1_1GridLayoutContainer.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for CEGUI::GridLayoutContainer:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classCEGUI_1_1GridLayoutContainer__inherit__graph.gif" border="0" usemap="#CEGUI_1_1GridLayoutContainer_inherit__map" alt="Inheritance graph"/></div>
<map name="CEGUI_1_1GridLayoutContainer_inherit__map" id="CEGUI_1_1GridLayoutContainer_inherit__map">
<area shape="rect" id="node2" href="classCEGUI_1_1LayoutContainer.html" title="An abstract base class providing common functionality and specifying the required interface for deriv..." alt="" coords="17,83,185,112"/><area shape="rect" id="node4" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv..." alt="" coords="41,5,161,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png"/> Collaboration diagram for CEGUI::GridLayoutContainer:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classCEGUI_1_1GridLayoutContainer__coll__graph.gif" border="0" usemap="#CEGUI_1_1GridLayoutContainer_coll__map" alt="Collaboration graph"/></div>
<map name="CEGUI_1_1GridLayoutContainer_coll__map" id="CEGUI_1_1GridLayoutContainer_coll__map">
<area shape="rect" id="node2" href="classCEGUI_1_1LayoutContainer.html" title="An abstract base class providing common functionality and specifying the required interface for deriv..." alt="" coords="337,103,505,132"/><area shape="rect" id="node4" href="classCEGUI_1_1String.html" title="String class used within the GUI system." alt="" coords="5,65,112,95"/><area shape="rect" id="node7" href="classCEGUI_1_1GridLayoutContainerProperties_1_1GridSize.html" title="CEGUI::GridLayoutContainerProperties::GridSize" alt="" coords="267,156,576,185"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classCEGUI_1_1GridLayoutContainer-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5f7a359a3e9ab9aef4e9e75bc55c9762">AutoPositioning</a> { <a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5f7a359a3e9ab9aef4e9e75bc55c9762a499d78f52f54b4d5b818386bd93c0151">AP_Disabled</a>, 
<a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5f7a359a3e9ab9aef4e9e75bc55c9762aa723eb3ea313165838f8718078ebfb80">AP_LeftToRight</a>, 
<a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5f7a359a3e9ab9aef4e9e75bc55c9762a0b3c2a69fa123c981b6b267186b7dcf2">AP_TopToBottom</a>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd5920dbd0474e49a50d76540e3a1158"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::GridLayoutContainer" ref="acd5920dbd0474e49a50d76540e3a1158" args="(const String &amp;type, const String &amp;name)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#acd5920dbd0474e49a50d76540e3a1158">GridLayoutContainer</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;type, const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for <a class="el" href="classCEGUI_1_1GUISheet.html" title="Window class intended to be used as a simple, generic Window.">GUISheet</a> windows. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ff912e6a851e174394bf24a91d6006a"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::~GridLayoutContainer" ref="a9ff912e6a851e174394bf24a91d6006a" args="(void)" -->
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a9ff912e6a851e174394bf24a91d6006a">~GridLayoutContainer</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor for <a class="el" href="classCEGUI_1_1GUISheet.html" title="Window class intended to be used as a simple, generic Window.">GUISheet</a> windows. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3129482edc2acb0893d781da33411e43"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::setGridDimensions" ref="a3129482edc2acb0893d781da33411e43" args="(size_t width, size_t height)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a3129482edc2acb0893d781da33411e43">setGridDimensions</a> (size_t width, size_t height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets grid's dimensions. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5fe74a6be4a198f77fcd83aeb957cddf"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::getGridWidth" ref="a5fe74a6be4a198f77fcd83aeb957cddf" args="() const " -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5fe74a6be4a198f77fcd83aeb957cddf">getGridWidth</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves grid width, the amount of cells in one row. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af1f2ecac6bc2eda3c23ff521767da084"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::getGridHeight" ref="af1f2ecac6bc2eda3c23ff521767da084" args="() const " -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#af1f2ecac6bc2eda3c23ff521767da084">getGridHeight</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves grid height, the amount of rows in the grid. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#aeb0ddde6bcbe632687492cc91b28fa2f">setAutoPositioning</a> (<a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5f7a359a3e9ab9aef4e9e75bc55c9762">AutoPositioning</a> positioning)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets new auto positioning method.  <a href="#aeb0ddde6bcbe632687492cc91b28fa2f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6841a4c9df87e0d1faa14390ec0f817a"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::getAutoPositioning" ref="a6841a4c9df87e0d1faa14390ec0f817a" args="() const " -->
<a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5f7a359a3e9ab9aef4e9e75bc55c9762">AutoPositioning</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a6841a4c9df87e0d1faa14390ec0f817a">getAutoPositioning</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves current auto positioning method. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c58b1eb4d42aca605478feb7914bf6f"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::setNextAutoPositioningIdx" ref="a6c58b1eb4d42aca605478feb7914bf6f" args="(size_t idx)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a6c58b1eb4d42aca605478feb7914bf6f">setNextAutoPositioningIdx</a> (size_t idx)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the next auto positioning "sequence position", this will be used next time when addChildWindow is called. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67088ee379bd1eda5c9acf96d6dfc52f"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::getNextAutoPositioningIdx" ref="a67088ee379bd1eda5c9acf96d6dfc52f" args="() const " -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a67088ee379bd1eda5c9acf96d6dfc52f">getNextAutoPositioningIdx</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves auto positioning "sequence position", this will be used next time when addChildWindow is called. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b8ddd23e6856617c435884b97ae287b"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::autoPositioningSkipCells" ref="a1b8ddd23e6856617c435884b97ae287b" args="(size_t cells)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a1b8ddd23e6856617c435884b97ae287b">autoPositioningSkipCells</a> (size_t cells)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Skips given number of cells in the auto positioning sequence. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a04fb3224e00208dca941922a73e6ba97">addChildWindowToPosition</a> (<a class="el" href="classCEGUI_1_1Window.html">Window</a> *window, size_t gridX, size_t gridY)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add the specified <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a> to specified grid position as a child of this Grid Layout Container. If the <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a> <em>window</em> is already attached to a <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>, it is detached before being added to this <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>.  <a href="#a04fb3224e00208dca941922a73e6ba97"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a28196c070b3ce13794fd6150f8dd98da">addChildWindowToPosition</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;name, size_t gridX, size_t gridY)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add the named <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a> to specified grid position as a child of this Grid Layout Container. If the <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a> <em>window</em> is already attached to a <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>, it is detached before being added to this <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>.  <a href="#a28196c070b3ce13794fd6150f8dd98da"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05a8a054e60e82c142db3994af816ec9"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::getChildWindowAtPosition" ref="a05a8a054e60e82c142db3994af816ec9" args="(size_t gridX, size_t gridY)" -->
<a class="el" href="classCEGUI_1_1Window.html">Window</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a05a8a054e60e82c142db3994af816ec9">getChildWindowAtPosition</a> (size_t gridX, size_t gridY)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves child window that is currently at given grid position. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#af3ffd34e54ee89a3e352d57ab57599fb">removeChildWindowFromPosition</a> (size_t gridX, size_t gridY)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the child window that is currently at given grid position.  <a href="#af3ffd34e54ee89a3e352d57ab57599fb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a6c2598874261e48b0ed69de337848137">swapChildWindowPositions</a> (size_t wnd1, size_t wnd2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps positions of 2 windows given by their index.  <a href="#a6c2598874261e48b0ed69de337848137"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af06adcdaabf1bba12e057c6ad787d651"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::swapChildWindowPositions" ref="af06adcdaabf1bba12e057c6ad787d651" args="(size_t gridX1, size_t gridY1, size_t gridX2, size_t gridY2)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#af06adcdaabf1bba12e057c6ad787d651">swapChildWindowPositions</a> (size_t gridX1, size_t gridY1, size_t gridX2, size_t gridY2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps positions of 2 windows given by grid positions. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afe4c4cd492ca14bbcebedf60d2503edd"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::swapChildWindows" ref="afe4c4cd492ca14bbcebedf60d2503edd" args="(Window *wnd1, Window *wnd2)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#afe4c4cd492ca14bbcebedf60d2503edd">swapChildWindows</a> (<a class="el" href="classCEGUI_1_1Window.html">Window</a> *wnd1, <a class="el" href="classCEGUI_1_1Window.html">Window</a> *wnd2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps positions of given windows. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a792bc881fb23887dd12f11a9186d8499"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::swapChildWindows" ref="a792bc881fb23887dd12f11a9186d8499" args="(Window *wnd1, const String &amp;wnd2)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a792bc881fb23887dd12f11a9186d8499">swapChildWindows</a> (<a class="el" href="classCEGUI_1_1Window.html">Window</a> *wnd1, const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;wnd2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps positions of given windows. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab9b7cda99f7bf71adb763b3a20976e55"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::swapChildWindows" ref="ab9b7cda99f7bf71adb763b3a20976e55" args="(const String &amp;wnd1, Window *wnd2)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#ab9b7cda99f7bf71adb763b3a20976e55">swapChildWindows</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;wnd1, <a class="el" href="classCEGUI_1_1Window.html">Window</a> *wnd2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps positions of given windows. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acaa8b15dca3b88d5de3ec47a52b4fc5e"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::moveChildWindowToPosition" ref="acaa8b15dca3b88d5de3ec47a52b4fc5e" args="(Window *wnd, size_t gridX, size_t gridY)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#acaa8b15dca3b88d5de3ec47a52b4fc5e">moveChildWindowToPosition</a> (<a class="el" href="classCEGUI_1_1Window.html">Window</a> *wnd, size_t gridX, size_t gridY)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves given child window to given grid position. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46518a6c2ed62311466dd356fa2e5901"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::moveChildWindowToPosition" ref="a46518a6c2ed62311466dd356fa2e5901" args="(const String &amp;wnd, size_t gridX, size_t gridY)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a46518a6c2ed62311466dd356fa2e5901">moveChildWindowToPosition</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;wnd, size_t gridX, size_t gridY)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves named child window to given grid position. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#aa6deec8a71a4f13caa3467683f70b22d">layout</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab98fba698e79ef829bc0b193afda8019"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::WidgetTypeName" ref="ab98fba698e79ef829bc0b193afda8019" args="" -->
static const <a class="el" href="classCEGUI_1_1String.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#ab98fba698e79ef829bc0b193afda8019">WidgetTypeName</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The unique typename of this widget. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed889858f627fe1139eb2da5731e5e3b"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::DummyNameSuffix" ref="aed889858f627fe1139eb2da5731e5e3b" args="" -->
static const <a class="el" href="classCEGUI_1_1String.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#aed889858f627fe1139eb2da5731e5e3b">DummyNameSuffix</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Widget name suffix for dummies. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4496e35da889fcc3b3a97d47d3bd3646"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::EventNamespace" ref="a4496e35da889fcc3b3a97d47d3bd3646" args="" -->
static const <a class="el" href="classCEGUI_1_1String.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a4496e35da889fcc3b3a97d47d3bd3646">EventNamespace</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Namespace for global events. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac39ae0bdb9238ba4b5b02cd07fa8442f"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::EventChildWindowOrderChanged" ref="ac39ae0bdb9238ba4b5b02cd07fa8442f" args="" -->
static const <a class="el" href="classCEGUI_1_1String.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#ac39ae0bdb9238ba4b5b02cd07fa8442f">EventChildWindowOrderChanged</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">fired when child windows get rearranged <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#aa0d93b968d870ced59f75b40d960ce52">onChildWindowOrderChanged</a> (<a class="el" href="classCEGUI_1_1WindowEventArgs.html">WindowEventArgs</a> &amp;e)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Handler called when children of this window gets rearranged in any way.  <a href="#aa0d93b968d870ced59f75b40d960ce52"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c5f30b4916e25cf18ecb65ec35041e7"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::mapFromGridToIdx" ref="a5c5f30b4916e25cf18ecb65ec35041e7" args="(size_t gridX, size_t gridY, size_t gridWidth, size_t gridHeight) const " -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5c5f30b4916e25cf18ecb65ec35041e7">mapFromGridToIdx</a> (size_t gridX, size_t gridY, size_t gridWidth, size_t gridHeight) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">converts from grid cell position to idx <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19391a5578c958bd8304630efe89e5d5"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::mapFromIdxToGrid" ref="a19391a5578c958bd8304630efe89e5d5" args="(size_t idx, size_t &amp;gridX, size_t &amp;gridY, size_t gridWidth, size_t gridHeight) const " -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a19391a5578c958bd8304630efe89e5d5">mapFromIdxToGrid</a> (size_t idx, size_t &amp;gridX, size_t &amp;gridY, size_t gridWidth, size_t gridHeight) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">converts from idx to grid cell position <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCEGUI_1_1UVector2.html">UVector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a80e74ed7b75185254cf99157b7b56be9">getGridCellOffset</a> (const std::vector&lt; <a class="el" href="classCEGUI_1_1UDim.html">UDim</a> &gt; &amp;colSizes, const std::vector&lt; <a class="el" href="classCEGUI_1_1UDim.html">UDim</a> &gt; &amp;rowSizes, size_t gridX, size_t gridY) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a497629613cee02d178c6b122adcc1ef4"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::getGridSize" ref="a497629613cee02d178c6b122adcc1ef4" args="(const std::vector&lt; UDim &gt; &amp;colSizes, const std::vector&lt; UDim &gt; &amp;rowSizes) const " -->
<a class="el" href="classCEGUI_1_1UVector2.html">UVector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a497629613cee02d178c6b122adcc1ef4">getGridSize</a> (const std::vector&lt; <a class="el" href="classCEGUI_1_1UDim.html">UDim</a> &gt; &amp;colSizes, const std::vector&lt; <a class="el" href="classCEGUI_1_1UDim.html">UDim</a> &gt; &amp;rowSizes) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">calculates total grid size <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd7c436ffe39b75a064e93b04a5b4275"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::translateAPToGridIdx" ref="afd7c436ffe39b75a064e93b04a5b4275" args="(size_t APIdx) const " -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#afd7c436ffe39b75a064e93b04a5b4275">translateAPToGridIdx</a> (size_t APIdx) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">translates auto positioning index to absolute grid index <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad580b381bb0993d84ddb60dd6afccf2d"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::createDummy" ref="ad580b381bb0993d84ddb60dd6afccf2d" args="()" -->
<a class="el" href="classCEGUI_1_1Window.html">Window</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#ad580b381bb0993d84ddb60dd6afccf2d">createDummy</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a dummy window <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbd779349630b81082e20a836bcd40bb"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::isDummy" ref="acbd779349630b81082e20a836bcd40bb" args="(Window *wnd) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#acbd779349630b81082e20a836bcd40bb">isDummy</a> (<a class="el" href="classCEGUI_1_1Window.html">Window</a> *wnd) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">checks whether given window is a dummy <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a73e1316068c448ce14bd6f2c96e1d2d4">addChild_impl</a> (<a class="el" href="classCEGUI_1_1Window.html">Window</a> *wnd)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a96b3ba18ac3914fd64de750c56897037">removeChild_impl</a> (<a class="el" href="classCEGUI_1_1Window.html">Window</a> *wnd)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#ac09d29e8c413609937d12ffe82dfc988">testClassName_impl</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;class_name) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return whether this window was inherited from the given class name at some point in the inheritance hierarchy.  <a href="#ac09d29e8c413609937d12ffe82dfc988"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2ed1dd748506675c2d168d3fec886c3"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::d_gridWidth" ref="ac2ed1dd748506675c2d168d3fec886c3" args="" -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#ac2ed1dd748506675c2d168d3fec886c3">d_gridWidth</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">stores grid width - amount of columns <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11dc463c8c084558a885edb2a511cb75"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::d_gridHeight" ref="a11dc463c8c084558a885edb2a511cb75" args="" -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a11dc463c8c084558a885edb2a511cb75">d_gridHeight</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">stores grid height - amount of rows <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4dd6fa03d8faaf0c17611cb837b87d01"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::d_autoPositioning" ref="a4dd6fa03d8faaf0c17611cb837b87d01" args="" -->
<a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5f7a359a3e9ab9aef4e9e75bc55c9762">AutoPositioning</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a4dd6fa03d8faaf0c17611cb837b87d01">d_autoPositioning</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">stores currently used auto positioning method <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#ab2c0ea5d0a82d1012cd925d0047b4800">d_nextAutoPositioningIdx</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#aa144314fbfe9a5ff8618de784e34edcc">d_nextGridX</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a42142af6111df1f6a225be5a5e75b591">d_nextGridY</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a4d612d761d0770f8dc1b880fd054ec02">d_nextDummyIdx</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A Layout Container window layouting it's children into a grid. </p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a5f7a359a3e9ab9aef4e9e75bc55c9762"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::AutoPositioning" ref="a5f7a359a3e9ab9aef4e9e75bc55c9762" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5f7a359a3e9ab9aef4e9e75bc55c9762">CEGUI::GridLayoutContainer::AutoPositioning</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>enumerates auto positioning methods for the grid - these allow you to fill the grid without specifying gridX and gridY positions for each addChildWindow. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a5f7a359a3e9ab9aef4e9e75bc55c9762a499d78f52f54b4d5b818386bd93c0151"></a><!-- doxytag: member="AP_Disabled" ref="a5f7a359a3e9ab9aef4e9e75bc55c9762a499d78f52f54b4d5b818386bd93c0151" args="" -->AP_Disabled</em>&nbsp;</td><td>
<p>no auto positioning! </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a5f7a359a3e9ab9aef4e9e75bc55c9762aa723eb3ea313165838f8718078ebfb80"></a><!-- doxytag: member="AP_LeftToRight" ref="a5f7a359a3e9ab9aef4e9e75bc55c9762aa723eb3ea313165838f8718078ebfb80" args="" -->AP_LeftToRight</em>&nbsp;</td><td>
<p>Left to right positioning:</p>
<ul>
<li>1 2 3</li>
<li>4 5 6 </li>
</ul>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a5f7a359a3e9ab9aef4e9e75bc55c9762a0b3c2a69fa123c981b6b267186b7dcf2"></a><!-- doxytag: member="AP_TopToBottom" ref="a5f7a359a3e9ab9aef4e9e75bc55c9762a0b3c2a69fa123c981b6b267186b7dcf2" args="" -->AP_TopToBottom</em>&nbsp;</td><td>
<p>Top to bottom positioning</p>
<ul>
<li>1 3 5</li>
<li>2 4 6 </li>
</ul>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a73e1316068c448ce14bd6f2c96e1d2d4"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::addChild_impl" ref="a73e1316068c448ce14bd6f2c96e1d2d4" args="(Window *wnd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CEGUI::GridLayoutContainer::addChild_impl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCEGUI_1_1Window.html">Window</a> *&#160;</td>
          <td class="paramname"><em>wnd</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Add given window to child list at an appropriate position. </p>
 
<p>Reimplemented from <a class="el" href="classCEGUI_1_1LayoutContainer.html#aac4fbcb05e6c18427b611a3c120502b5">CEGUI::LayoutContainer</a>.</p>

</div>
</div>
<a class="anchor" id="a28196c070b3ce13794fd6150f8dd98da"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::addChildWindowToPosition" ref="a28196c070b3ce13794fd6150f8dd98da" args="(const String &amp;name, size_t gridX, size_t gridY)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CEGUI::GridLayoutContainer::addChildWindowToPosition </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>gridX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>gridY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add the named <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a> to specified grid position as a child of this Grid Layout Container. If the <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a> <em>window</em> is already attached to a <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>, it is detached before being added to this <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>. </p>
<dl class="user"><dt><b></b></dt><dd>If something is already in given grid cell, it gets removed!</dd></dl>
<dl class="user"><dt><b></b></dt><dd>This disabled auto positioning from further usage! You need to call setAutoPositioning(..) to set it back to your desired value and use setAutoPositioningIdx(..) to set it's starting point back</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCEGUI_1_1Window.html#a4538dec70669b4c4d86d103ca8e3f213" title="Add the named Window as a child of this Window. If the Window name is already attached to a Window...">Window::addChildWindow</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a04fb3224e00208dca941922a73e6ba97"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::addChildWindowToPosition" ref="a04fb3224e00208dca941922a73e6ba97" args="(Window *window, size_t gridX, size_t gridY)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CEGUI::GridLayoutContainer::addChildWindowToPosition </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCEGUI_1_1Window.html">Window</a> *&#160;</td>
          <td class="paramname"><em>window</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>gridX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>gridY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add the specified <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a> to specified grid position as a child of this Grid Layout Container. If the <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a> <em>window</em> is already attached to a <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>, it is detached before being added to this <a class="el" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>. </p>
<dl class="user"><dt><b></b></dt><dd>If something is already in given grid cell, it gets removed!</dd></dl>
<dl class="user"><dt><b></b></dt><dd>This disabled auto positioning from further usage! You need to call setAutoPositioning(..) to set it back to your desired value and use setAutoPositioningIdx(..) to set it's starting point back</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCEGUI_1_1Window.html#a4538dec70669b4c4d86d103ca8e3f213" title="Add the named Window as a child of this Window. If the Window name is already attached to a Window...">Window::addChildWindow</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a80e74ed7b75185254cf99157b7b56be9"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::getGridCellOffset" ref="a80e74ed7b75185254cf99157b7b56be9" args="(const std::vector&lt; UDim &gt; &amp;colSizes, const std::vector&lt; UDim &gt; &amp;rowSizes, size_t gridX, size_t gridY) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCEGUI_1_1UVector2.html">UVector2</a> CEGUI::GridLayoutContainer::getGridCellOffset </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classCEGUI_1_1UDim.html">UDim</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>colSizes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classCEGUI_1_1UDim.html">UDim</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>rowSizes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>gridX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>gridY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>calculates grid cell offset (relative to position of this layout container) </p>

</div>
</div>
<a class="anchor" id="aa6deec8a71a4f13caa3467683f70b22d"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::layout" ref="aa6deec8a71a4f13caa3467683f70b22d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CEGUI::GridLayoutContainer::layout </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>(re)layouts all windows inside this layout container immediately </p>
 
<p>Implements <a class="el" href="classCEGUI_1_1LayoutContainer.html#a71f500235a745c5cc9c16c324efd67a7">CEGUI::LayoutContainer</a>.</p>

</div>
</div>
<a class="anchor" id="aa0d93b968d870ced59f75b40d960ce52"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::onChildWindowOrderChanged" ref="aa0d93b968d870ced59f75b40d960ce52" args="(WindowEventArgs &amp;e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CEGUI::GridLayoutContainer::onChildWindowOrderChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCEGUI_1_1WindowEventArgs.html">WindowEventArgs</a> &amp;&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Handler called when children of this window gets rearranged in any way. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">e</td><td><a class="el" href="classCEGUI_1_1WindowEventArgs.html" title="EventArgs based class that is used for objects passed to handlers triggered for events concerning som...">WindowEventArgs</a> object whose 'window' field is set this layout container. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a96b3ba18ac3914fd64de750c56897037"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::removeChild_impl" ref="a96b3ba18ac3914fd64de750c56897037" args="(Window *wnd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CEGUI::GridLayoutContainer::removeChild_impl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCEGUI_1_1Window.html">Window</a> *&#160;</td>
          <td class="paramname"><em>wnd</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Remove given window from child list. </p>
 
<p>Reimplemented from <a class="el" href="classCEGUI_1_1LayoutContainer.html#a573c5264d3a79c422f9780fc941b50cc">CEGUI::LayoutContainer</a>.</p>

</div>
</div>
<a class="anchor" id="af3ffd34e54ee89a3e352d57ab57599fb"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::removeChildWindowFromPosition" ref="af3ffd34e54ee89a3e352d57ab57599fb" args="(size_t gridX, size_t gridY)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CEGUI::GridLayoutContainer::removeChildWindowFromPosition </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>gridX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>gridY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes the child window that is currently at given grid position. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCEGUI_1_1Window.html#a30ebfa8eef62b10cd83303d92694da26" title="Remove the named Window from this windows child list.">Window::removeChildWindow</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aeb0ddde6bcbe632687492cc91b28fa2f"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::setAutoPositioning" ref="aeb0ddde6bcbe632687492cc91b28fa2f" args="(AutoPositioning positioning)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CEGUI::GridLayoutContainer::setAutoPositioning </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a5f7a359a3e9ab9aef4e9e75bc55c9762">AutoPositioning</a>&#160;</td>
          <td class="paramname"><em>positioning</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets new auto positioning method. </p>
<dl class="user"><dt><b></b></dt><dd>The newly set auto positioning sequence will start over! Use setAutoPositioningIdx to set it's starting point </dd></dl>

</div>
</div>
<a class="anchor" id="a6c2598874261e48b0ed69de337848137"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::swapChildWindowPositions" ref="a6c2598874261e48b0ed69de337848137" args="(size_t wnd1, size_t wnd2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CEGUI::GridLayoutContainer::swapChildWindowPositions </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>wnd1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>wnd2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Swaps positions of 2 windows given by their index. </p>
<dl class="user"><dt><b></b></dt><dd>For advanced users only! </dd></dl>

</div>
</div>
<a class="anchor" id="ac09d29e8c413609937d12ffe82dfc988"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::testClassName_impl" ref="ac09d29e8c413609937d12ffe82dfc988" args="(const String &amp;class_name) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CEGUI::GridLayoutContainer::testClassName_impl </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>class_name</em></td><td>)</td>
          <td> const<code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return whether this window was inherited from the given class name at some point in the inheritance hierarchy. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">class_name</td><td>The class name that is to be checked.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if this window was inherited from <em>class_name</em>. false if not. </dd></dl>

<p>Reimplemented from <a class="el" href="classCEGUI_1_1LayoutContainer.html#aa6f16da34474774f8241121fd3f384e6">CEGUI::LayoutContainer</a>.</p>

<p>References <a class="el" href="classCEGUI_1_1LayoutContainer.html#aa6f16da34474774f8241121fd3f384e6">CEGUI::LayoutContainer::testClassName_impl()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab2c0ea5d0a82d1012cd925d0047b4800"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::d_nextAutoPositioningIdx" ref="ab2c0ea5d0a82d1012cd925d0047b4800" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classCEGUI_1_1GridLayoutContainer.html#ab2c0ea5d0a82d1012cd925d0047b4800">CEGUI::GridLayoutContainer::d_nextAutoPositioningIdx</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>stores next auto positioning index (will be used for next added window if d_autoPositioning != AP_Disabled) </p>

</div>
</div>
<a class="anchor" id="a4d612d761d0770f8dc1b880fd054ec02"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::d_nextDummyIdx" ref="a4d612d761d0770f8dc1b880fd054ec02" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a4d612d761d0770f8dc1b880fd054ec02">CEGUI::GridLayoutContainer::d_nextDummyIdx</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>stores next used dummy suffix index (used to generate unique dummy names) </p>

</div>
</div>
<a class="anchor" id="aa144314fbfe9a5ff8618de784e34edcc"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::d_nextGridX" ref="aa144314fbfe9a5ff8618de784e34edcc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classCEGUI_1_1GridLayoutContainer.html#aa144314fbfe9a5ff8618de784e34edcc">CEGUI::GridLayoutContainer::d_nextGridX</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>stores next used grid X position (only used if d_autoPositioning == AP_Disabled) </p>

</div>
</div>
<a class="anchor" id="a42142af6111df1f6a225be5a5e75b591"></a><!-- doxytag: member="CEGUI::GridLayoutContainer::d_nextGridY" ref="a42142af6111df1f6a225be5a5e75b591" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classCEGUI_1_1GridLayoutContainer.html#a42142af6111df1f6a225be5a5e75b591">CEGUI::GridLayoutContainer::d_nextGridY</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>stores next used grid Y position (only used if d_autoPositioning == AP_Disabled) </p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:41 for Crazy Eddies GUI System by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>