aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8.1/doc/html/_i_g_u_i_element_8h_source.html
blob: d3044716e74c2de928c3443316f5713ae0b85623 (plain)
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
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
<!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>Irrlicht 3D Engine: IGUIElement.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Irrlicht 3D Engine
   
   </div>
   
  </td>
  
  
  
   
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
   
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_i_g_u_i_element_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">IGUIElement.h</div>  </div>
</div>
<div class="contents">
<a href="_i_g_u_i_element_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2002-2012 Nikolaus Gebhardt</span>
<a name="l00002"></a>00002 <span class="comment">// This file is part of the &quot;Irrlicht Engine&quot;.</span>
<a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __I_GUI_ELEMENT_H_INCLUDED__</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __I_GUI_ELEMENT_H_INCLUDED__</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="_i_attribute_exchanging_object_8h.html">IAttributeExchangingObject.h</a>&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="irr_list_8h.html">irrList.h</a>&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="rect_8h.html">rect.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="irr_string_8h.html">irrString.h</a>&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="_i_event_receiver_8h.html">IEventReceiver.h</a>&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="_e_g_u_i_element_types_8h.html">EGUIElementTypes.h</a>&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="_e_g_u_i_alignment_8h.html">EGUIAlignment.h</a>&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;<a class="code" href="_i_attributes_8h.html">IAttributes.h</a>&quot;</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="keyword">namespace </span>irr
<a name="l00018"></a>00018 {
<a name="l00019"></a>00019 <span class="keyword">namespace </span>gui
<a name="l00020"></a>00020 {
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="keyword">class </span>IGUIEnvironment;
<a name="l00023"></a>00023 
<a name="l00025"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html">00025</a> <span class="keyword">class </span><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> io::IAttributeExchangingObject, <span class="keyword">public</span> <a class="code" href="classirr_1_1_i_event_receiver.html" title="Interface of an object which can receive events.">IEventReceiver</a>
<a name="l00026"></a>00026 {
<a name="l00027"></a>00027 <span class="keyword">public</span>:
<a name="l00028"></a>00028 
<a name="l00030"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a540fb9b2617696ef421d5510b4d96fea">00030</a>     <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a540fb9b2617696ef421d5510b4d96fea" title="Constructor.">IGUIElement</a>(<a class="code" href="namespaceirr_1_1gui.html#ae4d66df0ecf4117cdbcf9f22404bd254" title="List of all basic Irrlicht GUI elements.">EGUI_ELEMENT_TYPE</a> type, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_environment.html" title="GUI Environment. Used as factory and manager of all other GUI elements.">IGUIEnvironment</a>* environment, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* parent,
<a name="l00031"></a>00031         <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <span class="keywordtype">id</span>, <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a>&amp; rectangle)
<a name="l00032"></a>00032         : <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>(0), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>(rectangle), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a05ba78d5e6f11c5a64d9da2fcfd4ded1" title="absolute rect of element">AbsoluteRect</a>(rectangle),
<a name="l00033"></a>00033         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1000af90afbbe92344fb000f5af5c8fb" title="absolute clipping rect of element">AbsoluteClippingRect</a>(rectangle), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>(rectangle),
<a name="l00034"></a>00034         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>(0,0), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>(1,1), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad8dd8fdfb5be3e4cca1f1603cbcfaccf" title="is visible?">IsVisible</a>(true), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aba90d3c36184d3b6d62a8856a8734590" title="is enabled?">IsEnabled</a>(true),
<a name="l00035"></a>00035         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a19f65c7004c5b36c848dad776aabc151" title="is a part of a larger whole and should not be serialized?">IsSubElement</a>(false), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f9ad427fe094e0e8c49cf205c606526" title="does this element ignore its parent&#39;s clipping rectangle?">NoClip</a>(false), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a73a25c6d25bd673d92210fc2d60d916e" title="users can set this for identificating the element by integer">ID</a>(id), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af98dfbfc8776221b3a70ceea43fc4f9a" title="tab stop like in windows">IsTabStop</a>(false), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90fcd9d502bb0f6e8e5f2d091f54bafb" title="tab order">TabOrder</a>(-1), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8ea1b4a60653c8cc157e806e14ae0558" title="tab groups are containers like windows, use ctrl+tab to navigate">IsTabGroup</a>(false),
<a name="l00036"></a>00036         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a09873f314caf3144ebf470ccaa22762a" title="tells the element how to act when its parent is resized">AlignLeft</a>(<a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da4bb8a01452727274e18047a872da1809" title="Aligned to parent&#39;s top or left side (default)">EGUIA_UPPERLEFT</a>), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac0c5d7f233ebd05d535e9e9cf25f03fe">AlignRight</a>(<a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da4bb8a01452727274e18047a872da1809" title="Aligned to parent&#39;s top or left side (default)">EGUIA_UPPERLEFT</a>), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">AlignTop</a>(<a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da4bb8a01452727274e18047a872da1809" title="Aligned to parent&#39;s top or left side (default)">EGUIA_UPPERLEFT</a>), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a4204f1300a03ea597a48c5b4cfe134c0">AlignBottom</a>(<a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da4bb8a01452727274e18047a872da1809" title="Aligned to parent&#39;s top or left side (default)">EGUIA_UPPERLEFT</a>),
<a name="l00037"></a>00037         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7ce2d55a64302d3df67a808a362f18bf" title="GUI Environment.">Environment</a>(environment), <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad362880afa8ccb537b04032340e989e9" title="type of element">Type</a>(type)
<a name="l00038"></a>00038     {
<a name="l00039"></a>00039 <span class="preprocessor">        #ifdef _DEBUG</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>        <a class="code" href="classirr_1_1_i_reference_counted.html#a704c5042d399fe8cd3bdd65a0559002a" title="Sets the debug name of the object.">setDebugName</a>(<span class="stringliteral">&quot;IGUIElement&quot;</span>);
<a name="l00041"></a>00041 <span class="preprocessor">        #endif</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043         <span class="comment">// if we were given a parent to attach to</span>
<a name="l00044"></a>00044         <span class="keywordflow">if</span> (parent)
<a name="l00045"></a>00045         {
<a name="l00046"></a>00046             parent-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abbd5e7871db1672233bd47ea4ad1f305">addChildToEnd</a>(<span class="keyword">this</span>);
<a name="l00047"></a>00047             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a436d80ee161086389d7f3537ca062e4a">recalculateAbsolutePosition</a>(<span class="keyword">true</span>);
<a name="l00048"></a>00048         }
<a name="l00049"></a>00049     }
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 
<a name="l00053"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a062e6704aa29ed50c22179ad268d8f48">00053</a>     <span class="keyword">virtual</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a062e6704aa29ed50c22179ad268d8f48" title="Destructor.">~IGUIElement</a>()
<a name="l00054"></a>00054     {
<a name="l00055"></a>00055         <span class="comment">// delete all children</span>
<a name="l00056"></a>00056         <a class="code" href="classirr_1_1core_1_1list_1_1_iterator.html" title="List iterator.">core::list&lt;IGUIElement*&gt;::Iterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00057"></a>00057         <span class="keywordflow">for</span> (; it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>(); ++it)
<a name="l00058"></a>00058         {
<a name="l00059"></a>00059             (*it)-&gt;Parent = 0;
<a name="l00060"></a>00060             (*it)-&gt;drop();
<a name="l00061"></a>00061         }
<a name="l00062"></a>00062     }
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 
<a name="l00066"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a417ad834c99198484b3b4b787dcfba74">00066</a>     <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a417ad834c99198484b3b4b787dcfba74" title="Returns parent of this element.">getParent</a>()<span class="keyword"> const</span>
<a name="l00067"></a>00067 <span class="keyword">    </span>{
<a name="l00068"></a>00068         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>;
<a name="l00069"></a>00069     }
<a name="l00070"></a>00070 
<a name="l00071"></a>00071 
<a name="l00073"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a14131d6d0c9533d97ddc62b02af87bd7">00073</a>     <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a14131d6d0c9533d97ddc62b02af87bd7" title="Returns the relative rectangle of this element.">getRelativePosition</a>()<span class="keyword"> const</span>
<a name="l00074"></a>00074 <span class="keyword">    </span>{
<a name="l00075"></a>00075         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>;
<a name="l00076"></a>00076     }
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a0e5bb2d0a2e88e30d3697652f8dd7034">00081</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a0e5bb2d0a2e88e30d3697652f8dd7034" title="Sets the relative rectangle of this element.">setRelativePosition</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a>&amp; r)
<a name="l00082"></a>00082     {
<a name="l00083"></a>00083         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>)
<a name="l00084"></a>00084         {
<a name="l00085"></a>00085             <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a>&amp; r2 = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af897fcfbff5642c908c3c45c39bc90f1" title="Gets the absolute rectangle of this element.">getAbsolutePosition</a>();
<a name="l00086"></a>00086 
<a name="l00087"></a>00087             <a class="code" href="classirr_1_1core_1_1dimension2d.html" title="Specifies a 2 dimensional size.">core::dimension2df</a> d((<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)(r2.<a class="code" href="classirr_1_1core_1_1rect.html#adffacbb0f07d8268a32af2a32b3ac3ac" title="Get the dimensions of the rectangle.">getSize</a>().Width), (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)(r2.<a class="code" href="classirr_1_1core_1_1rect.html#adffacbb0f07d8268a32af2a32b3ac3ac" title="Get the dimensions of the rectangle.">getSize</a>().Height));
<a name="l00088"></a>00088 
<a name="l00089"></a>00089             <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a09873f314caf3144ebf470ccaa22762a" title="tells the element how to act when its parent is resized">AlignLeft</a>   == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00090"></a>00090                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)r.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X / d.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a>;
<a name="l00091"></a>00091             if (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac0c5d7f233ebd05d535e9e9cf25f03fe">AlignRight</a>  == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00092"></a>00092                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)r.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X / d.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a>;
<a name="l00093"></a>00093             if (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">AlignTop</a>    == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00094"></a>00094                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)r.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y / d.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a>;
<a name="l00095"></a>00095             if (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a4204f1300a03ea597a48c5b4cfe134c0">AlignBottom</a> == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00096"></a>00096                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)r.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y / d.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a>;
<a name="l00097"></a>00097         }
<a name="l00098"></a>00098 
<a name="l00099"></a>00099         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a> = r;
<a name="l00100"></a>00100         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad58bbeba69a118873a5075d86b4c90f2" title="Updates the absolute position.">updateAbsolutePosition</a>();
<a name="l00101"></a>00101     }
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00105"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aba1cfc75daa28e53a021faa2d954b79b">00105</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a0e5bb2d0a2e88e30d3697652f8dd7034" title="Sets the relative rectangle of this element.">setRelativePosition</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1vector2d.html" title="2d vector template class with lots of operators and methods.">core::position2di</a> &amp; position)
<a name="l00106"></a>00106     {
<a name="l00107"></a>00107         <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1dimension2d.html" title="Specifies a 2 dimensional size.">core::dimension2di</a> mySize = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#adffacbb0f07d8268a32af2a32b3ac3ac" title="Get the dimensions of the rectangle.">getSize</a>();
<a name="l00108"></a>00108         <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> rectangle(position.<a class="code" href="classirr_1_1core_1_1vector2d.html#a8fabb0d10a3dd33b407b63bb3539be4d" title="X coordinate of vector.">X</a>, position.<a class="code" href="classirr_1_1core_1_1vector2d.html#aa4d36f518d3fc35a7aafcea33a31f76c" title="Y coordinate of vector.">Y</a>,
<a name="l00109"></a>00109                         position.<a class="code" href="classirr_1_1core_1_1vector2d.html#a8fabb0d10a3dd33b407b63bb3539be4d" title="X coordinate of vector.">X</a> + mySize.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a>, position.<a class="code" href="classirr_1_1core_1_1vector2d.html#aa4d36f518d3fc35a7aafcea33a31f76c" title="Y coordinate of vector.">Y</a> + mySize.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a>);
<a name="l00110"></a>00110         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a0e5bb2d0a2e88e30d3697652f8dd7034" title="Sets the relative rectangle of this element.">setRelativePosition</a>(rectangle);
<a name="l00111"></a>00111     }
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 
<a name="l00115"></a>00115 
<a name="l00119"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa67e02ab54db1068e7c057721d2f24a5">00119</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa67e02ab54db1068e7c057721d2f24a5" title="Sets the relative rectangle of this element as a proportion of its parent&#39;s area.">setRelativePositionProportional</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;f32&gt;</a>&amp; r)
<a name="l00120"></a>00120     {
<a name="l00121"></a>00121         <span class="keywordflow">if</span> (!<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>)
<a name="l00122"></a>00122             <span class="keywordflow">return</span>;
<a name="l00123"></a>00123 
<a name="l00124"></a>00124         <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1dimension2d.html" title="Specifies a 2 dimensional size.">core::dimension2di</a>&amp; d = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af897fcfbff5642c908c3c45c39bc90f1" title="Gets the absolute rectangle of this element.">getAbsolutePosition</a>().<a class="code" href="classirr_1_1core_1_1rect.html#adffacbb0f07d8268a32af2a32b3ac3ac" title="Get the dimensions of the rectangle.">getSize</a>();
<a name="l00125"></a>00125 
<a name="l00126"></a>00126         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a> = <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a>(
<a name="l00127"></a>00127                     <a class="code" href="namespaceirr_1_1core.html#ac230a392b15e3d27c6e2a07a6925a8c4">core::floor32</a>((<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)d.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a> * r.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X),
<a name="l00128"></a>00128                     <a class="code" href="namespaceirr_1_1core.html#ac230a392b15e3d27c6e2a07a6925a8c4">core::floor32</a>((<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)d.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a> * r.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y),
<a name="l00129"></a>00129                     <a class="code" href="namespaceirr_1_1core.html#ac230a392b15e3d27c6e2a07a6925a8c4">core::floor32</a>((<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)d.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a> * r.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X),
<a name="l00130"></a>00130                     <a class="code" href="namespaceirr_1_1core.html#ac230a392b15e3d27c6e2a07a6925a8c4">core::floor32</a>((<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)d.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a> * r.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y));
<a name="l00131"></a>00131 
<a name="l00132"></a>00132         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a> = r;
<a name="l00133"></a>00133 
<a name="l00134"></a>00134         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad58bbeba69a118873a5075d86b4c90f2" title="Updates the absolute position.">updateAbsolutePosition</a>();
<a name="l00135"></a>00135     }
<a name="l00136"></a>00136 
<a name="l00137"></a>00137 
<a name="l00139"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af897fcfbff5642c908c3c45c39bc90f1">00139</a>     <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af897fcfbff5642c908c3c45c39bc90f1" title="Gets the absolute rectangle of this element.">getAbsolutePosition</a>()<span class="keyword"> const</span>
<a name="l00140"></a>00140 <span class="keyword">    </span>{
<a name="l00141"></a>00141         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a05ba78d5e6f11c5a64d9da2fcfd4ded1" title="absolute rect of element">AbsoluteRect</a>;
<a name="l00142"></a>00142     }
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 
<a name="l00146"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a0eef9e34371c47e4c334a450af6df5dd">00146</a>     <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a0eef9e34371c47e4c334a450af6df5dd" title="Returns the visible area of the element.">getAbsoluteClippingRect</a>()<span class="keyword"> const</span>
<a name="l00147"></a>00147 <span class="keyword">    </span>{
<a name="l00148"></a>00148         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1000af90afbbe92344fb000f5af5c8fb" title="absolute clipping rect of element">AbsoluteClippingRect</a>;
<a name="l00149"></a>00149     }
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 
<a name="l00153"></a>00153 
<a name="l00154"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a814d322989acafa74c895e5c13908b86">00154</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a814d322989acafa74c895e5c13908b86" title="Sets whether the element will ignore its parent&#39;s clipping rectangle.">setNotClipped</a>(<span class="keywordtype">bool</span> noClip)
<a name="l00155"></a>00155     {
<a name="l00156"></a>00156         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f9ad427fe094e0e8c49cf205c606526" title="does this element ignore its parent&#39;s clipping rectangle?">NoClip</a> = noClip;
<a name="l00157"></a>00157         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad58bbeba69a118873a5075d86b4c90f2" title="Updates the absolute position.">updateAbsolutePosition</a>();
<a name="l00158"></a>00158     }
<a name="l00159"></a>00159 
<a name="l00160"></a>00160 
<a name="l00162"></a>00162 
<a name="l00163"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a6b9d38b138420b72f34fd97051f689ee">00163</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a6b9d38b138420b72f34fd97051f689ee" title="Gets whether the element will ignore its parent&#39;s clipping rectangle.">isNotClipped</a>()<span class="keyword"> const</span>
<a name="l00164"></a>00164 <span class="keyword">    </span>{
<a name="l00165"></a>00165         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f9ad427fe094e0e8c49cf205c606526" title="does this element ignore its parent&#39;s clipping rectangle?">NoClip</a>;
<a name="l00166"></a>00166     }
<a name="l00167"></a>00167 
<a name="l00168"></a>00168 
<a name="l00170"></a>00170 
<a name="l00171"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae80ad7253fb9fb2ebbeda2a8148fff3e">00171</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae80ad7253fb9fb2ebbeda2a8148fff3e" title="Sets the maximum size allowed for this element.">setMaxSize</a>(<a class="code" href="classirr_1_1core_1_1dimension2d.html">core::dimension2du</a> size)
<a name="l00172"></a>00172     {
<a name="l00173"></a>00173         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a> = size;
<a name="l00174"></a>00174         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad58bbeba69a118873a5075d86b4c90f2" title="Updates the absolute position.">updateAbsolutePosition</a>();
<a name="l00175"></a>00175     }
<a name="l00176"></a>00176 
<a name="l00177"></a>00177 
<a name="l00179"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae1ddcdd58af93fea900bd6295d4d8e61">00179</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae1ddcdd58af93fea900bd6295d4d8e61" title="Sets the minimum size allowed for this element.">setMinSize</a>(<a class="code" href="classirr_1_1core_1_1dimension2d.html">core::dimension2du</a> size)
<a name="l00180"></a>00180     {
<a name="l00181"></a>00181         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a> = size;
<a name="l00182"></a>00182         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a> &lt; 1)
<a name="l00183"></a>00183             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a> = 1;
<a name="l00184"></a>00184         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a> &lt; 1)
<a name="l00185"></a>00185             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a> = 1;
<a name="l00186"></a>00186         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad58bbeba69a118873a5075d86b4c90f2" title="Updates the absolute position.">updateAbsolutePosition</a>();
<a name="l00187"></a>00187     }
<a name="l00188"></a>00188 
<a name="l00189"></a>00189 
<a name="l00191"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1eb3d7ec13ebbf8c73859810088f666b">00191</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1eb3d7ec13ebbf8c73859810088f666b" title="The alignment defines how the borders of this element will be positioned when the parent element is r...">setAlignment</a>(<a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2d">EGUI_ALIGNMENT</a> left, <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2d">EGUI_ALIGNMENT</a> right, <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2d">EGUI_ALIGNMENT</a> top, <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2d">EGUI_ALIGNMENT</a> bottom)
<a name="l00192"></a>00192     {
<a name="l00193"></a>00193         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a09873f314caf3144ebf470ccaa22762a" title="tells the element how to act when its parent is resized">AlignLeft</a> = left;
<a name="l00194"></a>00194         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac0c5d7f233ebd05d535e9e9cf25f03fe">AlignRight</a> = right;
<a name="l00195"></a>00195         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">AlignTop</a> = top;
<a name="l00196"></a>00196         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a4204f1300a03ea597a48c5b4cfe134c0">AlignBottom</a> = bottom;
<a name="l00197"></a>00197 
<a name="l00198"></a>00198         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>)
<a name="l00199"></a>00199         {
<a name="l00200"></a>00200             <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> r(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af897fcfbff5642c908c3c45c39bc90f1" title="Gets the absolute rectangle of this element.">getAbsolutePosition</a>());
<a name="l00201"></a>00201 
<a name="l00202"></a>00202             <a class="code" href="classirr_1_1core_1_1dimension2d.html" title="Specifies a 2 dimensional size.">core::dimension2df</a> d((<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)r.getSize().Width, (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)r.getSize().Height);
<a name="l00203"></a>00203 
<a name="l00204"></a>00204             <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a09873f314caf3144ebf470ccaa22762a" title="tells the element how to act when its parent is resized">AlignLeft</a>   == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00205"></a>00205                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X / d.Width;
<a name="l00206"></a>00206             if (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac0c5d7f233ebd05d535e9e9cf25f03fe">AlignRight</a>  == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00207"></a>00207                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X / d.Width;
<a name="l00208"></a>00208             if (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">AlignTop</a>    == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00209"></a>00209                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y / d.Height;
<a name="l00210"></a>00210             if (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a4204f1300a03ea597a48c5b4cfe134c0">AlignBottom</a> == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00211"></a>00211                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y / d.Height;
<a name="l00212"></a>00212         }
<a name="l00213"></a>00213     }
<a name="l00214"></a>00214 
<a name="l00215"></a>00215 
<a name="l00217"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad58bbeba69a118873a5075d86b4c90f2">00217</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad58bbeba69a118873a5075d86b4c90f2" title="Updates the absolute position.">updateAbsolutePosition</a>()
<a name="l00218"></a>00218     {
<a name="l00219"></a>00219         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a436d80ee161086389d7f3537ca062e4a">recalculateAbsolutePosition</a>(<span class="keyword">false</span>);
<a name="l00220"></a>00220 
<a name="l00221"></a>00221         <span class="comment">// update all children</span>
<a name="l00222"></a>00222         <a class="code" href="classirr_1_1core_1_1list_1_1_iterator.html" title="List iterator.">core::list&lt;IGUIElement*&gt;::Iterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00223"></a>00223         <span class="keywordflow">for</span> (; it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>(); ++it)
<a name="l00224"></a>00224         {
<a name="l00225"></a>00225             (*it)-&gt;updateAbsolutePosition();
<a name="l00226"></a>00226         }
<a name="l00227"></a>00227     }
<a name="l00228"></a>00228 
<a name="l00229"></a>00229 
<a name="l00231"></a>00231 
<a name="l00242"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae49f8a5228ce0c18e0c98becf74ee56a">00242</a>     <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae49f8a5228ce0c18e0c98becf74ee56a" title="Returns the topmost GUI element at the specific position.">getElementFromPoint</a>(<span class="keyword">const</span> core::position2d&lt;s32&gt;&amp; point)
<a name="l00243"></a>00243     {
<a name="l00244"></a>00244         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* target = 0;
<a name="l00245"></a>00245 
<a name="l00246"></a>00246         <span class="comment">// we have to search from back to front, because later children</span>
<a name="l00247"></a>00247         <span class="comment">// might be drawn over the top of earlier ones.</span>
<a name="l00248"></a>00248 
<a name="l00249"></a>00249         <a class="code" href="classirr_1_1core_1_1list_1_1_iterator.html" title="List iterator.">core::list&lt;IGUIElement*&gt;::Iterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#a6ba09d4c7865a451e40b5bd5f4c2dd50" title="Gets last element.">getLast</a>();
<a name="l00250"></a>00250 
<a name="l00251"></a>00251         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7eb474d580a78c883269d40abaecbbc0" title="Returns true if element is visible.">isVisible</a>())
<a name="l00252"></a>00252         {
<a name="l00253"></a>00253             <span class="keywordflow">while</span>(it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>())
<a name="l00254"></a>00254             {
<a name="l00255"></a>00255                 target = (*it)-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae49f8a5228ce0c18e0c98becf74ee56a" title="Returns the topmost GUI element at the specific position.">getElementFromPoint</a>(point);
<a name="l00256"></a>00256                 <span class="keywordflow">if</span> (target)
<a name="l00257"></a>00257                     <span class="keywordflow">return</span> target;
<a name="l00258"></a>00258 
<a name="l00259"></a>00259                 --it;
<a name="l00260"></a>00260             }
<a name="l00261"></a>00261         }
<a name="l00262"></a>00262 
<a name="l00263"></a>00263         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7eb474d580a78c883269d40abaecbbc0" title="Returns true if element is visible.">isVisible</a>() &amp;&amp; <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ab777430f15d74d2f0611f2a3aaab7213" title="Returns true if a point is within this element.">isPointInside</a>(point))
<a name="l00264"></a>00264             target = <span class="keyword">this</span>;
<a name="l00265"></a>00265 
<a name="l00266"></a>00266         <span class="keywordflow">return</span> target;
<a name="l00267"></a>00267     }
<a name="l00268"></a>00268 
<a name="l00269"></a>00269 
<a name="l00271"></a>00271 
<a name="l00272"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ab777430f15d74d2f0611f2a3aaab7213">00272</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ab777430f15d74d2f0611f2a3aaab7213" title="Returns true if a point is within this element.">isPointInside</a>(<span class="keyword">const</span> core::position2d&lt;s32&gt;&amp; point)<span class="keyword"> const</span>
<a name="l00273"></a>00273 <span class="keyword">    </span>{
<a name="l00274"></a>00274         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1000af90afbbe92344fb000f5af5c8fb" title="absolute clipping rect of element">AbsoluteClippingRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#a3276400775d230f377ff1e2755cbb4ef" title="Returns if a 2d point is within this rectangle.">isPointInside</a>(point);
<a name="l00275"></a>00275     }
<a name="l00276"></a>00276 
<a name="l00277"></a>00277 
<a name="l00279"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a221c8505217aa9c23c621627a0435554">00279</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a221c8505217aa9c23c621627a0435554" title="Adds a GUI element as new child of this element.">addChild</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* child)
<a name="l00280"></a>00280     {
<a name="l00281"></a>00281         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abbd5e7871db1672233bd47ea4ad1f305">addChildToEnd</a>(child);
<a name="l00282"></a>00282         <span class="keywordflow">if</span> (child)
<a name="l00283"></a>00283         {
<a name="l00284"></a>00284             child-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad58bbeba69a118873a5075d86b4c90f2" title="Updates the absolute position.">updateAbsolutePosition</a>();
<a name="l00285"></a>00285         }
<a name="l00286"></a>00286     }
<a name="l00287"></a>00287 
<a name="l00289"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a3171cafaa9d2f3b67c886c60bdd61b32">00289</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a3171cafaa9d2f3b67c886c60bdd61b32" title="Removes a child.">removeChild</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* child)
<a name="l00290"></a>00290     {
<a name="l00291"></a>00291         <a class="code" href="classirr_1_1core_1_1list_1_1_iterator.html" title="List iterator.">core::list&lt;IGUIElement*&gt;::Iterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00292"></a>00292         <span class="keywordflow">for</span> (; it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>(); ++it)
<a name="l00293"></a>00293             <span class="keywordflow">if</span> ((*it) == child)
<a name="l00294"></a>00294             {
<a name="l00295"></a>00295                 (*it)-&gt;Parent = 0;
<a name="l00296"></a>00296                 (*it)-&gt;drop();
<a name="l00297"></a>00297                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#a407935fc79a35ce7caa19e4f6ce25c3f" title="Erases an element.">erase</a>(it);
<a name="l00298"></a>00298                 <span class="keywordflow">return</span>;
<a name="l00299"></a>00299             }
<a name="l00300"></a>00300     }
<a name="l00301"></a>00301 
<a name="l00302"></a>00302 
<a name="l00304"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fb8c63d48ec6ceeeedc8a83c02a9d0">00304</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <span class="keyword">remove</span>()
<a name="l00305"></a>00305     {
<a name="l00306"></a>00306         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>)
<a name="l00307"></a>00307             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a3171cafaa9d2f3b67c886c60bdd61b32" title="Removes a child.">removeChild</a>(<span class="keyword">this</span>);
<a name="l00308"></a>00308     }
<a name="l00309"></a>00309 
<a name="l00310"></a>00310 
<a name="l00312"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1ef7eeaff67b8a9f4f37cacdc7e54be2">00312</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1ef7eeaff67b8a9f4f37cacdc7e54be2" title="Draws the element and its children.">draw</a>()
<a name="l00313"></a>00313     {
<a name="l00314"></a>00314         <span class="keywordflow">if</span> ( <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7eb474d580a78c883269d40abaecbbc0" title="Returns true if element is visible.">isVisible</a>() )
<a name="l00315"></a>00315         {
<a name="l00316"></a>00316             <a class="code" href="classirr_1_1core_1_1list_1_1_iterator.html" title="List iterator.">core::list&lt;IGUIElement*&gt;::Iterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00317"></a>00317             <span class="keywordflow">for</span> (; it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>(); ++it)
<a name="l00318"></a>00318                 (*it)-&gt;draw();
<a name="l00319"></a>00319         }
<a name="l00320"></a>00320     }
<a name="l00321"></a>00321 
<a name="l00322"></a>00322 
<a name="l00324"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac71cf9174d4d35eca386657f01d744d1">00324</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac71cf9174d4d35eca386657f01d744d1" title="animate the element and its children.">OnPostRender</a>(<a class="code" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> timeMs)
<a name="l00325"></a>00325     {
<a name="l00326"></a>00326         <span class="keywordflow">if</span> ( <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7eb474d580a78c883269d40abaecbbc0" title="Returns true if element is visible.">isVisible</a>() )
<a name="l00327"></a>00327         {
<a name="l00328"></a>00328             <a class="code" href="classirr_1_1core_1_1list_1_1_iterator.html" title="List iterator.">core::list&lt;IGUIElement*&gt;::Iterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00329"></a>00329             <span class="keywordflow">for</span> (; it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>(); ++it)
<a name="l00330"></a>00330                 (*it)-&gt;OnPostRender( timeMs );
<a name="l00331"></a>00331         }
<a name="l00332"></a>00332     }
<a name="l00333"></a>00333 
<a name="l00334"></a>00334 
<a name="l00336"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a842eeacfcb26865416b084593a774704">00336</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a842eeacfcb26865416b084593a774704" title="Moves this element.">move</a>(core::position2d&lt;s32&gt; absoluteMovement)
<a name="l00337"></a>00337     {
<a name="l00338"></a>00338         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a0e5bb2d0a2e88e30d3697652f8dd7034" title="Sets the relative rectangle of this element.">setRelativePosition</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a> + absoluteMovement);
<a name="l00339"></a>00339     }
<a name="l00340"></a>00340 
<a name="l00341"></a>00341 
<a name="l00343"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7eb474d580a78c883269d40abaecbbc0">00343</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7eb474d580a78c883269d40abaecbbc0" title="Returns true if element is visible.">isVisible</a>()<span class="keyword"> const</span>
<a name="l00344"></a>00344 <span class="keyword">    </span>{
<a name="l00345"></a>00345         <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00346"></a>00346         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad8dd8fdfb5be3e4cca1f1603cbcfaccf" title="is visible?">IsVisible</a>;
<a name="l00347"></a>00347     }
<a name="l00348"></a>00348 
<a name="l00349"></a>00349 
<a name="l00351"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aed537cb0b16c670b8f895179f0027bad">00351</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aed537cb0b16c670b8f895179f0027bad" title="Sets the visible state of this element.">setVisible</a>(<span class="keywordtype">bool</span> visible)
<a name="l00352"></a>00352     {
<a name="l00353"></a>00353         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad8dd8fdfb5be3e4cca1f1603cbcfaccf" title="is visible?">IsVisible</a> = visible;
<a name="l00354"></a>00354     }
<a name="l00355"></a>00355 
<a name="l00356"></a>00356 
<a name="l00358"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ab97b8dd0a86130eb71742e40f84549e0">00358</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ab97b8dd0a86130eb71742e40f84549e0" title="Returns true if this element was created as part of its parent control.">isSubElement</a>()<span class="keyword"> const</span>
<a name="l00359"></a>00359 <span class="keyword">    </span>{
<a name="l00360"></a>00360         <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00361"></a>00361         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a19f65c7004c5b36c848dad776aabc151" title="is a part of a larger whole and should not be serialized?">IsSubElement</a>;
<a name="l00362"></a>00362     }
<a name="l00363"></a>00363 
<a name="l00364"></a>00364 
<a name="l00366"></a>00366 
<a name="l00368"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a50eb859808b65ee24fbdd69e69118a8d">00368</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a50eb859808b65ee24fbdd69e69118a8d" title="Sets whether this control was created as part of its parent.">setSubElement</a>(<span class="keywordtype">bool</span> subElement)
<a name="l00369"></a>00369     {
<a name="l00370"></a>00370         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a19f65c7004c5b36c848dad776aabc151" title="is a part of a larger whole and should not be serialized?">IsSubElement</a> = subElement;
<a name="l00371"></a>00371     }
<a name="l00372"></a>00372 
<a name="l00373"></a>00373 
<a name="l00375"></a>00375 
<a name="l00377"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a58b9b6a8715b4959dda905dbc028ece6">00377</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a58b9b6a8715b4959dda905dbc028ece6" title="If set to true, the focus will visit this element when using the tab key to cycle through elements...">setTabStop</a>(<span class="keywordtype">bool</span> enable)
<a name="l00378"></a>00378     {
<a name="l00379"></a>00379         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af98dfbfc8776221b3a70ceea43fc4f9a" title="tab stop like in windows">IsTabStop</a> = enable;
<a name="l00380"></a>00380     }
<a name="l00381"></a>00381 
<a name="l00382"></a>00382 
<a name="l00384"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7ec6a72654833db4f79a72025aa6e71c">00384</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7ec6a72654833db4f79a72025aa6e71c" title="Returns true if this element can be focused by navigating with the tab key.">isTabStop</a>()<span class="keyword"> const</span>
<a name="l00385"></a>00385 <span class="keyword">    </span>{
<a name="l00386"></a>00386         <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00387"></a>00387         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af98dfbfc8776221b3a70ceea43fc4f9a" title="tab stop like in windows">IsTabStop</a>;
<a name="l00388"></a>00388     }
<a name="l00389"></a>00389 
<a name="l00390"></a>00390 
<a name="l00392"></a>00392 
<a name="l00394"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1aabac2cce7847e5ab17f6c88d129ef7">00394</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1aabac2cce7847e5ab17f6c88d129ef7" title="Sets the priority of focus when using the tab key to navigate between a group of elements.">setTabOrder</a>(<a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> index)
<a name="l00395"></a>00395     {
<a name="l00396"></a>00396         <span class="comment">// negative = autonumber</span>
<a name="l00397"></a>00397         <span class="keywordflow">if</span> (index &lt; 0)
<a name="l00398"></a>00398         {
<a name="l00399"></a>00399             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90fcd9d502bb0f6e8e5f2d091f54bafb" title="tab order">TabOrder</a> = 0;
<a name="l00400"></a>00400             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a> *el = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ab6266a2fd3d8b0be385f9f3f3364e9ff" title="Returns the container element which holds all elements in this element&#39;s tab group.">getTabGroup</a>();
<a name="l00401"></a>00401             <span class="keywordflow">while</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8ea1b4a60653c8cc157e806e14ae0558" title="tab groups are containers like windows, use ctrl+tab to navigate">IsTabGroup</a> &amp;&amp; el &amp;&amp; el-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>)
<a name="l00402"></a>00402                 el = el-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>;
<a name="l00403"></a>00403 
<a name="l00404"></a>00404             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a> *first=0, *closest=0;
<a name="l00405"></a>00405             <span class="keywordflow">if</span> (el)
<a name="l00406"></a>00406             {
<a name="l00407"></a>00407                 <span class="comment">// find the highest element number</span>
<a name="l00408"></a>00408                 el-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a88f760d76ee5e43222266dcc1720ae4a" title="searches elements to find the closest next element to tab to">getNextElement</a>(-1, <span class="keyword">true</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8ea1b4a60653c8cc157e806e14ae0558" title="tab groups are containers like windows, use ctrl+tab to navigate">IsTabGroup</a>, first, closest, <span class="keyword">true</span>);
<a name="l00409"></a>00409                 <span class="keywordflow">if</span> (first)
<a name="l00410"></a>00410                 {
<a name="l00411"></a>00411                     <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90fcd9d502bb0f6e8e5f2d091f54bafb" title="tab order">TabOrder</a> = first-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a9857fb8654862486e153bbba2132ed09" title="Returns the number in the tab order sequence.">getTabOrder</a>() + 1;
<a name="l00412"></a>00412                 }
<a name="l00413"></a>00413             }
<a name="l00414"></a>00414 
<a name="l00415"></a>00415         }
<a name="l00416"></a>00416         <span class="keywordflow">else</span>
<a name="l00417"></a>00417             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90fcd9d502bb0f6e8e5f2d091f54bafb" title="tab order">TabOrder</a> = index;
<a name="l00418"></a>00418     }
<a name="l00419"></a>00419 
<a name="l00420"></a>00420 
<a name="l00422"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a9857fb8654862486e153bbba2132ed09">00422</a>     <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a9857fb8654862486e153bbba2132ed09" title="Returns the number in the tab order sequence.">getTabOrder</a>()<span class="keyword"> const</span>
<a name="l00423"></a>00423 <span class="keyword">    </span>{
<a name="l00424"></a>00424         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90fcd9d502bb0f6e8e5f2d091f54bafb" title="tab order">TabOrder</a>;
<a name="l00425"></a>00425     }
<a name="l00426"></a>00426 
<a name="l00427"></a>00427 
<a name="l00429"></a>00429 
<a name="l00431"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa44a46f3b639ca1b095f855c9d9c959d">00431</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa44a46f3b639ca1b095f855c9d9c959d" title="Sets whether this element is a container for a group of elements which can be navigated using the tab...">setTabGroup</a>(<span class="keywordtype">bool</span> isGroup)
<a name="l00432"></a>00432     {
<a name="l00433"></a>00433         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8ea1b4a60653c8cc157e806e14ae0558" title="tab groups are containers like windows, use ctrl+tab to navigate">IsTabGroup</a> = isGroup;
<a name="l00434"></a>00434     }
<a name="l00435"></a>00435 
<a name="l00436"></a>00436 
<a name="l00438"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a82a8614f749b19484e0c4af444e215f0">00438</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a82a8614f749b19484e0c4af444e215f0" title="Returns true if this element is a tab group.">isTabGroup</a>()<span class="keyword"> const</span>
<a name="l00439"></a>00439 <span class="keyword">    </span>{
<a name="l00440"></a>00440         <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00441"></a>00441         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8ea1b4a60653c8cc157e806e14ae0558" title="tab groups are containers like windows, use ctrl+tab to navigate">IsTabGroup</a>;
<a name="l00442"></a>00442     }
<a name="l00443"></a>00443 
<a name="l00444"></a>00444 
<a name="l00446"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ab6266a2fd3d8b0be385f9f3f3364e9ff">00446</a>     <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ab6266a2fd3d8b0be385f9f3f3364e9ff" title="Returns the container element which holds all elements in this element&#39;s tab group.">getTabGroup</a>()
<a name="l00447"></a>00447     {
<a name="l00448"></a>00448         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a> *ret=<span class="keyword">this</span>;
<a name="l00449"></a>00449 
<a name="l00450"></a>00450         <span class="keywordflow">while</span> (ret &amp;&amp; !ret-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a82a8614f749b19484e0c4af444e215f0" title="Returns true if this element is a tab group.">isTabGroup</a>())
<a name="l00451"></a>00451             ret = ret-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a417ad834c99198484b3b4b787dcfba74" title="Returns parent of this element.">getParent</a>();
<a name="l00452"></a>00452 
<a name="l00453"></a>00453         <span class="keywordflow">return</span> ret;
<a name="l00454"></a>00454     }
<a name="l00455"></a>00455 
<a name="l00456"></a>00456 
<a name="l00458"></a>00458 
<a name="l00462"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abfed9a7ace421bb3f14b8979d82e703a">00462</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abfed9a7ace421bb3f14b8979d82e703a" title="Returns true if element is enabled.">isEnabled</a>()<span class="keyword"> const</span>
<a name="l00463"></a>00463 <span class="keyword">    </span>{
<a name="l00464"></a>00464         <span class="keywordflow">if</span> ( <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ab97b8dd0a86130eb71742e40f84549e0" title="Returns true if this element was created as part of its parent control.">isSubElement</a>() &amp;&amp; <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aba90d3c36184d3b6d62a8856a8734590" title="is enabled?">IsEnabled</a> &amp;&amp; <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a417ad834c99198484b3b4b787dcfba74" title="Returns parent of this element.">getParent</a>() )
<a name="l00465"></a>00465             <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a417ad834c99198484b3b4b787dcfba74" title="Returns parent of this element.">getParent</a>()-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abfed9a7ace421bb3f14b8979d82e703a" title="Returns true if element is enabled.">isEnabled</a>();
<a name="l00466"></a>00466 
<a name="l00467"></a>00467         <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00468"></a>00468         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aba90d3c36184d3b6d62a8856a8734590" title="is enabled?">IsEnabled</a>;
<a name="l00469"></a>00469     }
<a name="l00470"></a>00470 
<a name="l00471"></a>00471 
<a name="l00473"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a2e3fd4a5f1ae52296f98cf36fdcffd1b">00473</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a2e3fd4a5f1ae52296f98cf36fdcffd1b" title="Sets the enabled state of this element.">setEnabled</a>(<span class="keywordtype">bool</span> enabled)
<a name="l00474"></a>00474     {
<a name="l00475"></a>00475         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aba90d3c36184d3b6d62a8856a8734590" title="is enabled?">IsEnabled</a> = enabled;
<a name="l00476"></a>00476     }
<a name="l00477"></a>00477 
<a name="l00478"></a>00478 
<a name="l00480"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f864c26d4b2ee3551c53d3ebf870656">00480</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f864c26d4b2ee3551c53d3ebf870656" title="Sets the new caption of this element.">setText</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* text)
<a name="l00481"></a>00481     {
<a name="l00482"></a>00482         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af37f64cdacde0959e4993d01f555eba8" title="caption">Text</a> = text;
<a name="l00483"></a>00483     }
<a name="l00484"></a>00484 
<a name="l00485"></a>00485 
<a name="l00487"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#acf2e01dbdbd468cb8e2e148b2463d406">00487</a>     <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#acf2e01dbdbd468cb8e2e148b2463d406" title="Returns caption of this element.">getText</a>()<span class="keyword"> const</span>
<a name="l00488"></a>00488 <span class="keyword">    </span>{
<a name="l00489"></a>00489         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af37f64cdacde0959e4993d01f555eba8" title="caption">Text</a>.<a class="code" href="classirr_1_1core_1_1string.html#a4abad222c478c108096ee9297870068c" title="Returns character string.">c_str</a>();
<a name="l00490"></a>00490     }
<a name="l00491"></a>00491 
<a name="l00492"></a>00492 
<a name="l00494"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a672f29f88c8d8f1e8ed1ac6c9f23b890">00494</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a672f29f88c8d8f1e8ed1ac6c9f23b890" title="Sets the new caption of this element.">setToolTipText</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* text)
<a name="l00495"></a>00495     {
<a name="l00496"></a>00496         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a422166b880f7829ec4e7b31322df9061" title="tooltip">ToolTipText</a> = text;
<a name="l00497"></a>00497     }
<a name="l00498"></a>00498 
<a name="l00499"></a>00499 
<a name="l00501"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aaaac5a17bb0f0d7dcdc8709a800a6ae0">00501</a>     <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1string.html">core::stringw</a>&amp; <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aaaac5a17bb0f0d7dcdc8709a800a6ae0" title="Returns caption of this element.">getToolTipText</a>()<span class="keyword"> const</span>
<a name="l00502"></a>00502 <span class="keyword">    </span>{
<a name="l00503"></a>00503         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a422166b880f7829ec4e7b31322df9061" title="tooltip">ToolTipText</a>;
<a name="l00504"></a>00504     }
<a name="l00505"></a>00505 
<a name="l00506"></a>00506 
<a name="l00508"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aff90de947c77996192e4a5aa1dd460c7">00508</a>     <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aff90de947c77996192e4a5aa1dd460c7" title="Returns id. Can be used to identify the element.">getID</a>()<span class="keyword"> const</span>
<a name="l00509"></a>00509 <span class="keyword">    </span>{
<a name="l00510"></a>00510         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a73a25c6d25bd673d92210fc2d60d916e" title="users can set this for identificating the element by integer">ID</a>;
<a name="l00511"></a>00511     }
<a name="l00512"></a>00512 
<a name="l00513"></a>00513 
<a name="l00515"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a55bad0e14306765e1fb734c56b729ba4">00515</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a55bad0e14306765e1fb734c56b729ba4" title="Sets the id of this element.">setID</a>(<a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <span class="keywordtype">id</span>)
<a name="l00516"></a>00516     {
<a name="l00517"></a>00517         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a73a25c6d25bd673d92210fc2d60d916e" title="users can set this for identificating the element by integer">ID</a> = id;
<a name="l00518"></a>00518     }
<a name="l00519"></a>00519 
<a name="l00520"></a>00520 
<a name="l00522"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a54b1799e21722d9e6ce5b8e4bdb2e80a">00522</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a54b1799e21722d9e6ce5b8e4bdb2e80a" title="Called if an event happened.">OnEvent</a>(<span class="keyword">const</span> <a class="code" href="structirr_1_1_s_event.html" title="SEvents hold information about an event. See irr::IEventReceiver for details on event handling...">SEvent</a>&amp; event)
<a name="l00523"></a>00523     {
<a name="l00524"></a>00524         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a> ? <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a54b1799e21722d9e6ce5b8e4bdb2e80a" title="Called if an event happened.">OnEvent</a>(event) : <span class="keyword">false</span>;
<a name="l00525"></a>00525     }
<a name="l00526"></a>00526 
<a name="l00527"></a>00527 
<a name="l00529"></a>00529 
<a name="l00530"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac262c8018bf4101f38f448fde16f5a52">00530</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac262c8018bf4101f38f448fde16f5a52" title="Brings a child to front.">bringToFront</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* element)
<a name="l00531"></a>00531     {
<a name="l00532"></a>00532         <a class="code" href="classirr_1_1core_1_1list_1_1_iterator.html" title="List iterator.">core::list&lt;IGUIElement*&gt;::Iterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00533"></a>00533         <span class="keywordflow">for</span> (; it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>(); ++it)
<a name="l00534"></a>00534         {
<a name="l00535"></a>00535             <span class="keywordflow">if</span> (element == (*it))
<a name="l00536"></a>00536             {
<a name="l00537"></a>00537                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#a407935fc79a35ce7caa19e4f6ce25c3f" title="Erases an element.">erase</a>(it);
<a name="l00538"></a>00538                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#a0f73ebd87279766f339cb1462c2a24d1" title="Adds an element at the end of the list.">push_back</a>(element);
<a name="l00539"></a>00539                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00540"></a>00540             }
<a name="l00541"></a>00541         }
<a name="l00542"></a>00542 
<a name="l00543"></a>00543         <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00544"></a>00544         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00545"></a>00545     }
<a name="l00546"></a>00546 
<a name="l00547"></a>00547 
<a name="l00549"></a>00549 
<a name="l00550"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a9b1880048e7542dbe289295de69e77cd">00550</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a9b1880048e7542dbe289295de69e77cd" title="Moves a child to the back, so it&#39;s siblings are drawn on top of it.">sendToBack</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* child)
<a name="l00551"></a>00551     {
<a name="l00552"></a>00552         <a class="code" href="classirr_1_1core_1_1list_1_1_iterator.html" title="List iterator.">core::list&lt;IGUIElement*&gt;::Iterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00553"></a>00553         <span class="keywordflow">if</span> (child == (*it)) <span class="comment">// already there</span>
<a name="l00554"></a>00554             <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00555"></a>00555         <span class="keywordflow">for</span> (; it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>(); ++it)
<a name="l00556"></a>00556         {
<a name="l00557"></a>00557             <span class="keywordflow">if</span> (child == (*it))
<a name="l00558"></a>00558             {
<a name="l00559"></a>00559                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#a407935fc79a35ce7caa19e4f6ce25c3f" title="Erases an element.">erase</a>(it);
<a name="l00560"></a>00560                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aec58963596cbc0435e706d1d00777b61" title="Adds an element at the begin of the list.">push_front</a>(child);
<a name="l00561"></a>00561                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00562"></a>00562             }
<a name="l00563"></a>00563         }
<a name="l00564"></a>00564 
<a name="l00565"></a>00565         <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00566"></a>00566         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00567"></a>00567     }
<a name="l00568"></a>00568 
<a name="l00570"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a6b5cad7e24f3191c909a7ae0a1a6bb27">00570</a>     <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1list.html">core::list&lt;IGUIElement*&gt;</a>&amp; <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a6b5cad7e24f3191c909a7ae0a1a6bb27" title="Returns list with children of this element.">getChildren</a>()<span class="keyword"> const</span>
<a name="l00571"></a>00571 <span class="keyword">    </span>{
<a name="l00572"></a>00572         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>;
<a name="l00573"></a>00573     }
<a name="l00574"></a>00574 
<a name="l00575"></a>00575 
<a name="l00577"></a>00577 
<a name="l00583"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1b6b4963685b23f18aaf079de1c0af68">00583</a>     <span class="keyword">virtual</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1b6b4963685b23f18aaf079de1c0af68" title="Finds the first element with the given id.">getElementFromId</a>(<a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <span class="keywordtype">id</span>, <span class="keywordtype">bool</span> searchchildren=<span class="keyword">false</span>)<span class="keyword"> const</span>
<a name="l00584"></a>00584 <span class="keyword">    </span>{
<a name="l00585"></a>00585         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* e = 0;
<a name="l00586"></a>00586 
<a name="l00587"></a>00587         <a class="code" href="classirr_1_1core_1_1list_1_1_const_iterator.html" title="List iterator for const access.">core::list&lt;IGUIElement*&gt;::ConstIterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00588"></a>00588         <span class="keywordflow">for</span> (; it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>(); ++it)
<a name="l00589"></a>00589         {
<a name="l00590"></a>00590             <span class="keywordflow">if</span> ((*it)-&gt;getID() == id)
<a name="l00591"></a>00591                 <span class="keywordflow">return</span> (*it);
<a name="l00592"></a>00592 
<a name="l00593"></a>00593             <span class="keywordflow">if</span> (searchchildren)
<a name="l00594"></a>00594                 e = (*it)-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1b6b4963685b23f18aaf079de1c0af68" title="Finds the first element with the given id.">getElementFromId</a>(<span class="keywordtype">id</span>, <span class="keyword">true</span>);
<a name="l00595"></a>00595 
<a name="l00596"></a>00596             <span class="keywordflow">if</span> (e)
<a name="l00597"></a>00597                 <span class="keywordflow">return</span> e;
<a name="l00598"></a>00598         }
<a name="l00599"></a>00599 
<a name="l00600"></a>00600         <span class="keywordflow">return</span> e;
<a name="l00601"></a>00601     }
<a name="l00602"></a>00602 
<a name="l00603"></a>00603 
<a name="l00606"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae9b22eb8368088384da19906d76f2f5c">00606</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae9b22eb8368088384da19906d76f2f5c">isMyChild</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* child)<span class="keyword"> const</span>
<a name="l00607"></a>00607 <span class="keyword">    </span>{
<a name="l00608"></a>00608         <span class="keywordflow">if</span> (!child)
<a name="l00609"></a>00609             <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00610"></a>00610         <span class="keywordflow">do</span>
<a name="l00611"></a>00611         {
<a name="l00612"></a>00612             <span class="keywordflow">if</span> (child-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>)
<a name="l00613"></a>00613                 child = child-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>;
<a name="l00614"></a>00614 
<a name="l00615"></a>00615         } <span class="keywordflow">while</span> (child-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a> &amp;&amp; child != <span class="keyword">this</span>);
<a name="l00616"></a>00616 
<a name="l00617"></a>00617         <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00618"></a>00618         <span class="keywordflow">return</span> child == <span class="keyword">this</span>;
<a name="l00619"></a>00619     }
<a name="l00620"></a>00620 
<a name="l00621"></a>00621 
<a name="l00623"></a>00623 
<a name="l00630"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a88f760d76ee5e43222266dcc1720ae4a">00630</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a88f760d76ee5e43222266dcc1720ae4a" title="searches elements to find the closest next element to tab to">getNextElement</a>(<a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> startOrder, <span class="keywordtype">bool</span> reverse, <span class="keywordtype">bool</span> group,
<a name="l00631"></a>00631         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>*&amp; first, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>*&amp; closest, <span class="keywordtype">bool</span> includeInvisible=<span class="keyword">false</span>)<span class="keyword"> const</span>
<a name="l00632"></a>00632 <span class="keyword">    </span>{
<a name="l00633"></a>00633         <span class="comment">// we&#39;ll stop searching if we find this number</span>
<a name="l00634"></a>00634         <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> wanted = startOrder + ( reverse ? -1 : 1 );
<a name="l00635"></a>00635         <span class="keywordflow">if</span> (wanted==-2)
<a name="l00636"></a>00636             wanted = 1073741824; <span class="comment">// maximum s32</span>
<a name="l00637"></a>00637 
<a name="l00638"></a>00638         <a class="code" href="classirr_1_1core_1_1list_1_1_const_iterator.html" title="List iterator for const access.">core::list&lt;IGUIElement*&gt;::ConstIterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00639"></a>00639 
<a name="l00640"></a>00640         <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> closestOrder, currentOrder;
<a name="l00641"></a>00641 
<a name="l00642"></a>00642         <span class="keywordflow">while</span>(it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>())
<a name="l00643"></a>00643         {
<a name="l00644"></a>00644             <span class="comment">// ignore invisible elements and their children</span>
<a name="l00645"></a>00645             <span class="keywordflow">if</span> ( ( (*it)-&gt;isVisible() || includeInvisible ) &amp;&amp;
<a name="l00646"></a>00646                 (group == <span class="keyword">true</span> || (*it)-&gt;isTabGroup() == <span class="keyword">false</span>) )
<a name="l00647"></a>00647             {
<a name="l00648"></a>00648                 <span class="comment">// only check tab stops and those with the same group status</span>
<a name="l00649"></a>00649                 <span class="keywordflow">if</span> ((*it)-&gt;isTabStop() &amp;&amp; ((*it)-&gt;isTabGroup() == group))
<a name="l00650"></a>00650                 {
<a name="l00651"></a>00651                     currentOrder = (*it)-&gt;getTabOrder();
<a name="l00652"></a>00652 
<a name="l00653"></a>00653                     <span class="comment">// is this what we&#39;re looking for?</span>
<a name="l00654"></a>00654                     <span class="keywordflow">if</span> (currentOrder == wanted)
<a name="l00655"></a>00655                     {
<a name="l00656"></a>00656                         closest = *it;
<a name="l00657"></a>00657                         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00658"></a>00658                     }
<a name="l00659"></a>00659 
<a name="l00660"></a>00660                     <span class="comment">// is it closer than the current closest?</span>
<a name="l00661"></a>00661                     <span class="keywordflow">if</span> (closest)
<a name="l00662"></a>00662                     {
<a name="l00663"></a>00663                         closestOrder = closest-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a9857fb8654862486e153bbba2132ed09" title="Returns the number in the tab order sequence.">getTabOrder</a>();
<a name="l00664"></a>00664                         <span class="keywordflow">if</span> ( ( reverse &amp;&amp; currentOrder &gt; closestOrder &amp;&amp; currentOrder &lt; startOrder)
<a name="l00665"></a>00665                             ||(!reverse &amp;&amp; currentOrder &lt; closestOrder &amp;&amp; currentOrder &gt; startOrder))
<a name="l00666"></a>00666                         {
<a name="l00667"></a>00667                             closest = *it;
<a name="l00668"></a>00668                         }
<a name="l00669"></a>00669                     }
<a name="l00670"></a>00670                     <span class="keywordflow">else</span>
<a name="l00671"></a>00671                     <span class="keywordflow">if</span> ( (reverse &amp;&amp; currentOrder &lt; startOrder) || (!reverse &amp;&amp; currentOrder &gt; startOrder) )
<a name="l00672"></a>00672                     {
<a name="l00673"></a>00673                         closest = *it;
<a name="l00674"></a>00674                     }
<a name="l00675"></a>00675 
<a name="l00676"></a>00676                     <span class="comment">// is it before the current first?</span>
<a name="l00677"></a>00677                     <span class="keywordflow">if</span> (first)
<a name="l00678"></a>00678                     {
<a name="l00679"></a>00679                         closestOrder = first-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a9857fb8654862486e153bbba2132ed09" title="Returns the number in the tab order sequence.">getTabOrder</a>();
<a name="l00680"></a>00680 
<a name="l00681"></a>00681                         <span class="keywordflow">if</span> ( (reverse &amp;&amp; closestOrder &lt; currentOrder) || (!reverse &amp;&amp; closestOrder &gt; currentOrder) )
<a name="l00682"></a>00682                         {
<a name="l00683"></a>00683                             first = *it;
<a name="l00684"></a>00684                         }
<a name="l00685"></a>00685                     }
<a name="l00686"></a>00686                     <span class="keywordflow">else</span>
<a name="l00687"></a>00687                     {
<a name="l00688"></a>00688                         first = *it;
<a name="l00689"></a>00689                     }
<a name="l00690"></a>00690                 }
<a name="l00691"></a>00691                 <span class="comment">// search within children</span>
<a name="l00692"></a>00692                 <span class="keywordflow">if</span> ((*it)-&gt;getNextElement(startOrder, reverse, group, first, closest))
<a name="l00693"></a>00693                 {
<a name="l00694"></a>00694                     <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00695"></a>00695                     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00696"></a>00696                 }
<a name="l00697"></a>00697             }
<a name="l00698"></a>00698             ++it;
<a name="l00699"></a>00699         }
<a name="l00700"></a>00700         <a class="code" href="irr_types_8h.html#ad19cf45bdc142ef8e4a011cabbc4a4af" title="Defines a small statement to work around a microsoft compiler bug.">_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX</a>;
<a name="l00701"></a>00701         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00702"></a>00702     }
<a name="l00703"></a>00703 
<a name="l00704"></a>00704 
<a name="l00706"></a>00706 
<a name="l00710"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a66f6dc2bdab5e69a90b332abe4fdddbd">00710</a>     <a class="code" href="namespaceirr_1_1gui.html#ae4d66df0ecf4117cdbcf9f22404bd254" title="List of all basic Irrlicht GUI elements.">EGUI_ELEMENT_TYPE</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a66f6dc2bdab5e69a90b332abe4fdddbd" title="Returns the type of the gui element.">getType</a>()<span class="keyword"> const</span>
<a name="l00711"></a>00711 <span class="keyword">    </span>{
<a name="l00712"></a>00712         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad362880afa8ccb537b04032340e989e9" title="type of element">Type</a>;
<a name="l00713"></a>00713     }
<a name="l00714"></a>00714 
<a name="l00716"></a>00716 
<a name="l00724"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a61c02bc314adb5d14c8c844cf00cfabd">00724</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a61c02bc314adb5d14c8c844cf00cfabd" title="Returns true if the gui element supports the given type.">hasType</a>(<a class="code" href="namespaceirr_1_1gui.html#ae4d66df0ecf4117cdbcf9f22404bd254" title="List of all basic Irrlicht GUI elements.">EGUI_ELEMENT_TYPE</a> type)<span class="keyword"> const</span>
<a name="l00725"></a>00725 <span class="keyword">    </span>{
<a name="l00726"></a>00726         <span class="keywordflow">return</span> type == <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad362880afa8ccb537b04032340e989e9" title="type of element">Type</a>;
<a name="l00727"></a>00727     }
<a name="l00728"></a>00728 
<a name="l00729"></a>00729 
<a name="l00731"></a>00731 
<a name="l00733"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a02066215f971ceedf2347c9fc69cb647">00733</a>     <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410" title="8 bit character variable.">c8</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a02066215f971ceedf2347c9fc69cb647" title="Returns the type name of the gui element.">getTypeName</a>()<span class="keyword"> const</span>
<a name="l00734"></a>00734 <span class="keyword">    </span>{
<a name="l00735"></a>00735         <span class="keywordflow">return</span> <a class="code" href="namespaceirr_1_1gui.html#afd5c3c406438f3b6df63b9c53c0464e3" title="Names for built-in element types.">GUIElementTypeNames</a>[<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad362880afa8ccb537b04032340e989e9" title="type of element">Type</a>];
<a name="l00736"></a>00736     }
<a name="l00737"></a>00737     
<a name="l00739"></a>00739 
<a name="l00740"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1782586c97a9ef798710e3c8acc4bf3e">00740</a>     <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410" title="8 bit character variable.">c8</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1782586c97a9ef798710e3c8acc4bf3e" title="Returns the name of the element.">getName</a>()<span class="keyword"> const</span>
<a name="l00741"></a>00741 <span class="keyword">    </span>{
<a name="l00742"></a>00742         <span class="keywordflow">return</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#acdc67728b14f264b38d194853c5b5179" title="users can set this for identificating the element by string">Name</a>.<a class="code" href="classirr_1_1core_1_1string.html#a4abad222c478c108096ee9297870068c" title="Returns character string.">c_str</a>();
<a name="l00743"></a>00743     }
<a name="l00744"></a>00744 
<a name="l00745"></a>00745 
<a name="l00747"></a>00747 
<a name="l00748"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a47ce14d1a973137b6cbe91a047df2ebe">00748</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a47ce14d1a973137b6cbe91a047df2ebe" title="Sets the name of the element.">setName</a>(<span class="keyword">const</span> <a class="code" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410" title="8 bit character variable.">c8</a>* name)
<a name="l00749"></a>00749     {
<a name="l00750"></a>00750         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#acdc67728b14f264b38d194853c5b5179" title="users can set this for identificating the element by string">Name</a> = name;
<a name="l00751"></a>00751     }
<a name="l00752"></a>00752 
<a name="l00753"></a>00753 
<a name="l00755"></a>00755 
<a name="l00756"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a5e318b47fece6d4157a1d7ccf401f1c8">00756</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a47ce14d1a973137b6cbe91a047df2ebe" title="Sets the name of the element.">setName</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1string.html">core::stringc</a>&amp; name)
<a name="l00757"></a>00757     {
<a name="l00758"></a>00758         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#acdc67728b14f264b38d194853c5b5179" title="users can set this for identificating the element by string">Name</a> = name;
<a name="l00759"></a>00759     }
<a name="l00760"></a>00760 
<a name="l00761"></a>00761 
<a name="l00763"></a>00763 
<a name="l00765"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a877be2990b1afbb287dd525c5f33b704">00765</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a877be2990b1afbb287dd525c5f33b704" title="Writes attributes of the scene node.">serializeAttributes</a>(<a class="code" href="classirr_1_1io_1_1_i_attributes.html" title="Provides a generic interface for attributes and their values and the possiblity to serialize them...">io::IAttributes</a>* out, <a class="code" href="structirr_1_1io_1_1_s_attribute_read_write_options.html" title="struct holding data describing options">io::SAttributeReadWriteOptions</a>* options=0)<span class="keyword"> const</span>
<a name="l00766"></a>00766 <span class="keyword">    </span>{
<a name="l00767"></a>00767         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a051f092d809f9d40215a1480d9d69afc" title="Adds an attribute as string.">addString</a>(<span class="stringliteral">&quot;Name&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#acdc67728b14f264b38d194853c5b5179" title="users can set this for identificating the element by string">Name</a>.<a class="code" href="classirr_1_1core_1_1string.html#a4abad222c478c108096ee9297870068c" title="Returns character string.">c_str</a>());       
<a name="l00768"></a>00768         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#afbde111f36d59e9cf42b20595cf2ed24" title="Adds an attribute as integer.">addInt</a>(<span class="stringliteral">&quot;Id&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a73a25c6d25bd673d92210fc2d60d916e" title="users can set this for identificating the element by integer">ID</a> );
<a name="l00769"></a>00769         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a051f092d809f9d40215a1480d9d69afc" title="Adds an attribute as string.">addString</a>(<span class="stringliteral">&quot;Caption&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#acf2e01dbdbd468cb8e2e148b2463d406" title="Returns caption of this element.">getText</a>());
<a name="l00770"></a>00770         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#ab96f842013ac61bb75a460c073d90c57" title="Adds an attribute as rectangle.">addRect</a>(<span class="stringliteral">&quot;Rect&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>);
<a name="l00771"></a>00771         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#ae875ea8d21955b4945b3d2d4f6e739fe" title="Adds an attribute as 2d position.">addPosition2d</a>(<span class="stringliteral">&quot;MinSize&quot;</span>, <a class="code" href="classirr_1_1core_1_1vector2d.html" title="2d vector template class with lots of operators and methods.">core::position2di</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a>));
<a name="l00772"></a>00772         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#ae875ea8d21955b4945b3d2d4f6e739fe" title="Adds an attribute as 2d position.">addPosition2d</a>(<span class="stringliteral">&quot;MaxSize&quot;</span>, <a class="code" href="classirr_1_1core_1_1vector2d.html" title="2d vector template class with lots of operators and methods.">core::position2di</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a>));
<a name="l00773"></a>00773         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#af03f3c31e9dadc98d875f993a8995819" title="Adds an attribute as enum.">addEnum</a>(<span class="stringliteral">&quot;LeftAlign&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a09873f314caf3144ebf470ccaa22762a" title="tells the element how to act when its parent is resized">AlignLeft</a>, <a class="code" href="namespaceirr_1_1gui.html#a356f87c7a79af136d7128f4cf2a3ad9a" title="Names for alignments.">GUIAlignmentNames</a>);
<a name="l00774"></a>00774         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#af03f3c31e9dadc98d875f993a8995819" title="Adds an attribute as enum.">addEnum</a>(<span class="stringliteral">&quot;RightAlign&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac0c5d7f233ebd05d535e9e9cf25f03fe">AlignRight</a>, <a class="code" href="namespaceirr_1_1gui.html#a356f87c7a79af136d7128f4cf2a3ad9a" title="Names for alignments.">GUIAlignmentNames</a>);
<a name="l00775"></a>00775         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#af03f3c31e9dadc98d875f993a8995819" title="Adds an attribute as enum.">addEnum</a>(<span class="stringliteral">&quot;TopAlign&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">AlignTop</a>, <a class="code" href="namespaceirr_1_1gui.html#a356f87c7a79af136d7128f4cf2a3ad9a" title="Names for alignments.">GUIAlignmentNames</a>);
<a name="l00776"></a>00776         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#af03f3c31e9dadc98d875f993a8995819" title="Adds an attribute as enum.">addEnum</a>(<span class="stringliteral">&quot;BottomAlign&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a4204f1300a03ea597a48c5b4cfe134c0">AlignBottom</a>, <a class="code" href="namespaceirr_1_1gui.html#a356f87c7a79af136d7128f4cf2a3ad9a" title="Names for alignments.">GUIAlignmentNames</a>);
<a name="l00777"></a>00777         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a3335f912c0dfcf0e88f662796314123b" title="Adds an attribute as bool.">addBool</a>(<span class="stringliteral">&quot;Visible&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad8dd8fdfb5be3e4cca1f1603cbcfaccf" title="is visible?">IsVisible</a>);
<a name="l00778"></a>00778         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a3335f912c0dfcf0e88f662796314123b" title="Adds an attribute as bool.">addBool</a>(<span class="stringliteral">&quot;Enabled&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aba90d3c36184d3b6d62a8856a8734590" title="is enabled?">IsEnabled</a>);
<a name="l00779"></a>00779         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a3335f912c0dfcf0e88f662796314123b" title="Adds an attribute as bool.">addBool</a>(<span class="stringliteral">&quot;TabStop&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af98dfbfc8776221b3a70ceea43fc4f9a" title="tab stop like in windows">IsTabStop</a>);
<a name="l00780"></a>00780         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a3335f912c0dfcf0e88f662796314123b" title="Adds an attribute as bool.">addBool</a>(<span class="stringliteral">&quot;TabGroup&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8ea1b4a60653c8cc157e806e14ae0558" title="tab groups are containers like windows, use ctrl+tab to navigate">IsTabGroup</a>);
<a name="l00781"></a>00781         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#afbde111f36d59e9cf42b20595cf2ed24" title="Adds an attribute as integer.">addInt</a>(<span class="stringliteral">&quot;TabOrder&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90fcd9d502bb0f6e8e5f2d091f54bafb" title="tab order">TabOrder</a>);
<a name="l00782"></a>00782         out-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a3335f912c0dfcf0e88f662796314123b" title="Adds an attribute as bool.">addBool</a>(<span class="stringliteral">&quot;NoClip&quot;</span>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f9ad427fe094e0e8c49cf205c606526" title="does this element ignore its parent&#39;s clipping rectangle?">NoClip</a>);
<a name="l00783"></a>00783     }
<a name="l00784"></a>00784 
<a name="l00785"></a>00785 
<a name="l00787"></a>00787 
<a name="l00789"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af71b96163b8d95816cd9c80fbf413b4d">00789</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af71b96163b8d95816cd9c80fbf413b4d" title="Reads attributes of the scene node.">deserializeAttributes</a>(<a class="code" href="classirr_1_1io_1_1_i_attributes.html" title="Provides a generic interface for attributes and their values and the possiblity to serialize them...">io::IAttributes</a>* in, <a class="code" href="structirr_1_1io_1_1_s_attribute_read_write_options.html" title="struct holding data describing options">io::SAttributeReadWriteOptions</a>* options=0)
<a name="l00790"></a>00790     {
<a name="l00791"></a>00791         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a47ce14d1a973137b6cbe91a047df2ebe" title="Sets the name of the element.">setName</a>(in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a60f395fd008a70cc0531fa038c81f0ea">getAttributeAsString</a>(<span class="stringliteral">&quot;Name&quot;</span>));
<a name="l00792"></a>00792         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a55bad0e14306765e1fb734c56b729ba4" title="Sets the id of this element.">setID</a>(in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#ac6c51254c9d43cb58cb89866cdd210ed">getAttributeAsInt</a>(<span class="stringliteral">&quot;Id&quot;</span>));
<a name="l00793"></a>00793         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f864c26d4b2ee3551c53d3ebf870656" title="Sets the new caption of this element.">setText</a>(in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a874219751c3a52d781cdfa372cd8bcf5">getAttributeAsStringW</a>(<span class="stringliteral">&quot;Caption&quot;</span>).<a class="code" href="classirr_1_1core_1_1string.html#a4abad222c478c108096ee9297870068c" title="Returns character string.">c_str</a>());
<a name="l00794"></a>00794         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aed537cb0b16c670b8f895179f0027bad" title="Sets the visible state of this element.">setVisible</a>(in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a197407f5b0f1d0c1aefab3e1b8d7c02d">getAttributeAsBool</a>(<span class="stringliteral">&quot;Visible&quot;</span>));
<a name="l00795"></a>00795         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a2e3fd4a5f1ae52296f98cf36fdcffd1b" title="Sets the enabled state of this element.">setEnabled</a>(in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a197407f5b0f1d0c1aefab3e1b8d7c02d">getAttributeAsBool</a>(<span class="stringliteral">&quot;Enabled&quot;</span>));
<a name="l00796"></a>00796         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af98dfbfc8776221b3a70ceea43fc4f9a" title="tab stop like in windows">IsTabStop</a> = in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a197407f5b0f1d0c1aefab3e1b8d7c02d">getAttributeAsBool</a>(<span class="stringliteral">&quot;TabStop&quot;</span>);
<a name="l00797"></a>00797         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8ea1b4a60653c8cc157e806e14ae0558" title="tab groups are containers like windows, use ctrl+tab to navigate">IsTabGroup</a> = in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a197407f5b0f1d0c1aefab3e1b8d7c02d">getAttributeAsBool</a>(<span class="stringliteral">&quot;TabGroup&quot;</span>);
<a name="l00798"></a>00798         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90fcd9d502bb0f6e8e5f2d091f54bafb" title="tab order">TabOrder</a> = in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#ac6c51254c9d43cb58cb89866cdd210ed">getAttributeAsInt</a>(<span class="stringliteral">&quot;TabOrder&quot;</span>);
<a name="l00799"></a>00799 
<a name="l00800"></a>00800         <a class="code" href="classirr_1_1core_1_1vector2d.html" title="2d vector template class with lots of operators and methods.">core::position2di</a> p = in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#abedde01b678c482be20735e4d730942f">getAttributeAsPosition2d</a>(<span class="stringliteral">&quot;MaxSize&quot;</span>);
<a name="l00801"></a>00801         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae80ad7253fb9fb2ebbeda2a8148fff3e" title="Sets the maximum size allowed for this element.">setMaxSize</a>(<a class="code" href="classirr_1_1core_1_1dimension2d.html">core::dimension2du</a>(p.<a class="code" href="classirr_1_1core_1_1vector2d.html#a8fabb0d10a3dd33b407b63bb3539be4d" title="X coordinate of vector.">X</a>,p.<a class="code" href="classirr_1_1core_1_1vector2d.html#aa4d36f518d3fc35a7aafcea33a31f76c" title="Y coordinate of vector.">Y</a>));
<a name="l00802"></a>00802 
<a name="l00803"></a>00803         p = in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#abedde01b678c482be20735e4d730942f">getAttributeAsPosition2d</a>(<span class="stringliteral">&quot;MinSize&quot;</span>);
<a name="l00804"></a>00804         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ae1ddcdd58af93fea900bd6295d4d8e61" title="Sets the minimum size allowed for this element.">setMinSize</a>(<a class="code" href="classirr_1_1core_1_1dimension2d.html">core::dimension2du</a>(p.<a class="code" href="classirr_1_1core_1_1vector2d.html#a8fabb0d10a3dd33b407b63bb3539be4d" title="X coordinate of vector.">X</a>,p.<a class="code" href="classirr_1_1core_1_1vector2d.html#aa4d36f518d3fc35a7aafcea33a31f76c" title="Y coordinate of vector.">Y</a>));
<a name="l00805"></a>00805 
<a name="l00806"></a>00806         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1eb3d7ec13ebbf8c73859810088f666b" title="The alignment defines how the borders of this element will be positioned when the parent element is r...">setAlignment</a>((<a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2d">EGUI_ALIGNMENT</a>) in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a2a204c332735a0b15fa555ae6e785214">getAttributeAsEnumeration</a>(<span class="stringliteral">&quot;LeftAlign&quot;</span>, <a class="code" href="namespaceirr_1_1gui.html#a356f87c7a79af136d7128f4cf2a3ad9a" title="Names for alignments.">GUIAlignmentNames</a>),
<a name="l00807"></a>00807             (<a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2d">EGUI_ALIGNMENT</a>)in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a2a204c332735a0b15fa555ae6e785214">getAttributeAsEnumeration</a>(<span class="stringliteral">&quot;RightAlign&quot;</span>, <a class="code" href="namespaceirr_1_1gui.html#a356f87c7a79af136d7128f4cf2a3ad9a" title="Names for alignments.">GUIAlignmentNames</a>),
<a name="l00808"></a>00808             (<a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2d">EGUI_ALIGNMENT</a>)in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a2a204c332735a0b15fa555ae6e785214">getAttributeAsEnumeration</a>(<span class="stringliteral">&quot;TopAlign&quot;</span>, <a class="code" href="namespaceirr_1_1gui.html#a356f87c7a79af136d7128f4cf2a3ad9a" title="Names for alignments.">GUIAlignmentNames</a>),
<a name="l00809"></a>00809             (<a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2d">EGUI_ALIGNMENT</a>)in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a2a204c332735a0b15fa555ae6e785214">getAttributeAsEnumeration</a>(<span class="stringliteral">&quot;BottomAlign&quot;</span>, <a class="code" href="namespaceirr_1_1gui.html#a356f87c7a79af136d7128f4cf2a3ad9a" title="Names for alignments.">GUIAlignmentNames</a>));
<a name="l00810"></a>00810 
<a name="l00811"></a>00811         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a0e5bb2d0a2e88e30d3697652f8dd7034" title="Sets the relative rectangle of this element.">setRelativePosition</a>(in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#ac2d077105e2e7c263ea181f67a005cc2">getAttributeAsRect</a>(<span class="stringliteral">&quot;Rect&quot;</span>));
<a name="l00812"></a>00812 
<a name="l00813"></a>00813         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a814d322989acafa74c895e5c13908b86" title="Sets whether the element will ignore its parent&#39;s clipping rectangle.">setNotClipped</a>(in-&gt;<a class="code" href="classirr_1_1io_1_1_i_attributes.html#a197407f5b0f1d0c1aefab3e1b8d7c02d">getAttributeAsBool</a>(<span class="stringliteral">&quot;NoClip&quot;</span>));
<a name="l00814"></a>00814     }
<a name="l00815"></a>00815 
<a name="l00816"></a>00816 <span class="keyword">protected</span>:
<a name="l00817"></a>00817     <span class="comment">// not virtual because needed in constructor</span>
<a name="l00818"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abbd5e7871db1672233bd47ea4ad1f305">00818</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abbd5e7871db1672233bd47ea4ad1f305">addChildToEnd</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* child)
<a name="l00819"></a>00819     {
<a name="l00820"></a>00820         <span class="keywordflow">if</span> (child)
<a name="l00821"></a>00821         {
<a name="l00822"></a>00822             child-&gt;<a class="code" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4" title="Grabs the object. Increments the reference counter by one.">grab</a>(); <span class="comment">// prevent destruction when removed</span>
<a name="l00823"></a>00823             child-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fb8c63d48ec6ceeeedc8a83c02a9d0" title="Removes this element from its parent.">remove</a>(); <span class="comment">// remove from old parent</span>
<a name="l00824"></a>00824             child-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a02f0934eefcc2191cfd665daf529ce0b" title="for calculating the difference when resizing parent">LastParentRect</a> = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af897fcfbff5642c908c3c45c39bc90f1" title="Gets the absolute rectangle of this element.">getAbsolutePosition</a>();
<a name="l00825"></a>00825             child-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a> = <span class="keyword">this</span>;
<a name="l00826"></a>00826             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#a0f73ebd87279766f339cb1462c2a24d1" title="Adds an element at the end of the list.">push_back</a>(child);
<a name="l00827"></a>00827         }
<a name="l00828"></a>00828     }
<a name="l00829"></a>00829 
<a name="l00830"></a>00830     <span class="comment">// not virtual because needed in constructor</span>
<a name="l00831"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a436d80ee161086389d7f3537ca062e4a">00831</a>     <span class="keywordtype">void</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a436d80ee161086389d7f3537ca062e4a">recalculateAbsolutePosition</a>(<span class="keywordtype">bool</span> recursive)
<a name="l00832"></a>00832     {
<a name="l00833"></a>00833         <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> parentAbsolute(0,0,0,0);
<a name="l00834"></a>00834         <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> parentAbsoluteClip;
<a name="l00835"></a>00835         <a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a> fw=0.f, fh=0.f;
<a name="l00836"></a>00836 
<a name="l00837"></a>00837         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>)
<a name="l00838"></a>00838         {
<a name="l00839"></a>00839             parentAbsolute = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a05ba78d5e6f11c5a64d9da2fcfd4ded1" title="absolute rect of element">AbsoluteRect</a>;
<a name="l00840"></a>00840 
<a name="l00841"></a>00841             <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f9ad427fe094e0e8c49cf205c606526" title="does this element ignore its parent&#39;s clipping rectangle?">NoClip</a>)
<a name="l00842"></a>00842             {
<a name="l00843"></a>00843                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* p=<span class="keyword">this</span>;
<a name="l00844"></a>00844                 <span class="keywordflow">while</span> (p &amp;&amp; p-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>)
<a name="l00845"></a>00845                     p = p-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>;
<a name="l00846"></a>00846                 parentAbsoluteClip = p-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1000af90afbbe92344fb000f5af5c8fb" title="absolute clipping rect of element">AbsoluteClippingRect</a>;
<a name="l00847"></a>00847             }
<a name="l00848"></a>00848             <span class="keywordflow">else</span>
<a name="l00849"></a>00849                 parentAbsoluteClip = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>-&gt;<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1000af90afbbe92344fb000f5af5c8fb" title="absolute clipping rect of element">AbsoluteClippingRect</a>;
<a name="l00850"></a>00850         }
<a name="l00851"></a>00851 
<a name="l00852"></a>00852         <span class="keyword">const</span> <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> diffx = parentAbsolute.<a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4" title="Get width of rectangle.">getWidth</a>() - <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a02f0934eefcc2191cfd665daf529ce0b" title="for calculating the difference when resizing parent">LastParentRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4" title="Get width of rectangle.">getWidth</a>();
<a name="l00853"></a>00853         <span class="keyword">const</span> <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> diffy = parentAbsolute.<a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b" title="Get height of rectangle.">getHeight</a>() - <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a02f0934eefcc2191cfd665daf529ce0b" title="for calculating the difference when resizing parent">LastParentRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b" title="Get height of rectangle.">getHeight</a>();
<a name="l00854"></a>00854 
<a name="l00855"></a>00855         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a09873f314caf3144ebf470ccaa22762a" title="tells the element how to act when its parent is resized">AlignLeft</a> == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a> || <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac0c5d7f233ebd05d535e9e9cf25f03fe">AlignRight</a> == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00856"></a>00856             fw = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)parentAbsolute.<a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4" title="Get width of rectangle.">getWidth</a>();
<a name="l00857"></a>00857 
<a name="l00858"></a>00858         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">AlignTop</a> == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a> || <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a4204f1300a03ea597a48c5b4cfe134c0">AlignBottom</a> == <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>)
<a name="l00859"></a>00859             fh = (<a class="code" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07" title="32 bit floating point variable.">f32</a>)parentAbsolute.<a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b" title="Get height of rectangle.">getHeight</a>();
<a name="l00860"></a>00860 
<a name="l00861"></a>00861         <span class="keywordflow">switch</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a09873f314caf3144ebf470ccaa22762a" title="tells the element how to act when its parent is resized">AlignLeft</a>)
<a name="l00862"></a>00862         {
<a name="l00863"></a>00863             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da4bb8a01452727274e18047a872da1809" title="Aligned to parent&#39;s top or left side (default)">EGUIA_UPPERLEFT</a>:
<a name="l00864"></a>00864                 <span class="keywordflow">break</span>;
<a name="l00865"></a>00865             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da48b4d042b2d6cd63b876cef62c9cfb97" title="Aligned to parent&#39;s bottom or right side.">EGUIA_LOWERRIGHT</a>:
<a name="l00866"></a>00866                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X += diffx;
<a name="l00867"></a>00867                 <span class="keywordflow">break</span>;
<a name="l00868"></a>00868             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da9da0fb4bcb85d509bdfe018b720e4606" title="Aligned to the center of parent.">EGUIA_CENTER</a>:
<a name="l00869"></a>00869                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X += diffx/2;
<a name="l00870"></a>00870                 <span class="keywordflow">break</span>;
<a name="l00871"></a>00871             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>:
<a name="l00872"></a>00872                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X = <a class="code" href="namespaceirr_1_1core.html#ae46f57f03e9033c57c180fbe83b04cf2">core::round32</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X * fw);
<a name="l00873"></a>00873                 <span class="keywordflow">break</span>;
<a name="l00874"></a>00874         }
<a name="l00875"></a>00875 
<a name="l00876"></a>00876         <span class="keywordflow">switch</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac0c5d7f233ebd05d535e9e9cf25f03fe">AlignRight</a>)
<a name="l00877"></a>00877         {
<a name="l00878"></a>00878             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da4bb8a01452727274e18047a872da1809" title="Aligned to parent&#39;s top or left side (default)">EGUIA_UPPERLEFT</a>:
<a name="l00879"></a>00879                 <span class="keywordflow">break</span>;
<a name="l00880"></a>00880             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da48b4d042b2d6cd63b876cef62c9cfb97" title="Aligned to parent&#39;s bottom or right side.">EGUIA_LOWERRIGHT</a>:
<a name="l00881"></a>00881                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X += diffx;
<a name="l00882"></a>00882                 <span class="keywordflow">break</span>;
<a name="l00883"></a>00883             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da9da0fb4bcb85d509bdfe018b720e4606" title="Aligned to the center of parent.">EGUIA_CENTER</a>:
<a name="l00884"></a>00884                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X += diffx/2;
<a name="l00885"></a>00885                 <span class="keywordflow">break</span>;
<a name="l00886"></a>00886             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>:
<a name="l00887"></a>00887                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X = <a class="code" href="namespaceirr_1_1core.html#ae46f57f03e9033c57c180fbe83b04cf2">core::round32</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X * fw);
<a name="l00888"></a>00888                 <span class="keywordflow">break</span>;
<a name="l00889"></a>00889         }
<a name="l00890"></a>00890 
<a name="l00891"></a>00891         <span class="keywordflow">switch</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">AlignTop</a>)
<a name="l00892"></a>00892         {
<a name="l00893"></a>00893             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da4bb8a01452727274e18047a872da1809" title="Aligned to parent&#39;s top or left side (default)">EGUIA_UPPERLEFT</a>:
<a name="l00894"></a>00894                 <span class="keywordflow">break</span>;
<a name="l00895"></a>00895             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da48b4d042b2d6cd63b876cef62c9cfb97" title="Aligned to parent&#39;s bottom or right side.">EGUIA_LOWERRIGHT</a>:
<a name="l00896"></a>00896                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y += diffy;
<a name="l00897"></a>00897                 <span class="keywordflow">break</span>;
<a name="l00898"></a>00898             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da9da0fb4bcb85d509bdfe018b720e4606" title="Aligned to the center of parent.">EGUIA_CENTER</a>:
<a name="l00899"></a>00899                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y += diffy/2;
<a name="l00900"></a>00900                 <span class="keywordflow">break</span>;
<a name="l00901"></a>00901             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>:
<a name="l00902"></a>00902                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y = <a class="code" href="namespaceirr_1_1core.html#ae46f57f03e9033c57c180fbe83b04cf2">core::round32</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y * fh);
<a name="l00903"></a>00903                 <span class="keywordflow">break</span>;
<a name="l00904"></a>00904         }
<a name="l00905"></a>00905 
<a name="l00906"></a>00906         <span class="keywordflow">switch</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a4204f1300a03ea597a48c5b4cfe134c0">AlignBottom</a>)
<a name="l00907"></a>00907         {
<a name="l00908"></a>00908             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da4bb8a01452727274e18047a872da1809" title="Aligned to parent&#39;s top or left side (default)">EGUIA_UPPERLEFT</a>:
<a name="l00909"></a>00909                 <span class="keywordflow">break</span>;
<a name="l00910"></a>00910             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da48b4d042b2d6cd63b876cef62c9cfb97" title="Aligned to parent&#39;s bottom or right side.">EGUIA_LOWERRIGHT</a>:
<a name="l00911"></a>00911                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y += diffy;
<a name="l00912"></a>00912                 <span class="keywordflow">break</span>;
<a name="l00913"></a>00913             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da9da0fb4bcb85d509bdfe018b720e4606" title="Aligned to the center of parent.">EGUIA_CENTER</a>:
<a name="l00914"></a>00914                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y += diffy/2;
<a name="l00915"></a>00915                 <span class="keywordflow">break</span>;
<a name="l00916"></a>00916             <span class="keywordflow">case</span> <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2da0fef10c3356089b2c18ba4e6b3f91246" title="Stretched to fit parent.">EGUIA_SCALE</a>:
<a name="l00917"></a>00917                 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y = <a class="code" href="namespaceirr_1_1core.html#ae46f57f03e9033c57c180fbe83b04cf2">core::round32</a>(<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y * fh);
<a name="l00918"></a>00918                 <span class="keywordflow">break</span>;
<a name="l00919"></a>00919         }
<a name="l00920"></a>00920 
<a name="l00921"></a>00921         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a> = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>;
<a name="l00922"></a>00922 
<a name="l00923"></a>00923         <span class="keyword">const</span> <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> w = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#ae313a3674095733348d5e8bcb75c49b4" title="Get width of rectangle.">getWidth</a>();
<a name="l00924"></a>00924         <span class="keyword">const</span> <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> h = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#a61b4192aa7aee5b55c288b1eac29d76b" title="Get height of rectangle.">getHeight</a>();
<a name="l00925"></a>00925 
<a name="l00926"></a>00926         <span class="comment">// make sure the desired rectangle is allowed</span>
<a name="l00927"></a>00927         <span class="keywordflow">if</span> (w &lt; (<a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a>)<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a>)
<a name="l00928"></a>00928             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X + <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a>;
<a name="l00929"></a>00929         <span class="keywordflow">if</span> (h &lt; (<a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a>)<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a>)
<a name="l00930"></a>00930             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y + <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a>;
<a name="l00931"></a>00931         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a> &amp;&amp; w &gt; (<a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a>)<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a>)
<a name="l00932"></a>00932             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.X = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.X + <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a0399dcc023c19d381d1a192596107db4" title="Width of the dimension.">Width</a>;
<a name="l00933"></a>00933         <span class="keywordflow">if</span> (<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a> &amp;&amp; h &gt; (<a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a>)<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a>)
<a name="l00934"></a>00934             <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#aa7c7e38bbff5f32992f69b36fc8cec1e" title="Lower right corner.">LowerRightCorner</a>.Y = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>.Y + <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>.<a class="code" href="classirr_1_1core_1_1dimension2d.html#a89b253523d31336c6b2a6a56dfd48a6b" title="Height of the dimension.">Height</a>;
<a name="l00935"></a>00935 
<a name="l00936"></a>00936         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#a45c7665e74aed626bb5c01729f206775" title="If the lower right corner of the rect is smaller then the upper left, the points are swapped...">repair</a>();
<a name="l00937"></a>00937 
<a name="l00938"></a>00938         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a05ba78d5e6f11c5a64d9da2fcfd4ded1" title="absolute rect of element">AbsoluteRect</a> = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a> + parentAbsolute.<a class="code" href="classirr_1_1core_1_1rect.html#abd47b3a4967b2153e58984d964af6573" title="Upper left corner.">UpperLeftCorner</a>;
<a name="l00939"></a>00939 
<a name="l00940"></a>00940         <span class="keywordflow">if</span> (!<a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>)
<a name="l00941"></a>00941             parentAbsoluteClip = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a05ba78d5e6f11c5a64d9da2fcfd4ded1" title="absolute rect of element">AbsoluteRect</a>;
<a name="l00942"></a>00942 
<a name="l00943"></a>00943         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1000af90afbbe92344fb000f5af5c8fb" title="absolute clipping rect of element">AbsoluteClippingRect</a> = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a05ba78d5e6f11c5a64d9da2fcfd4ded1" title="absolute rect of element">AbsoluteRect</a>;
<a name="l00944"></a>00944         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1000af90afbbe92344fb000f5af5c8fb" title="absolute clipping rect of element">AbsoluteClippingRect</a>.<a class="code" href="classirr_1_1core_1_1rect.html#a86645d45a8bed1a3539bba9865e93de4" title="Clips this rectangle with another one.">clipAgainst</a>(parentAbsoluteClip);
<a name="l00945"></a>00945 
<a name="l00946"></a>00946         <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a02f0934eefcc2191cfd665daf529ce0b" title="for calculating the difference when resizing parent">LastParentRect</a> = parentAbsolute;
<a name="l00947"></a>00947 
<a name="l00948"></a>00948         <span class="keywordflow">if</span> ( recursive )
<a name="l00949"></a>00949         {
<a name="l00950"></a>00950             <span class="comment">// update all children</span>
<a name="l00951"></a>00951             <a class="code" href="classirr_1_1core_1_1list_1_1_iterator.html" title="List iterator.">core::list&lt;IGUIElement*&gt;::Iterator</a> it = <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aebd05a0f5e5ead6e1d5b6e3973da8039" title="Gets first node.">begin</a>();
<a name="l00952"></a>00952             <span class="keywordflow">for</span> (; it != <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>.<a class="code" href="classirr_1_1core_1_1list.html#aa80509dac5224fa57cc548e39480a115" title="Gets end node.">end</a>(); ++it)
<a name="l00953"></a>00953             {
<a name="l00954"></a>00954                 (*it)-&gt;recalculateAbsolutePosition(recursive);
<a name="l00955"></a>00955             }
<a name="l00956"></a>00956         }
<a name="l00957"></a>00957     }
<a name="l00958"></a>00958 
<a name="l00959"></a>00959 <span class="keyword">protected</span>:
<a name="l00960"></a>00960 
<a name="l00962"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198">00962</a>     <a class="code" href="classirr_1_1core_1_1list.html">core::list&lt;IGUIElement*&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90a100897814da93cbbf45f12bbf0198" title="List of all children of this element.">Children</a>;
<a name="l00963"></a>00963 
<a name="l00965"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef">00965</a>     <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html" title="Base class of all GUI elements.">IGUIElement</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad769c75857869ecdfe0b021699d934ef" title="Pointer to the parent.">Parent</a>;
<a name="l00966"></a>00966 
<a name="l00968"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82">00968</a>     <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af093935f3d5f6c3efedddc8bcdf7fc82" title="relative rect of element">RelativeRect</a>;
<a name="l00969"></a>00969 
<a name="l00971"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a05ba78d5e6f11c5a64d9da2fcfd4ded1">00971</a>     <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a05ba78d5e6f11c5a64d9da2fcfd4ded1" title="absolute rect of element">AbsoluteRect</a>;
<a name="l00972"></a>00972 
<a name="l00974"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1000af90afbbe92344fb000f5af5c8fb">00974</a>     <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1000af90afbbe92344fb000f5af5c8fb" title="absolute clipping rect of element">AbsoluteClippingRect</a>;
<a name="l00975"></a>00975 
<a name="l00978"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">00978</a>     <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a>;
<a name="l00979"></a>00979 
<a name="l00981"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a02f0934eefcc2191cfd665daf529ce0b">00981</a>     <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a02f0934eefcc2191cfd665daf529ce0b" title="for calculating the difference when resizing parent">LastParentRect</a>;
<a name="l00982"></a>00982 
<a name="l00984"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49">00984</a>     <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;f32&gt;</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af8fc66b7504e9a073b02fc69a63f0b49" title="relative scale of the element inside its parent">ScaleRect</a>;
<a name="l00985"></a>00985 
<a name="l00987"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">00987</a>     <a class="code" href="classirr_1_1core_1_1dimension2d.html">core::dimension2du</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a1649a1c740c333bfb026397411c4da95" title="maximum and minimum size of the element">MaxSize</a>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a>;
<a name="l00988"></a>00988 
<a name="l00990"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad8dd8fdfb5be3e4cca1f1603cbcfaccf">00990</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad8dd8fdfb5be3e4cca1f1603cbcfaccf" title="is visible?">IsVisible</a>;
<a name="l00991"></a>00991 
<a name="l00993"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aba90d3c36184d3b6d62a8856a8734590">00993</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aba90d3c36184d3b6d62a8856a8734590" title="is enabled?">IsEnabled</a>;
<a name="l00994"></a>00994 
<a name="l00996"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a19f65c7004c5b36c848dad776aabc151">00996</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a19f65c7004c5b36c848dad776aabc151" title="is a part of a larger whole and should not be serialized?">IsSubElement</a>;
<a name="l00997"></a>00997 
<a name="l00999"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f9ad427fe094e0e8c49cf205c606526">00999</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8f9ad427fe094e0e8c49cf205c606526" title="does this element ignore its parent&#39;s clipping rectangle?">NoClip</a>;
<a name="l01000"></a>01000 
<a name="l01002"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af37f64cdacde0959e4993d01f555eba8">01002</a>     <a class="code" href="classirr_1_1core_1_1string.html">core::stringw</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af37f64cdacde0959e4993d01f555eba8" title="caption">Text</a>;
<a name="l01003"></a>01003 
<a name="l01005"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a422166b880f7829ec4e7b31322df9061">01005</a>     <a class="code" href="classirr_1_1core_1_1string.html">core::stringw</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a422166b880f7829ec4e7b31322df9061" title="tooltip">ToolTipText</a>;
<a name="l01006"></a>01006     
<a name="l01008"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#acdc67728b14f264b38d194853c5b5179">01008</a>     <a class="code" href="classirr_1_1core_1_1string.html">core::stringc</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#acdc67728b14f264b38d194853c5b5179" title="users can set this for identificating the element by string">Name</a>;
<a name="l01009"></a>01009 
<a name="l01011"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a73a25c6d25bd673d92210fc2d60d916e">01011</a>     <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a73a25c6d25bd673d92210fc2d60d916e" title="users can set this for identificating the element by integer">ID</a>;
<a name="l01012"></a>01012 
<a name="l01014"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af98dfbfc8776221b3a70ceea43fc4f9a">01014</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#af98dfbfc8776221b3a70ceea43fc4f9a" title="tab stop like in windows">IsTabStop</a>;
<a name="l01015"></a>01015 
<a name="l01017"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90fcd9d502bb0f6e8e5f2d091f54bafb">01017</a>     <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a90fcd9d502bb0f6e8e5f2d091f54bafb" title="tab order">TabOrder</a>;
<a name="l01018"></a>01018 
<a name="l01020"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8ea1b4a60653c8cc157e806e14ae0558">01020</a>     <span class="keywordtype">bool</span> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a8ea1b4a60653c8cc157e806e14ae0558" title="tab groups are containers like windows, use ctrl+tab to navigate">IsTabGroup</a>;
<a name="l01021"></a>01021 
<a name="l01023"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">01023</a>     <a class="code" href="namespaceirr_1_1gui.html#a19eb5fb40e67f108cb16aba922ddaa2d">EGUI_ALIGNMENT</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a09873f314caf3144ebf470ccaa22762a" title="tells the element how to act when its parent is resized">AlignLeft</a>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac0c5d7f233ebd05d535e9e9cf25f03fe">AlignRight</a>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">AlignTop</a>, <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a4204f1300a03ea597a48c5b4cfe134c0">AlignBottom</a>;
<a name="l01024"></a>01024 
<a name="l01026"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7ce2d55a64302d3df67a808a362f18bf">01026</a>     <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_environment.html" title="GUI Environment. Used as factory and manager of all other GUI elements.">IGUIEnvironment</a>* <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a7ce2d55a64302d3df67a808a362f18bf" title="GUI Environment.">Environment</a>;
<a name="l01027"></a>01027 
<a name="l01029"></a><a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad362880afa8ccb537b04032340e989e9">01029</a>     <a class="code" href="namespaceirr_1_1gui.html#ae4d66df0ecf4117cdbcf9f22404bd254" title="List of all basic Irrlicht GUI elements.">EGUI_ELEMENT_TYPE</a> <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad362880afa8ccb537b04032340e989e9" title="type of element">Type</a>;
<a name="l01030"></a>01030 };
<a name="l01031"></a>01031 
<a name="l01032"></a>01032 
<a name="l01033"></a>01033 } <span class="comment">// end namespace gui</span>
<a name="l01034"></a>01034 } <span class="comment">// end namespace irr</span>
<a name="l01035"></a>01035 
<a name="l01036"></a>01036 <span class="preprocessor">#endif</span>
<a name="l01037"></a>01037 <span class="preprocessor"></span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_i_g_u_i_element_8h.html">IGUIElement.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht 
Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:39 for Irrlicht 3D Engine by
<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>