aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/doc/html/_i_g_u_i_element_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/doc/html/_i_g_u_i_element_8h_source.html')
-rw-r--r--src/others/irrlicht-1.8.1/doc/html/_i_g_u_i_element_8h_source.html1030
1 files changed, 1030 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/doc/html/_i_g_u_i_element_8h_source.html b/src/others/irrlicht-1.8.1/doc/html/_i_g_u_i_element_8h_source.html
new file mode 100644
index 0000000..d304471
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/doc/html/_i_g_u_i_element_8h_source.html
@@ -0,0 +1,1030 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<title>Irrlicht 3D Engine: IGUIElement.h Source File</title>
6
7<link href="tabs.css" rel="stylesheet" type="text/css"/>
8<link href="doxygen.css" rel="stylesheet" type="text/css" />
9<link href="navtree.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="resize.js"></script>
12<script type="text/javascript" src="navtree.js"></script>
13<script type="text/javascript">
14 $(document).ready(initResizable);
15</script>
16<link href="search/search.css" rel="stylesheet" type="text/css"/>
17<script type="text/javascript" src="search/search.js"></script>
18<script type="text/javascript">
19 $(document).ready(function() { searchBox.OnSelectItem(0); });
20</script>
21
22</head>
23<body>
24<div id="top"><!-- do not remove this div! -->
25
26
27<div id="titlearea">
28<table cellspacing="0" cellpadding="0">
29 <tbody>
30 <tr style="height: 56px;">
31
32 <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td>
33
34
35 <td style="padding-left: 0.5em;">
36 <div id="projectname">Irrlicht 3D Engine
37
38 </div>
39
40 </td>
41
42
43
44
45 <td> <div id="MSearchBox" class="MSearchBoxInactive">
46 <span class="left">
47 <img id="MSearchSelect" src="search/mag_sel.png"
48 onmouseover="return searchBox.OnSearchSelectShow()"
49 onmouseout="return searchBox.OnSearchSelectHide()"
50 alt=""/>
51 <input type="text" id="MSearchField" value="Search" accesskey="S"
52 onfocus="searchBox.OnSearchFieldFocus(true)"
53 onblur="searchBox.OnSearchFieldFocus(false)"
54 onkeyup="searchBox.OnSearchFieldChange(event)"/>
55 </span><span class="right">
56 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
57 </span>
58 </div>
59</td>
60
61
62 </tr>
63 </tbody>
64</table>
65</div>
66
67<!-- Generated by Doxygen 1.7.5.1 -->
68<script type="text/javascript">
69var searchBox = new SearchBox("searchBox", "search",false,'Search');
70</script>
71<script type="text/javascript" src="dynsections.js"></script>
72</div>
73<div id="side-nav" class="ui-resizable side-nav-resizable">
74 <div id="nav-tree">
75 <div id="nav-tree-contents">
76 </div>
77 </div>
78 <div id="splitbar" style="-moz-user-select:none;"
79 class="ui-resizable-handle">
80 </div>
81</div>
82<script type="text/javascript">
83 initNavTree('_i_g_u_i_element_8h.html','');
84</script>
85<div id="doc-content">
86<div class="header">
87 <div class="headertitle">
88<div class="title">IGUIElement.h</div> </div>
89</div>
90<div class="contents">
91<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>
92<a name="l00002"></a>00002 <span class="comment">// This file is part of the &quot;Irrlicht Engine&quot;.</span>
93<a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h</span>
94<a name="l00004"></a>00004
95<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __I_GUI_ELEMENT_H_INCLUDED__</span>
96<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __I_GUI_ELEMENT_H_INCLUDED__</span>
97<a name="l00007"></a>00007 <span class="preprocessor"></span>
98<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>
99<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="irr_list_8h.html">irrList.h</a>&quot;</span>
100<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="rect_8h.html">rect.h</a>&quot;</span>
101<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="irr_string_8h.html">irrString.h</a>&quot;</span>
102<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="_i_event_receiver_8h.html">IEventReceiver.h</a>&quot;</span>
103<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>
104<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>
105<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;<a class="code" href="_i_attributes_8h.html">IAttributes.h</a>&quot;</span>
106<a name="l00016"></a>00016
107<a name="l00017"></a>00017 <span class="keyword">namespace </span>irr
108<a name="l00018"></a>00018 {
109<a name="l00019"></a>00019 <span class="keyword">namespace </span>gui
110<a name="l00020"></a>00020 {
111<a name="l00021"></a>00021
112<a name="l00022"></a>00022 <span class="keyword">class </span>IGUIEnvironment;
113<a name="l00023"></a>00023
114<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>
115<a name="l00026"></a>00026 {
116<a name="l00027"></a>00027 <span class="keyword">public</span>:
117<a name="l00028"></a>00028
118<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,
119<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)
120<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),
121<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),
122<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),
123<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),
124<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>),
125<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)
126<a name="l00038"></a>00038 {
127<a name="l00039"></a>00039 <span class="preprocessor"> #ifdef _DEBUG</span>
128<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>);
129<a name="l00041"></a>00041 <span class="preprocessor"> #endif</span>
130<a name="l00042"></a>00042 <span class="preprocessor"></span>
131<a name="l00043"></a>00043 <span class="comment">// if we were given a parent to attach to</span>
132<a name="l00044"></a>00044 <span class="keywordflow">if</span> (parent)
133<a name="l00045"></a>00045 {
134<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>);
135<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>);
136<a name="l00048"></a>00048 }
137<a name="l00049"></a>00049 }
138<a name="l00050"></a>00050
139<a name="l00051"></a>00051
140<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>()
141<a name="l00054"></a>00054 {
142<a name="l00055"></a>00055 <span class="comment">// delete all children</span>
143<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>();
144<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)
145<a name="l00058"></a>00058 {
146<a name="l00059"></a>00059 (*it)-&gt;Parent = 0;
147<a name="l00060"></a>00060 (*it)-&gt;drop();
148<a name="l00061"></a>00061 }
149<a name="l00062"></a>00062 }
150<a name="l00063"></a>00063
151<a name="l00064"></a>00064
152<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>
153<a name="l00067"></a>00067 <span class="keyword"> </span>{
154<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>;
155<a name="l00069"></a>00069 }
156<a name="l00070"></a>00070
157<a name="l00071"></a>00071
158<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>
159<a name="l00074"></a>00074 <span class="keyword"> </span>{
160<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>;
161<a name="l00076"></a>00076 }
162<a name="l00077"></a>00077
163<a name="l00078"></a>00078
164<a name="l00080"></a>00080
165<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)
166<a name="l00082"></a>00082 {
167<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>)
168<a name="l00084"></a>00084 {
169<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>();
170<a name="l00086"></a>00086
171<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));
172<a name="l00088"></a>00088
173<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>)
174<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>;
175<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>)
176<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>;
177<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>)
178<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>;
179<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>)
180<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>;
181<a name="l00097"></a>00097 }
182<a name="l00098"></a>00098
183<a name="l00099"></a>00099 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ad85b5d446a0dfb2fa46ee3753e664cd2">DesiredRect</a> = r;
184<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>();
185<a name="l00101"></a>00101 }
186<a name="l00102"></a>00102
187<a name="l00104"></a>00104
188<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)
189<a name="l00106"></a>00106 {
190<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>();
191<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>,
192<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>);
193<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);
194<a name="l00111"></a>00111 }
195<a name="l00112"></a>00112
196<a name="l00113"></a>00113
197<a name="l00115"></a>00115
198<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)
199<a name="l00120"></a>00120 {
200<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>)
201<a name="l00122"></a>00122 <span class="keywordflow">return</span>;
202<a name="l00123"></a>00123
203<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>();
204<a name="l00125"></a>00125
205<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>(
206<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),
207<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),
208<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),
209<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));
210<a name="l00131"></a>00131
211<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;
212<a name="l00133"></a>00133
213<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>();
214<a name="l00135"></a>00135 }
215<a name="l00136"></a>00136
216<a name="l00137"></a>00137
217<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>
218<a name="l00140"></a>00140 <span class="keyword"> </span>{
219<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>;
220<a name="l00142"></a>00142 }
221<a name="l00143"></a>00143
222<a name="l00144"></a>00144
223<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>
224<a name="l00147"></a>00147 <span class="keyword"> </span>{
225<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>;
226<a name="l00149"></a>00149 }
227<a name="l00150"></a>00150
228<a name="l00151"></a>00151
229<a name="l00153"></a>00153
230<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)
231<a name="l00155"></a>00155 {
232<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;
233<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>();
234<a name="l00158"></a>00158 }
235<a name="l00159"></a>00159
236<a name="l00160"></a>00160
237<a name="l00162"></a>00162
238<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>
239<a name="l00164"></a>00164 <span class="keyword"> </span>{
240<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>;
241<a name="l00166"></a>00166 }
242<a name="l00167"></a>00167
243<a name="l00168"></a>00168
244<a name="l00170"></a>00170
245<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)
246<a name="l00172"></a>00172 {
247<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;
248<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>();
249<a name="l00175"></a>00175 }
250<a name="l00176"></a>00176
251<a name="l00177"></a>00177
252<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)
253<a name="l00180"></a>00180 {
254<a name="l00181"></a>00181 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#aa604d54c9ebcae3b1bf053411a5cf60f">MinSize</a> = size;
255<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)
256<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;
257<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)
258<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;
259<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>();
260<a name="l00187"></a>00187 }
261<a name="l00188"></a>00188
262<a name="l00189"></a>00189
263<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)
264<a name="l00192"></a>00192 {
265<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;
266<a name="l00194"></a>00194 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#ac0c5d7f233ebd05d535e9e9cf25f03fe">AlignRight</a> = right;
267<a name="l00195"></a>00195 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abf9113bebfcde09e7f4a82269d6e2da1">AlignTop</a> = top;
268<a name="l00196"></a>00196 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#a4204f1300a03ea597a48c5b4cfe134c0">AlignBottom</a> = bottom;
269<a name="l00197"></a>00197
270<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>)
271<a name="l00199"></a>00199 {
272<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>());
273<a name="l00201"></a>00201
274<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);
275<a name="l00203"></a>00203
276<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>)
277<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;
278<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>)
279<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;
280<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>)
281<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;
282<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>)
283<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;
284<a name="l00212"></a>00212 }
285<a name="l00213"></a>00213 }
286<a name="l00214"></a>00214
287<a name="l00215"></a>00215
288<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>()
289<a name="l00218"></a>00218 {
290<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>);
291<a name="l00220"></a>00220
292<a name="l00221"></a>00221 <span class="comment">// update all children</span>
293<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>();
294<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)
295<a name="l00224"></a>00224 {
296<a name="l00225"></a>00225 (*it)-&gt;updateAbsolutePosition();
297<a name="l00226"></a>00226 }
298<a name="l00227"></a>00227 }
299<a name="l00228"></a>00228
300<a name="l00229"></a>00229
301<a name="l00231"></a>00231
302<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)
303<a name="l00243"></a>00243 {
304<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;
305<a name="l00245"></a>00245
306<a name="l00246"></a>00246 <span class="comment">// we have to search from back to front, because later children</span>
307<a name="l00247"></a>00247 <span class="comment">// might be drawn over the top of earlier ones.</span>
308<a name="l00248"></a>00248
309<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>();
310<a name="l00250"></a>00250
311<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>())
312<a name="l00252"></a>00252 {
313<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>())
314<a name="l00254"></a>00254 {
315<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);
316<a name="l00256"></a>00256 <span class="keywordflow">if</span> (target)
317<a name="l00257"></a>00257 <span class="keywordflow">return</span> target;
318<a name="l00258"></a>00258
319<a name="l00259"></a>00259 --it;
320<a name="l00260"></a>00260 }
321<a name="l00261"></a>00261 }
322<a name="l00262"></a>00262
323<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))
324<a name="l00264"></a>00264 target = <span class="keyword">this</span>;
325<a name="l00265"></a>00265
326<a name="l00266"></a>00266 <span class="keywordflow">return</span> target;
327<a name="l00267"></a>00267 }
328<a name="l00268"></a>00268
329<a name="l00269"></a>00269
330<a name="l00271"></a>00271
331<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>
332<a name="l00273"></a>00273 <span class="keyword"> </span>{
333<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);
334<a name="l00275"></a>00275 }
335<a name="l00276"></a>00276
336<a name="l00277"></a>00277
337<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)
338<a name="l00280"></a>00280 {
339<a name="l00281"></a>00281 <a class="code" href="classirr_1_1gui_1_1_i_g_u_i_element.html#abbd5e7871db1672233bd47ea4ad1f305">addChildToEnd</a>(child);
340<a name="l00282"></a>00282 <span class="keywordflow">if</span> (child)
341<a name="l00283"></a>00283 {
342<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>();
343<a name="l00285"></a>00285 }
344<a name="l00286"></a>00286 }
345<a name="l00287"></a>00287
346<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)
347<a name="l00290"></a>00290 {
348<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>();
349<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)
350<a name="l00293"></a>00293 <span class="keywordflow">if</span> ((*it) == child)
351<a name="l00294"></a>00294 {
352<a name="l00295"></a>00295 (*it)-&gt;Parent = 0;
353<a name="l00296"></a>00296 (*it)-&gt;drop();
354<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);
355<a name="l00298"></a>00298 <span class="keywordflow">return</span>;
356<a name="l00299"></a>00299 }
357<a name="l00300"></a>00300 }
358<a name="l00301"></a>00301
359<a name="l00302"></a>00302
360<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>()
361<a name="l00305"></a>00305 {
362<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>)
363<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>);
364<a name="l00308"></a>00308 }
365<a name="l00309"></a>00309
366<a name="l00310"></a>00310
367<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>()
368<a name="l00313"></a>00313 {
369<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>() )
370<a name="l00315"></a>00315 {
371<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>();
372<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)
373<a name="l00318"></a>00318 (*it)-&gt;draw();
374<a name="l00319"></a>00319 }
375<a name="l00320"></a>00320 }
376<a name="l00321"></a>00321
377<a name="l00322"></a>00322
378<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)
379<a name="l00325"></a>00325 {
380<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>() )
381<a name="l00327"></a>00327 {
382<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>();
383<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)
384<a name="l00330"></a>00330 (*it)-&gt;OnPostRender( timeMs );
385<a name="l00331"></a>00331 }
386<a name="l00332"></a>00332 }
387<a name="l00333"></a>00333
388<a name="l00334"></a>00334
389<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)
390<a name="l00337"></a>00337 {
391<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);
392<a name="l00339"></a>00339 }
393<a name="l00340"></a>00340
394<a name="l00341"></a>00341
395<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>
396<a name="l00344"></a>00344 <span class="keyword"> </span>{
397<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>;
398<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>;
399<a name="l00347"></a>00347 }
400<a name="l00348"></a>00348
401<a name="l00349"></a>00349
402<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)
403<a name="l00352"></a>00352 {
404<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;
405<a name="l00354"></a>00354 }
406<a name="l00355"></a>00355
407<a name="l00356"></a>00356
408<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>
409<a name="l00359"></a>00359 <span class="keyword"> </span>{
410<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>;
411<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>;
412<a name="l00362"></a>00362 }
413<a name="l00363"></a>00363
414<a name="l00364"></a>00364
415<a name="l00366"></a>00366
416<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)
417<a name="l00369"></a>00369 {
418<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;
419<a name="l00371"></a>00371 }
420<a name="l00372"></a>00372
421<a name="l00373"></a>00373
422<a name="l00375"></a>00375
423<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)
424<a name="l00378"></a>00378 {
425<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;
426<a name="l00380"></a>00380 }
427<a name="l00381"></a>00381
428<a name="l00382"></a>00382
429<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>
430<a name="l00385"></a>00385 <span class="keyword"> </span>{
431<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>;
432<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>;
433<a name="l00388"></a>00388 }
434<a name="l00389"></a>00389
435<a name="l00390"></a>00390
436<a name="l00392"></a>00392
437<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)
438<a name="l00395"></a>00395 {
439<a name="l00396"></a>00396 <span class="comment">// negative = autonumber</span>
440<a name="l00397"></a>00397 <span class="keywordflow">if</span> (index &lt; 0)
441<a name="l00398"></a>00398 {
442<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;
443<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>();
444<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>)
445<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>;
446<a name="l00403"></a>00403
447<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;
448<a name="l00405"></a>00405 <span class="keywordflow">if</span> (el)
449<a name="l00406"></a>00406 {
450<a name="l00407"></a>00407 <span class="comment">// find the highest element number</span>
451<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>);
452<a name="l00409"></a>00409 <span class="keywordflow">if</span> (first)
453<a name="l00410"></a>00410 {
454<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;
455<a name="l00412"></a>00412 }
456<a name="l00413"></a>00413 }
457<a name="l00414"></a>00414
458<a name="l00415"></a>00415 }
459<a name="l00416"></a>00416 <span class="keywordflow">else</span>
460<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;
461<a name="l00418"></a>00418 }
462<a name="l00419"></a>00419
463<a name="l00420"></a>00420
464<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>
465<a name="l00423"></a>00423 <span class="keyword"> </span>{
466<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>;
467<a name="l00425"></a>00425 }
468<a name="l00426"></a>00426
469<a name="l00427"></a>00427
470<a name="l00429"></a>00429
471<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)
472<a name="l00432"></a>00432 {
473<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;
474<a name="l00434"></a>00434 }
475<a name="l00435"></a>00435
476<a name="l00436"></a>00436
477<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>
478<a name="l00439"></a>00439 <span class="keyword"> </span>{
479<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>;
480<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>;
481<a name="l00442"></a>00442 }
482<a name="l00443"></a>00443
483<a name="l00444"></a>00444
484<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>()
485<a name="l00447"></a>00447 {
486<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>;
487<a name="l00449"></a>00449
488<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>())
489<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>();
490<a name="l00452"></a>00452
491<a name="l00453"></a>00453 <span class="keywordflow">return</span> ret;
492<a name="l00454"></a>00454 }
493<a name="l00455"></a>00455
494<a name="l00456"></a>00456
495<a name="l00458"></a>00458
496<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>
497<a name="l00463"></a>00463 <span class="keyword"> </span>{
498<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>() )
499<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>();
500<a name="l00466"></a>00466
501<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>;
502<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>;
503<a name="l00469"></a>00469 }
504<a name="l00470"></a>00470
505<a name="l00471"></a>00471
506<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)
507<a name="l00474"></a>00474 {
508<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;
509<a name="l00476"></a>00476 }
510<a name="l00477"></a>00477
511<a name="l00478"></a>00478
512<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)
513<a name="l00481"></a>00481 {
514<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;
515<a name="l00483"></a>00483 }
516<a name="l00484"></a>00484
517<a name="l00485"></a>00485
518<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>
519<a name="l00488"></a>00488 <span class="keyword"> </span>{
520<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>();
521<a name="l00490"></a>00490 }
522<a name="l00491"></a>00491
523<a name="l00492"></a>00492
524<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)
525<a name="l00495"></a>00495 {
526<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;
527<a name="l00497"></a>00497 }
528<a name="l00498"></a>00498
529<a name="l00499"></a>00499
530<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>
531<a name="l00502"></a>00502 <span class="keyword"> </span>{
532<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>;
533<a name="l00504"></a>00504 }
534<a name="l00505"></a>00505
535<a name="l00506"></a>00506
536<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>
537<a name="l00509"></a>00509 <span class="keyword"> </span>{
538<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>;
539<a name="l00511"></a>00511 }
540<a name="l00512"></a>00512
541<a name="l00513"></a>00513
542<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>)
543<a name="l00516"></a>00516 {
544<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;
545<a name="l00518"></a>00518 }
546<a name="l00519"></a>00519
547<a name="l00520"></a>00520
548<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)
549<a name="l00523"></a>00523 {
550<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>;
551<a name="l00525"></a>00525 }
552<a name="l00526"></a>00526
553<a name="l00527"></a>00527
554<a name="l00529"></a>00529
555<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)
556<a name="l00531"></a>00531 {
557<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>();
558<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)
559<a name="l00534"></a>00534 {
560<a name="l00535"></a>00535 <span class="keywordflow">if</span> (element == (*it))
561<a name="l00536"></a>00536 {
562<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);
563<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);
564<a name="l00539"></a>00539 <span class="keywordflow">return</span> <span class="keyword">true</span>;
565<a name="l00540"></a>00540 }
566<a name="l00541"></a>00541 }
567<a name="l00542"></a>00542
568<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>;
569<a name="l00544"></a>00544 <span class="keywordflow">return</span> <span class="keyword">false</span>;
570<a name="l00545"></a>00545 }
571<a name="l00546"></a>00546
572<a name="l00547"></a>00547
573<a name="l00549"></a>00549
574<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)
575<a name="l00551"></a>00551 {
576<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>();
577<a name="l00553"></a>00553 <span class="keywordflow">if</span> (child == (*it)) <span class="comment">// already there</span>
578<a name="l00554"></a>00554 <span class="keywordflow">return</span> <span class="keyword">true</span>;
579<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)
580<a name="l00556"></a>00556 {
581<a name="l00557"></a>00557 <span class="keywordflow">if</span> (child == (*it))
582<a name="l00558"></a>00558 {
583<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);
584<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);
585<a name="l00561"></a>00561 <span class="keywordflow">return</span> <span class="keyword">true</span>;
586<a name="l00562"></a>00562 }
587<a name="l00563"></a>00563 }
588<a name="l00564"></a>00564
589<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>;
590<a name="l00566"></a>00566 <span class="keywordflow">return</span> <span class="keyword">false</span>;
591<a name="l00567"></a>00567 }
592<a name="l00568"></a>00568
593<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>
594<a name="l00571"></a>00571 <span class="keyword"> </span>{
595<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>;
596<a name="l00573"></a>00573 }
597<a name="l00574"></a>00574
598<a name="l00575"></a>00575
599<a name="l00577"></a>00577
600<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>
601<a name="l00584"></a>00584 <span class="keyword"> </span>{
602<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;
603<a name="l00586"></a>00586
604<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>();
605<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)
606<a name="l00589"></a>00589 {
607<a name="l00590"></a>00590 <span class="keywordflow">if</span> ((*it)-&gt;getID() == id)
608<a name="l00591"></a>00591 <span class="keywordflow">return</span> (*it);
609<a name="l00592"></a>00592
610<a name="l00593"></a>00593 <span class="keywordflow">if</span> (searchchildren)
611<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>);
612<a name="l00595"></a>00595
613<a name="l00596"></a>00596 <span class="keywordflow">if</span> (e)
614<a name="l00597"></a>00597 <span class="keywordflow">return</span> e;
615<a name="l00598"></a>00598 }
616<a name="l00599"></a>00599
617<a name="l00600"></a>00600 <span class="keywordflow">return</span> e;
618<a name="l00601"></a>00601 }
619<a name="l00602"></a>00602
620<a name="l00603"></a>00603
621<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>
622<a name="l00607"></a>00607 <span class="keyword"> </span>{
623<a name="l00608"></a>00608 <span class="keywordflow">if</span> (!child)
624<a name="l00609"></a>00609 <span class="keywordflow">return</span> <span class="keyword">false</span>;
625<a name="l00610"></a>00610 <span class="keywordflow">do</span>
626<a name="l00611"></a>00611 {
627<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>)
628<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>;
629<a name="l00614"></a>00614
630<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>);
631<a name="l00616"></a>00616
632<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>;
633<a name="l00618"></a>00618 <span class="keywordflow">return</span> child == <span class="keyword">this</span>;
634<a name="l00619"></a>00619 }
635<a name="l00620"></a>00620
636<a name="l00621"></a>00621
637<a name="l00623"></a>00623
638<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,
639<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>
640<a name="l00632"></a>00632 <span class="keyword"> </span>{
641<a name="l00633"></a>00633 <span class="comment">// we&#39;ll stop searching if we find this number</span>
642<a name="l00634"></a>00634 <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> wanted = startOrder + ( reverse ? -1 : 1 );
643<a name="l00635"></a>00635 <span class="keywordflow">if</span> (wanted==-2)
644<a name="l00636"></a>00636 wanted = 1073741824; <span class="comment">// maximum s32</span>
645<a name="l00637"></a>00637
646<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>();
647<a name="l00639"></a>00639
648<a name="l00640"></a>00640 <a class="code" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6" title="32 bit signed variable.">s32</a> closestOrder, currentOrder;
649<a name="l00641"></a>00641
650<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>())
651<a name="l00643"></a>00643 {
652<a name="l00644"></a>00644 <span class="comment">// ignore invisible elements and their children</span>
653<a name="l00645"></a>00645 <span class="keywordflow">if</span> ( ( (*it)-&gt;isVisible() || includeInvisible ) &amp;&amp;
654<a name="l00646"></a>00646 (group == <span class="keyword">true</span> || (*it)-&gt;isTabGroup() == <span class="keyword">false</span>) )
655<a name="l00647"></a>00647 {
656<a name="l00648"></a>00648 <span class="comment">// only check tab stops and those with the same group status</span>
657<a name="l00649"></a>00649 <span class="keywordflow">if</span> ((*it)-&gt;isTabStop() &amp;&amp; ((*it)-&gt;isTabGroup() == group))
658<a name="l00650"></a>00650 {
659<a name="l00651"></a>00651 currentOrder = (*it)-&gt;getTabOrder();
660<a name="l00652"></a>00652
661<a name="l00653"></a>00653 <span class="comment">// is this what we&#39;re looking for?</span>
662<a name="l00654"></a>00654 <span class="keywordflow">if</span> (currentOrder == wanted)
663<a name="l00655"></a>00655 {
664<a name="l00656"></a>00656 closest = *it;
665<a name="l00657"></a>00657 <span class="keywordflow">return</span> <span class="keyword">true</span>;
666<a name="l00658"></a>00658 }
667<a name="l00659"></a>00659
668<a name="l00660"></a>00660 <span class="comment">// is it closer than the current closest?</span>
669<a name="l00661"></a>00661 <span class="keywordflow">if</span> (closest)
670<a name="l00662"></a>00662 {
671<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>();
672<a name="l00664"></a>00664 <span class="keywordflow">if</span> ( ( reverse &amp;&amp; currentOrder &gt; closestOrder &amp;&amp; currentOrder &lt; startOrder)
673<a name="l00665"></a>00665 ||(!reverse &amp;&amp; currentOrder &lt; closestOrder &amp;&amp; currentOrder &gt; startOrder))
674<a name="l00666"></a>00666 {
675<a name="l00667"></a>00667 closest = *it;
676<a name="l00668"></a>00668 }
677<a name="l00669"></a>00669 }
678<a name="l00670"></a>00670 <span class="keywordflow">else</span>
679<a name="l00671"></a>00671 <span class="keywordflow">if</span> ( (reverse &amp;&amp; currentOrder &lt; startOrder) || (!reverse &amp;&amp; currentOrder &gt; startOrder) )
680<a name="l00672"></a>00672 {
681<a name="l00673"></a>00673 closest = *it;
682<a name="l00674"></a>00674 }
683<a name="l00675"></a>00675
684<a name="l00676"></a>00676 <span class="comment">// is it before the current first?</span>
685<a name="l00677"></a>00677 <span class="keywordflow">if</span> (first)
686<a name="l00678"></a>00678 {
687<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>();
688<a name="l00680"></a>00680
689<a name="l00681"></a>00681 <span class="keywordflow">if</span> ( (reverse &amp;&amp; closestOrder &lt; currentOrder) || (!reverse &amp;&amp; closestOrder &gt; currentOrder) )
690<a name="l00682"></a>00682 {
691<a name="l00683"></a>00683 first = *it;
692<a name="l00684"></a>00684 }
693<a name="l00685"></a>00685 }
694<a name="l00686"></a>00686 <span class="keywordflow">else</span>
695<a name="l00687"></a>00687 {
696<a name="l00688"></a>00688 first = *it;
697<a name="l00689"></a>00689 }
698<a name="l00690"></a>00690 }
699<a name="l00691"></a>00691 <span class="comment">// search within children</span>
700<a name="l00692"></a>00692 <span class="keywordflow">if</span> ((*it)-&gt;getNextElement(startOrder, reverse, group, first, closest))
701<a name="l00693"></a>00693 {
702<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>;
703<a name="l00695"></a>00695 <span class="keywordflow">return</span> <span class="keyword">true</span>;
704<a name="l00696"></a>00696 }
705<a name="l00697"></a>00697 }
706<a name="l00698"></a>00698 ++it;
707<a name="l00699"></a>00699 }
708<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>;
709<a name="l00701"></a>00701 <span class="keywordflow">return</span> <span class="keyword">false</span>;
710<a name="l00702"></a>00702 }
711<a name="l00703"></a>00703
712<a name="l00704"></a>00704
713<a name="l00706"></a>00706
714<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>
715<a name="l00711"></a>00711 <span class="keyword"> </span>{
716<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>;
717<a name="l00713"></a>00713 }
718<a name="l00714"></a>00714
719<a name="l00716"></a>00716
720<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>
721<a name="l00725"></a>00725 <span class="keyword"> </span>{
722<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>;
723<a name="l00727"></a>00727 }
724<a name="l00728"></a>00728
725<a name="l00729"></a>00729
726<a name="l00731"></a>00731
727<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>
728<a name="l00734"></a>00734 <span class="keyword"> </span>{
729<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>];
730<a name="l00736"></a>00736 }
731<a name="l00737"></a>00737
732<a name="l00739"></a>00739
733<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>
734<a name="l00741"></a>00741 <span class="keyword"> </span>{
735<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>();
736<a name="l00743"></a>00743 }
737<a name="l00744"></a>00744
738<a name="l00745"></a>00745
739<a name="l00747"></a>00747
740<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)
741<a name="l00749"></a>00749 {
742<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;
743<a name="l00751"></a>00751 }
744<a name="l00752"></a>00752
745<a name="l00753"></a>00753
746<a name="l00755"></a>00755
747<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)
748<a name="l00757"></a>00757 {
749<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;
750<a name="l00759"></a>00759 }
751<a name="l00760"></a>00760
752<a name="l00761"></a>00761
753<a name="l00763"></a>00763
754<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>
755<a name="l00766"></a>00766 <span class="keyword"> </span>{
756<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>());
757<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> );
758<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>());
759<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>);
760<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>));
761<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>));
762<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>);
763<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>);
764<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>);
765<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>);
766<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>);
767<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>);
768<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>);
769<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>);
770<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>);
771<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>);
772<a name="l00783"></a>00783 }
773<a name="l00784"></a>00784
774<a name="l00785"></a>00785
775<a name="l00787"></a>00787
776<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)
777<a name="l00790"></a>00790 {
778<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>));
779<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>));
780<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>());
781<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>));
782<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>));
783<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>);
784<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>);
785<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>);
786<a name="l00799"></a>00799
787<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>);
788<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>));
789<a name="l00802"></a>00802
790<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>);
791<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>));
792<a name="l00805"></a>00805
793<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>),
794<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>),
795<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>),
796<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>));
797<a name="l00810"></a>00810
798<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>));
799<a name="l00812"></a>00812
800<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>));
801<a name="l00814"></a>00814 }
802<a name="l00815"></a>00815
803<a name="l00816"></a>00816 <span class="keyword">protected</span>:
804<a name="l00817"></a>00817 <span class="comment">// not virtual because needed in constructor</span>
805<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)
806<a name="l00819"></a>00819 {
807<a name="l00820"></a>00820 <span class="keywordflow">if</span> (child)
808<a name="l00821"></a>00821 {
809<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>
810<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>
811<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>();
812<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>;
813<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);
814<a name="l00827"></a>00827 }
815<a name="l00828"></a>00828 }
816<a name="l00829"></a>00829
817<a name="l00830"></a>00830 <span class="comment">// not virtual because needed in constructor</span>
818<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)
819<a name="l00832"></a>00832 {
820<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);
821<a name="l00834"></a>00834 <a class="code" href="classirr_1_1core_1_1rect.html">core::rect&lt;s32&gt;</a> parentAbsoluteClip;
822<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;
823<a name="l00836"></a>00836
824<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>)
825<a name="l00838"></a>00838 {
826<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>;
827<a name="l00840"></a>00840
828<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>)
829<a name="l00842"></a>00842 {
830<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>;
831<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>)
832<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>;
833<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>;
834<a name="l00847"></a>00847 }
835<a name="l00848"></a>00848 <span class="keywordflow">else</span>
836<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>;
837<a name="l00850"></a>00850 }
838<a name="l00851"></a>00851
839<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>();
840<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>();
841<a name="l00854"></a>00854
842<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>)
843<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>();
844<a name="l00857"></a>00857
845<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>)
846<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>();
847<a name="l00860"></a>00860
848<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>)
849<a name="l00862"></a>00862 {
850<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>:
851<a name="l00864"></a>00864 <span class="keywordflow">break</span>;
852<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>:
853<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;
854<a name="l00867"></a>00867 <span class="keywordflow">break</span>;
855<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>:
856<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;
857<a name="l00870"></a>00870 <span class="keywordflow">break</span>;
858<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>:
859<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);
860<a name="l00873"></a>00873 <span class="keywordflow">break</span>;
861<a name="l00874"></a>00874 }
862<a name="l00875"></a>00875
863<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>)
864<a name="l00877"></a>00877 {
865<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>:
866<a name="l00879"></a>00879 <span class="keywordflow">break</span>;
867<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>:
868<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;
869<a name="l00882"></a>00882 <span class="keywordflow">break</span>;
870<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>:
871<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;
872<a name="l00885"></a>00885 <span class="keywordflow">break</span>;
873<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>:
874<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);
875<a name="l00888"></a>00888 <span class="keywordflow">break</span>;
876<a name="l00889"></a>00889 }
877<a name="l00890"></a>00890
878<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>)
879<a name="l00892"></a>00892 {
880<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>:
881<a name="l00894"></a>00894 <span class="keywordflow">break</span>;
882<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>:
883<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;
884<a name="l00897"></a>00897 <span class="keywordflow">break</span>;
885<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>:
886<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;
887<a name="l00900"></a>00900 <span class="keywordflow">break</span>;
888<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>:
889<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);
890<a name="l00903"></a>00903 <span class="keywordflow">break</span>;
891<a name="l00904"></a>00904 }
892<a name="l00905"></a>00905
893<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>)
894<a name="l00907"></a>00907 {
895<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>:
896<a name="l00909"></a>00909 <span class="keywordflow">break</span>;
897<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>:
898<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;
899<a name="l00912"></a>00912 <span class="keywordflow">break</span>;
900<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>:
901<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;
902<a name="l00915"></a>00915 <span class="keywordflow">break</span>;
903<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>:
904<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);
905<a name="l00918"></a>00918 <span class="keywordflow">break</span>;
906<a name="l00919"></a>00919 }
907<a name="l00920"></a>00920
908<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>;
909<a name="l00922"></a>00922
910<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>();
911<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>();
912<a name="l00925"></a>00925
913<a name="l00926"></a>00926 <span class="comment">// make sure the desired rectangle is allowed</span>
914<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>)
915<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>;
916<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>)
917<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>;
918<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>)
919<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>;
920<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>)
921<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>;
922<a name="l00935"></a>00935
923<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>();
924<a name="l00937"></a>00937
925<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>;
926<a name="l00939"></a>00939
927<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>)
928<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>;
929<a name="l00942"></a>00942
930<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>;
931<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);
932<a name="l00945"></a>00945
933<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;
934<a name="l00947"></a>00947
935<a name="l00948"></a>00948 <span class="keywordflow">if</span> ( recursive )
936<a name="l00949"></a>00949 {
937<a name="l00950"></a>00950 <span class="comment">// update all children</span>
938<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>();
939<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)
940<a name="l00953"></a>00953 {
941<a name="l00954"></a>00954 (*it)-&gt;recalculateAbsolutePosition(recursive);
942<a name="l00955"></a>00955 }
943<a name="l00956"></a>00956 }
944<a name="l00957"></a>00957 }
945<a name="l00958"></a>00958
946<a name="l00959"></a>00959 <span class="keyword">protected</span>:
947<a name="l00960"></a>00960
948<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>;
949<a name="l00963"></a>00963
950<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>;
951<a name="l00966"></a>00966
952<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>;
953<a name="l00969"></a>00969
954<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>;
955<a name="l00972"></a>00972
956<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>;
957<a name="l00975"></a>00975
958<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>;
959<a name="l00979"></a>00979
960<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>;
961<a name="l00982"></a>00982
962<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>;
963<a name="l00985"></a>00985
964<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>;
965<a name="l00988"></a>00988
966<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>;
967<a name="l00991"></a>00991
968<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>;
969<a name="l00994"></a>00994
970<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>;
971<a name="l00997"></a>00997
972<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>;
973<a name="l01000"></a>01000
974<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>;
975<a name="l01003"></a>01003
976<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>;
977<a name="l01006"></a>01006
978<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>;
979<a name="l01009"></a>01009
980<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>;
981<a name="l01012"></a>01012
982<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>;
983<a name="l01015"></a>01015
984<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>;
985<a name="l01018"></a>01018
986<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>;
987<a name="l01021"></a>01021
988<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>;
989<a name="l01024"></a>01024
990<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>;
991<a name="l01027"></a>01027
992<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>;
993<a name="l01030"></a>01030 };
994<a name="l01031"></a>01031
995<a name="l01032"></a>01032
996<a name="l01033"></a>01033 } <span class="comment">// end namespace gui</span>
997<a name="l01034"></a>01034 } <span class="comment">// end namespace irr</span>
998<a name="l01035"></a>01035
999<a name="l01036"></a>01036 <span class="preprocessor">#endif</span>
1000<a name="l01037"></a>01037 <span class="preprocessor"></span>
1001</pre></div></div>
1002</div>
1003 <div id="nav-path" class="navpath">
1004 <ul>
1005 <li class="navelem"><a class="el" href="_i_g_u_i_element_8h.html">IGUIElement.h</a> </li>
1006<!-- window showing the filter options -->
1007<div id="MSearchSelectWindow"
1008 onmouseover="return searchBox.OnSearchSelectShow()"
1009 onmouseout="return searchBox.OnSearchSelectHide()"
1010 onkeydown="return searchBox.OnSearchSelectKey(event)">
1011<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>
1012
1013<!-- iframe showing the search results (closed by default) -->
1014<div id="MSearchResultsWindow">
1015<iframe src="javascript:void(0)" frameborder="0"
1016 name="MSearchResults" id="MSearchResults">
1017</iframe>
1018</div>
1019
1020
1021 <li class="footer">
1022<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht
1023Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:39 for Irrlicht 3D Engine by
1024<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
1025 </ul>
1026 </div>
1027
1028
1029</body>
1030</html>