1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Crazy Eddies GUI System: CEGUIMenuItem.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript">
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
if (hasClass(ele,cls)) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
}
function toggleVisibility(linkObj) {
var base = linkObj.getAttribute('id');
var summary = document.getElementById(base + '-summary');
var content = document.getElementById(base + '-content');
var trigger = document.getElementById(base + '-trigger');
if ( hasClass(linkObj,'closed') ) {
summary.style.display = 'none';
content.style.display = 'block';
trigger.src = 'open.png';
removeClass(linkObj,'closed');
addClass(linkObj,'opened');
} else if ( hasClass(linkObj,'opened') ) {
summary.style.display = 'block';
content.style.display = 'none';
trigger.src = 'closed.png';
removeClass(linkObj,'opened');
addClass(linkObj,'closed');
}
return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Crazy Eddies GUI System <span id="projectnumber">0.7.6</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<div class="title">CEGUIMenuItem.h</div> </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***********************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> filename: CEGUIMenuItem.h</span>
<a name="l00003"></a>00003 <span class="comment"> created: 2/4/2005</span>
<a name="l00004"></a>00004 <span class="comment"> author: Tomas Lindquist Olsen (based on code by Paul D Turner)</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment"> purpose: Interface to base class for MenuItem widget</span>
<a name="l00007"></a>00007 <span class="comment">*************************************************************************/</span>
<a name="l00008"></a>00008 <span class="comment">/***************************************************************************</span>
<a name="l00009"></a>00009 <span class="comment"> * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span>
<a name="l00012"></a>00012 <span class="comment"> * a copy of this software and associated documentation files (the</span>
<a name="l00013"></a>00013 <span class="comment"> * "Software"), to deal in the Software without restriction, including</span>
<a name="l00014"></a>00014 <span class="comment"> * without limitation the rights to use, copy, modify, merge, publish,</span>
<a name="l00015"></a>00015 <span class="comment"> * distribute, sublicense, and/or sell copies of the Software, and to</span>
<a name="l00016"></a>00016 <span class="comment"> * permit persons to whom the Software is furnished to do so, subject to</span>
<a name="l00017"></a>00017 <span class="comment"> * the following conditions:</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * The above copyright notice and this permission notice shall be</span>
<a name="l00020"></a>00020 <span class="comment"> * included in all copies or substantial portions of the Software.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span>
<a name="l00023"></a>00023 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
<a name="l00024"></a>00024 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span>
<a name="l00025"></a>00025 <span class="comment"> * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR</span>
<a name="l00026"></a>00026 <span class="comment"> * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,</span>
<a name="l00027"></a>00027 <span class="comment"> * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR</span>
<a name="l00028"></a>00028 <span class="comment"> * OTHER DEALINGS IN THE SOFTWARE.</span>
<a name="l00029"></a>00029 <span class="comment"> ***************************************************************************/</span>
<a name="l00030"></a>00030 <span class="preprocessor">#ifndef _CEGUIMenuItem_h_</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIMenuItem_h_</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="preprocessor">#include "../CEGUIBase.h"</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include "../CEGUIWindow.h"</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include "CEGUIItemEntry.h"</span>
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="preprocessor">#include "CEGUIMenuItemProperties.h"</span>
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4251)</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="comment">// Start of CEGUI namespace section</span>
<a name="l00045"></a>00045 <span class="keyword">namespace </span>CEGUI
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047
<a name="l00052"></a><a class="code" href="classCEGUI_1_1MenuItem.html">00052</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1MenuItem.html" title="Base class for menu items.">MenuItem</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>
<a name="l00053"></a>00053 {
<a name="l00054"></a>00054 <span class="keyword">public</span>:
<a name="l00055"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a22376d7a256528bc6273044fc95b7cba">00055</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> <a class="code" href="classCEGUI_1_1MenuItem.html#a22376d7a256528bc6273044fc95b7cba" title="Namespace for global events.">EventNamespace</a>;
<a name="l00056"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a23b29ccbed8e170bb9cf463a5346d2eb">00056</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> <a class="code" href="classCEGUI_1_1MenuItem.html#a23b29ccbed8e170bb9cf463a5346d2eb" title="Window factory name.">WidgetTypeName</a>;
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="comment">/*************************************************************************</span>
<a name="l00059"></a>00059 <span class="comment"> Event name constants</span>
<a name="l00060"></a>00060 <span class="comment"> *************************************************************************/</span>
<a name="l00061"></a>00061 <span class="comment">// generated internally by Window</span>
<a name="l00066"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a0171b192982edb965d3d423b53aa4418">00066</a> <span class="comment"></span> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> <a class="code" href="classCEGUI_1_1MenuItem.html#a0171b192982edb965d3d423b53aa4418">EventClicked</a>;
<a name="l00067"></a>00067
<a name="l00068"></a>00068
<a name="l00069"></a>00069 <span class="comment">/*************************************************************************</span>
<a name="l00070"></a>00070 <span class="comment"> Accessor type functions</span>
<a name="l00071"></a>00071 <span class="comment"> *************************************************************************/</span>
<a name="l00079"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a3cc91699377bbbc779ec56d3b62e555a">00079</a> <span class="keywordtype">bool</span> isHovering(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00080"></a>00080 <span class="keyword"> </span>{
<a name="l00081"></a>00081 <span class="keywordflow">return</span> d_hovering;
<a name="l00082"></a>00082 }
<a name="l00083"></a>00083
<a name="l00084"></a>00084
<a name="l00092"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a35418613c8b926a4fd7b4b3fb6bedd4a">00092</a> <span class="keywordtype">bool</span> isPushed(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00093"></a>00093 <span class="keyword"> </span>{
<a name="l00094"></a>00094 <span class="keywordflow">return</span> d_pushed;
<a name="l00095"></a>00095 }
<a name="l00096"></a>00096
<a name="l00097"></a>00097
<a name="l00102"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a6d389e4584006fe37c4116cf2ce6677d">00102</a> <span class="keywordtype">bool</span> isOpened(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00103"></a>00103 <span class="keyword"> </span>{
<a name="l00104"></a>00104 <span class="keywordflow">return</span> d_opened;
<a name="l00105"></a>00105 }
<a name="l00106"></a>00106
<a name="l00111"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a7307d6e8bd8ea23d9f5c383bb5819c9c">00111</a> <span class="keywordtype">bool</span> isPopupClosing(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00112"></a>00112 <span class="keyword"> </span>{
<a name="l00113"></a>00113 <span class="keywordflow">return</span> d_popupClosing;
<a name="l00114"></a>00114 }
<a name="l00115"></a>00115
<a name="l00120"></a><a class="code" href="classCEGUI_1_1MenuItem.html#ae03dea46020e3eba46dad4faa9f0894d">00120</a> <span class="keywordtype">bool</span> hasAutoPopup(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00121"></a>00121 <span class="keyword"> </span>{
<a name="l00122"></a>00122 <span class="keywordflow">return</span> d_autoPopupTimeout > 0.0f;
<a name="l00123"></a>00123 }
<a name="l00124"></a>00124
<a name="l00129"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a02276733b2b5499b2ccb26c0770df237">00129</a> <span class="keywordtype">float</span> getAutoPopupTimeout(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00130"></a>00130 <span class="keyword"> </span>{
<a name="l00131"></a>00131 <span class="keywordflow">return</span> d_autoPopupTimeout;
<a name="l00132"></a>00132 }
<a name="l00133"></a>00133
<a name="l00138"></a><a class="code" href="classCEGUI_1_1MenuItem.html#ab0f164bd7390c7f70758d8d7b1e12f9b">00138</a> <span class="keywordtype">void</span> setAutoPopupTimeout(<span class="keywordtype">float</span> time)
<a name="l00139"></a>00139 {
<a name="l00140"></a>00140 d_autoPopupTimeout = time;
<a name="l00141"></a>00141 }
<a name="l00142"></a>00142
<a name="l00150"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a023a7bb89459520d3e05e1fb7188989d">00150</a> <a class="code" href="classCEGUI_1_1PopupMenu.html" title="Base class for popup menus.">PopupMenu</a>* getPopupMenu(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00151"></a>00151 <span class="keyword"> </span>{
<a name="l00152"></a>00152 <span class="keywordflow">return</span> d_popup;
<a name="l00153"></a>00153 }
<a name="l00154"></a>00154
<a name="l00159"></a><a class="code" href="classCEGUI_1_1MenuItem.html#abe870a1488774bfbe0b83191e02c33ca">00159</a> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1UVector2.html" title="Two dimensional vector class built using unified dimensions (UDims). The UVector2 class is used for r...">UVector2</a>& getPopupOffset(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00160"></a>00160 <span class="keyword"> </span>{
<a name="l00161"></a>00161 <span class="keywordflow">return</span> d_popupOffset;
<a name="l00162"></a>00162 }
<a name="l00163"></a>00163
<a name="l00168"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a2eeb02ed69bbdd35d1d0a138def0ecb9">00168</a> <span class="keywordtype">void</span> setPopupOffset(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1UVector2.html" title="Two dimensional vector class built using unified dimensions (UDims). The UVector2 class is used for r...">UVector2</a>& popupOffset)
<a name="l00169"></a>00169 {
<a name="l00170"></a>00170 d_popupOffset = popupOffset;
<a name="l00171"></a>00171 }
<a name="l00172"></a>00172
<a name="l00173"></a>00173 <span class="comment">/*************************************************************************</span>
<a name="l00174"></a>00174 <span class="comment"> Manipulators</span>
<a name="l00175"></a>00175 <span class="comment"> *************************************************************************/</span>
<a name="l00186"></a>00186 <span class="keywordtype">void</span> setPopupMenu(<a class="code" href="classCEGUI_1_1PopupMenu.html" title="Base class for popup menus.">PopupMenu</a>* popup);
<a name="l00187"></a>00187
<a name="l00188"></a>00188
<a name="l00196"></a>00196 <span class="keywordtype">void</span> openPopupMenu(<span class="keywordtype">bool</span> notify = <span class="keyword">true</span>);
<a name="l00197"></a>00197
<a name="l00198"></a>00198
<a name="l00209"></a>00209 <span class="keywordtype">void</span> closePopupMenu(<span class="keywordtype">bool</span> notify = <span class="keyword">true</span>);
<a name="l00210"></a>00210
<a name="l00211"></a>00211
<a name="l00219"></a>00219 <span class="keywordtype">bool</span> togglePopupMenu(<span class="keywordtype">void</span>);
<a name="l00220"></a>00220
<a name="l00225"></a>00225 <span class="keywordtype">void</span> startPopupClosing(<span class="keywordtype">void</span>);
<a name="l00226"></a>00226
<a name="l00231"></a>00231 <span class="keywordtype">void</span> startPopupOpening(<span class="keywordtype">void</span>);
<a name="l00232"></a>00232 <span class="comment">/*************************************************************************</span>
<a name="l00233"></a>00233 <span class="comment"> Construction and Destruction</span>
<a name="l00234"></a>00234 <span class="comment"> *************************************************************************/</span>
<a name="l00239"></a>00239 <a class="code" href="classCEGUI_1_1MenuItem.html" title="Base class for menu items.">MenuItem</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& type, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& name);
<a name="l00240"></a>00240
<a name="l00241"></a>00241
<a name="l00246"></a>00246 <span class="keyword">virtual</span> ~<a class="code" href="classCEGUI_1_1MenuItem.html" title="Base class for menu items.">MenuItem</a>(<span class="keywordtype">void</span>);
<a name="l00247"></a>00247
<a name="l00248"></a>00248
<a name="l00249"></a>00249 <span class="keyword">protected</span>:
<a name="l00250"></a>00250 <span class="comment">/*************************************************************************</span>
<a name="l00251"></a>00251 <span class="comment"> New Event Handlers</span>
<a name="l00252"></a>00252 <span class="comment"> *************************************************************************/</span>
<a name="l00257"></a>00257 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onClicked(<a class="code" href="classCEGUI_1_1WindowEventArgs.html" title="EventArgs based class that is used for objects passed to handlers triggered for events concerning som...">WindowEventArgs</a>& e);
<a name="l00258"></a>00258
<a name="l00259"></a>00259
<a name="l00260"></a>00260 <span class="comment">/*************************************************************************</span>
<a name="l00261"></a>00261 <span class="comment"> Overridden event handlers</span>
<a name="l00262"></a>00262 <span class="comment"> *************************************************************************/</span>
<a name="l00263"></a>00263 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseMove(<a class="code" href="classCEGUI_1_1MouseEventArgs.html" title="EventArgs based class that is used for objects passed to input event handlers concerning mouse input...">MouseEventArgs</a>& e);
<a name="l00264"></a>00264 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseButtonDown(<a class="code" href="classCEGUI_1_1MouseEventArgs.html" title="EventArgs based class that is used for objects passed to input event handlers concerning mouse input...">MouseEventArgs</a>& e);
<a name="l00265"></a>00265 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseButtonUp(<a class="code" href="classCEGUI_1_1MouseEventArgs.html" title="EventArgs based class that is used for objects passed to input event handlers concerning mouse input...">MouseEventArgs</a>& e);
<a name="l00266"></a>00266 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onCaptureLost(<a class="code" href="classCEGUI_1_1WindowEventArgs.html" title="EventArgs based class that is used for objects passed to handlers triggered for events concerning som...">WindowEventArgs</a>& e);
<a name="l00267"></a>00267 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseLeaves(<a class="code" href="classCEGUI_1_1MouseEventArgs.html" title="EventArgs based class that is used for objects passed to input event handlers concerning mouse input...">MouseEventArgs</a>& e);
<a name="l00268"></a>00268 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onTextChanged(<a class="code" href="classCEGUI_1_1WindowEventArgs.html" title="EventArgs based class that is used for objects passed to handlers triggered for events concerning som...">WindowEventArgs</a>& e);
<a name="l00269"></a>00269 <span class="keyword">virtual</span> <span class="keywordtype">void</span> updateSelf(<span class="keywordtype">float</span> elapsed);
<a name="l00270"></a>00270
<a name="l00271"></a>00271
<a name="l00272"></a>00272 <span class="comment">/*************************************************************************</span>
<a name="l00273"></a>00273 <span class="comment"> Implementation Functions</span>
<a name="l00274"></a>00274 <span class="comment"> *************************************************************************/</span>
<a name="l00285"></a>00285 <span class="keywordtype">void</span> updateInternalState(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Point</a>& mouse_pos);
<a name="l00286"></a>00286
<a name="l00287"></a>00287
<a name="l00295"></a>00295 <span class="keywordtype">void</span> closeAllMenuItemPopups();
<a name="l00296"></a>00296
<a name="l00297"></a>00297
<a name="l00308"></a>00308 <span class="keywordtype">void</span> setPopupMenu_impl(<a class="code" href="classCEGUI_1_1PopupMenu.html" title="Base class for popup menus.">PopupMenu</a>* popup, <span class="keywordtype">bool</span> add_as_child = <span class="keyword">true</span>);
<a name="l00309"></a>00309
<a name="l00310"></a>00310
<a name="l00321"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a1390ec335e4b11115b346da3482e72bd">00321</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> testClassName_impl(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& class_name)<span class="keyword"> const</span>
<a name="l00322"></a>00322 <span class="keyword"> </span>{
<a name="l00323"></a>00323 <span class="keywordflow">if</span> (class_name == <span class="stringliteral">"MenuItem"</span>) <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00324"></a>00324
<a name="l00325"></a>00325 <span class="keywordflow">return</span> <a class="code" href="classCEGUI_1_1ItemEntry.html#af93fcbbb43c99b50ae9a4fd6417c51b0" title="Return the "optimal" size for the item.">ItemEntry::testClassName_impl</a>(class_name);
<a name="l00326"></a>00326 }
<a name="l00327"></a>00327
<a name="l00328"></a>00328
<a name="l00329"></a>00329 <span class="comment">/*************************************************************************</span>
<a name="l00330"></a>00330 <span class="comment"> Implementation Data</span>
<a name="l00331"></a>00331 <span class="comment"> *************************************************************************/</span>
<a name="l00332"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a77fd633b03c9d38c9aebf71a941b2007">00332</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1MenuItem.html#a77fd633b03c9d38c9aebf71a941b2007" title="true when widget is pushed">d_pushed</a>;
<a name="l00333"></a><a class="code" href="classCEGUI_1_1MenuItem.html#aec6f01f8ad0b5353accfab4df02dcf47">00333</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1MenuItem.html#aec6f01f8ad0b5353accfab4df02dcf47" title="true when the button is in 'hover' state and requires the hover rendering.">d_hovering</a>;
<a name="l00334"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a74643fbd94985b869103f920ffac8ce8">00334</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1MenuItem.html#a74643fbd94985b869103f920ffac8ce8" title="true when the menu item's popup menu is in its opened state.">d_opened</a>;
<a name="l00335"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a76c058c4ceaddcc997edc86a55737d47">00335</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1MenuItem.html#a76c058c4ceaddcc997edc86a55737d47" title="true when the d_popupTimerTimeElapsed timer is running to close the popup (another menu item of our c...">d_popupClosing</a>;
<a name="l00336"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a3473146002bb5ebf211525fcaa8bd4ed">00336</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1MenuItem.html#a3473146002bb5ebf211525fcaa8bd4ed" title="true when the d_popupTimerTimeElapsed timer is running to open the popup (the menu item is hovered)...">d_popupOpening</a>;
<a name="l00337"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a796b896324fb449e0325a0ad17e3d7c6">00337</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1MenuItem.html#a796b896324fb449e0325a0ad17e3d7c6" title="the time in seconds, to wait before opening / closing the popup if the mouse is over the item / over ...">d_autoPopupTimeout</a>;
<a name="l00338"></a><a class="code" href="classCEGUI_1_1MenuItem.html#ac5c7e7cc7dc5519641528545ba3baf8f">00338</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1MenuItem.html#ac5c7e7cc7dc5519641528545ba3baf8f" title="the current time, which is already elapsed if the timer is running (d_popupClosing or d_popupOpening ...">d_autoPopupTimeElapsed</a>;
<a name="l00339"></a>00339
<a name="l00340"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a750025b865f3577ad2d162e619ef81c4">00340</a> <a class="code" href="classCEGUI_1_1PopupMenu.html" title="Base class for popup menus.">PopupMenu</a>* <a class="code" href="classCEGUI_1_1MenuItem.html#a750025b865f3577ad2d162e619ef81c4" title="PopupMenu that this item displays when activated.">d_popup</a>;
<a name="l00341"></a>00341
<a name="l00342"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a7abc2cefb9530c67ea10c9cd8a579d2d">00342</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1MenuItem.html#a7abc2cefb9530c67ea10c9cd8a579d2d" title="Used internally to determine if a popup was just closed on a Clicked event.">d_popupWasClosed</a>;
<a name="l00343"></a>00343
<a name="l00344"></a><a class="code" href="classCEGUI_1_1MenuItem.html#a175b99297512a8961f19289a3f57046c">00344</a> <a class="code" href="classCEGUI_1_1UVector2.html" title="Two dimensional vector class built using unified dimensions (UDims). The UVector2 class is used for r...">UVector2</a> <a class="code" href="classCEGUI_1_1MenuItem.html#a175b99297512a8961f19289a3f57046c" title="current offset for popup placement.">d_popupOffset</a>;
<a name="l00345"></a>00345
<a name="l00346"></a>00346 <span class="keyword">private</span>:
<a name="l00347"></a>00347 <span class="comment">/************************************************************************</span>
<a name="l00348"></a>00348 <span class="comment"> Static Properties for this class</span>
<a name="l00349"></a>00349 <span class="comment"> ************************************************************************/</span>
<a name="l00350"></a>00350 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1MenuItemProperties_1_1PopupOffset.html" title="Property to specify an offset for the popup menu position.">MenuItemProperties::PopupOffset</a> d_popupOffsetProperty;
<a name="l00351"></a>00351 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1MenuItemProperties_1_1AutoPopupTimeout.html" title="Property to specify the time, which has to elapse before the popup window is opened/closed if the hov...">MenuItemProperties::AutoPopupTimeout</a> d_autoPopupTimeoutProperty;
<a name="l00352"></a>00352
<a name="l00353"></a>00353 <span class="comment">/*************************************************************************</span>
<a name="l00354"></a>00354 <span class="comment"> Private methods</span>
<a name="l00355"></a>00355 <span class="comment"> *************************************************************************/</span>
<a name="l00356"></a>00356 <span class="keywordtype">void</span> addMenuItemProperties(<span class="keywordtype">void</span>);
<a name="l00357"></a>00357
<a name="l00362"></a>00362 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addChild_impl(<a class="code" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>* wnd);
<a name="l00363"></a>00363 };
<a name="l00364"></a>00364
<a name="l00365"></a>00365 } <span class="comment">// End of CEGUI namespace section</span>
<a name="l00366"></a>00366
<a name="l00367"></a>00367 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00368"></a>00368 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(pop)</span>
<a name="l00369"></a>00369 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00370"></a>00370 <span class="preprocessor"></span>
<a name="l00371"></a>00371 <span class="preprocessor">#endif // end of guard _CEGUIMenuItem_h_</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:39 for Crazy Eddies GUI System by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
|