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
|
<!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: CEGUIDragContainer.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">CEGUIDragContainer.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: CEGUIDragContainer.h</span>
<a name="l00003"></a>00003 <span class="comment"> created: 14/2/2005</span>
<a name="l00004"></a>00004 <span class="comment"> author: Paul D Turner</span>
<a name="l00005"></a>00005 <span class="comment">*************************************************************************/</span>
<a name="l00006"></a>00006 <span class="comment">/***************************************************************************</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span>
<a name="l00010"></a>00010 <span class="comment"> * a copy of this software and associated documentation files (the</span>
<a name="l00011"></a>00011 <span class="comment"> * "Software"), to deal in the Software without restriction, including</span>
<a name="l00012"></a>00012 <span class="comment"> * without limitation the rights to use, copy, modify, merge, publish,</span>
<a name="l00013"></a>00013 <span class="comment"> * distribute, sublicense, and/or sell copies of the Software, and to</span>
<a name="l00014"></a>00014 <span class="comment"> * permit persons to whom the Software is furnished to do so, subject to</span>
<a name="l00015"></a>00015 <span class="comment"> * the following conditions:</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * The above copyright notice and this permission notice shall be</span>
<a name="l00018"></a>00018 <span class="comment"> * included in all copies or substantial portions of the Software.</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span>
<a name="l00021"></a>00021 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
<a name="l00022"></a>00022 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span>
<a name="l00023"></a>00023 <span class="comment"> * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR</span>
<a name="l00024"></a>00024 <span class="comment"> * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,</span>
<a name="l00025"></a>00025 <span class="comment"> * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR</span>
<a name="l00026"></a>00026 <span class="comment"> * OTHER DEALINGS IN THE SOFTWARE.</span>
<a name="l00027"></a>00027 <span class="comment"> ***************************************************************************/</span>
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef _CEGUIDragContainer_h_</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIDragContainer_h_</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#include "../CEGUIWindow.h"</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "../CEGUIWindowFactory.h"</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include "CEGUIDragContainerProperties.h"</span>
<a name="l00034"></a>00034
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4251)</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="comment">// Start of CEGUI namespace section</span>
<a name="l00042"></a>00042 <span class="keyword">namespace </span>CEGUI
<a name="l00043"></a>00043 {
<a name="l00048"></a><a class="code" href="classCEGUI_1_1DragContainer.html">00048</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1DragContainer.html" title="Generic drag & drop enabled window class.">DragContainer</a> : <span class="keyword">public</span> <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>
<a name="l00049"></a>00049 {
<a name="l00050"></a>00050 <span class="keyword">public</span>:
<a name="l00051"></a>00051 <span class="comment">/*************************************************************************</span>
<a name="l00052"></a>00052 <span class="comment"> Constants</span>
<a name="l00053"></a>00053 <span class="comment"> *************************************************************************/</span>
<a name="l00054"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a6864e4d9735231a7ab278966115cc03a">00054</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_1DragContainer.html#a6864e4d9735231a7ab278966115cc03a" title="Type name for DragContainer.">WidgetTypeName</a>;
<a name="l00055"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a5c25c6ac7d4312b4ef831ce195182e34">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_1DragContainer.html#a5c25c6ac7d4312b4ef831ce195182e34" title="Namespace for global events.">EventNamespace</a>;
<a name="l00056"></a>00056
<a name="l00061"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a1853c48ff4f83685e3a6f5a518ff5fc5">00061</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_1DragContainer.html#a1853c48ff4f83685e3a6f5a518ff5fc5">EventDragStarted</a>;
<a name="l00067"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a7edd74318ced00a4d06ba7dca3268df5">00067</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_1DragContainer.html#a7edd74318ced00a4d06ba7dca3268df5">EventDragEnded</a>;
<a name="l00073"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a671d52ef11b86a48ab7367a8326ce78e">00073</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_1DragContainer.html#a671d52ef11b86a48ab7367a8326ce78e">EventDragPositionChanged</a>;
<a name="l00079"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a3974b619b83ea20d952db3af77916f1c">00079</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_1DragContainer.html#a3974b619b83ea20d952db3af77916f1c">EventDragEnabledChanged</a>;
<a name="l00085"></a><a class="code" href="classCEGUI_1_1DragContainer.html#af6ed369ac5c32a488f8c3358f38ac292">00085</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_1DragContainer.html#af6ed369ac5c32a488f8c3358f38ac292">EventDragAlphaChanged</a>;
<a name="l00091"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a0516316b36229b29f80f7f9f19a4c96b">00091</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_1DragContainer.html#a0516316b36229b29f80f7f9f19a4c96b">EventDragMouseCursorChanged</a>;
<a name="l00097"></a><a class="code" href="classCEGUI_1_1DragContainer.html#ac7812528b483852c6ead5586418d1ce1">00097</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_1DragContainer.html#ac7812528b483852c6ead5586418d1ce1">EventDragThresholdChanged</a>;
<a name="l00104"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a17d1bca8ea524b1e7bb382ab209d4e01">00104</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_1DragContainer.html#a17d1bca8ea524b1e7bb382ab209d4e01">EventDragDropTargetChanged</a>;
<a name="l00105"></a>00105
<a name="l00106"></a>00106 <span class="comment">/*************************************************************************</span>
<a name="l00107"></a>00107 <span class="comment"> Object Construction and Destruction</span>
<a name="l00108"></a>00108 <span class="comment"> *************************************************************************/</span>
<a name="l00113"></a>00113 <a class="code" href="classCEGUI_1_1DragContainer.html" title="Generic drag & drop enabled window class.">DragContainer</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="l00114"></a>00114
<a name="l00119"></a>00119 <span class="keyword">virtual</span> ~<a class="code" href="classCEGUI_1_1DragContainer.html" title="Generic drag & drop enabled window class.">DragContainer</a>(<span class="keywordtype">void</span>);
<a name="l00120"></a>00120
<a name="l00121"></a>00121 <span class="comment">/*************************************************************************</span>
<a name="l00122"></a>00122 <span class="comment"> Public Interface to DragContainer</span>
<a name="l00123"></a>00123 <span class="comment"> *************************************************************************/</span>
<a name="l00132"></a>00132 <span class="keywordtype">bool</span> isDraggingEnabled(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00133"></a>00133
<a name="l00145"></a>00145 <span class="keywordtype">void</span> setDraggingEnabled(<span class="keywordtype">bool</span> setting);
<a name="l00146"></a>00146
<a name="l00155"></a>00155 <span class="keywordtype">bool</span> isBeingDragged(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00156"></a>00156
<a name="l00168"></a>00168 <span class="keywordtype">float</span> getPixelDragThreshold(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00169"></a>00169
<a name="l00184"></a>00184 <span class="keywordtype">void</span> setPixelDragThreshold(<span class="keywordtype">float</span> pixels);
<a name="l00185"></a>00185
<a name="l00194"></a>00194 <span class="keywordtype">float</span> getDragAlpha(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00195"></a>00195
<a name="l00211"></a>00211 <span class="keywordtype">void</span> setDragAlpha(<span class="keywordtype">float</span> alpha);
<a name="l00212"></a>00212
<a name="l00221"></a>00221 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Image.html" title="Class that represents a single Image of an Imageset.">Image</a>* getDragCursorImage(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00222"></a>00222
<a name="l00237"></a>00237 <span class="keywordtype">void</span> setDragCursorImage(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Image.html" title="Class that represents a single Image of an Imageset.">Image</a>* image);
<a name="l00238"></a>00238
<a name="l00253"></a>00253 <span class="keywordtype">void</span> setDragCursorImage(<a class="code" href="namespaceCEGUI.html#abceac8add620a21fa3ce491a51b7ecbb" title="Enumeration of special values used for mouse cursor settings in Window objects.">MouseCursorImage</a> image);
<a name="l00254"></a>00254
<a name="l00275"></a>00275 <span class="keywordtype">void</span> setDragCursorImage(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& imageset, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& image);
<a name="l00276"></a>00276
<a name="l00288"></a>00288 <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>* getCurrentDropTarget(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00289"></a>00289
<a name="l00298"></a>00298 <span class="keywordtype">bool</span> isStickyModeEnabled() <span class="keyword">const</span>;
<a name="l00299"></a>00299
<a name="l00308"></a>00308 <span class="keywordtype">void</span> setStickyModeEnabled(<span class="keywordtype">bool</span> setting);
<a name="l00309"></a>00309
<a name="l00326"></a>00326 <span class="keywordtype">bool</span> pickUp(<span class="keyword">const</span> <span class="keywordtype">bool</span> force_sticky = <span class="keyword">false</span>);
<a name="l00327"></a>00327
<a name="l00341"></a>00341 <span class="keywordtype">void</span> setFixedDragOffset(<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>& offset);
<a name="l00342"></a>00342
<a name="l00356"></a>00356 <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>& getFixedDragOffset() <span class="keyword">const</span>;
<a name="l00357"></a>00357
<a name="l00368"></a>00368 <span class="keywordtype">void</span> setUsingFixedDragOffset(<span class="keyword">const</span> <span class="keywordtype">bool</span> enable);
<a name="l00369"></a>00369
<a name="l00380"></a>00380 <span class="keywordtype">bool</span> isUsingFixedDragOffset() <span class="keyword">const</span>;
<a name="l00381"></a>00381
<a name="l00382"></a>00382 <span class="comment">// Window class overrides.</span>
<a name="l00383"></a>00383 <span class="keywordtype">void</span> getRenderingContext_impl(<a class="code" href="structCEGUI_1_1RenderingContext.html" title="struct that holds some context relating to a RenderingSurface object.">RenderingContext</a>& ctx) <span class="keyword">const</span>;
<a name="l00384"></a>00384
<a name="l00385"></a>00385 <span class="keyword">protected</span>:
<a name="l00386"></a>00386 <span class="comment">/*************************************************************************</span>
<a name="l00387"></a>00387 <span class="comment"> Protected Implementation Methods</span>
<a name="l00388"></a>00388 <span class="comment"> *************************************************************************/</span>
<a name="l00401"></a>00401 <span class="keywordtype">bool</span> isDraggingThresholdExceeded(<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>& local_mouse);
<a name="l00402"></a>00402
<a name="l00410"></a>00410 <span class="keywordtype">void</span> initialiseDragging(<span class="keywordtype">void</span>);
<a name="l00411"></a>00411
<a name="l00422"></a>00422 <span class="keywordtype">void</span> doDragging(<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>& local_mouse);
<a name="l00423"></a>00423
<a name="l00428"></a>00428 <span class="keywordtype">void</span> updateActiveMouseCursor(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00429"></a>00429
<a name="l00430"></a>00430
<a name="l00441"></a><a class="code" href="classCEGUI_1_1DragContainer.html#aa45304bae9b061d7041853b31f63d73d">00441</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="l00442"></a>00442 <span class="keyword"> </span>{
<a name="l00443"></a>00443 <span class="keywordflow">if</span> (class_name==<span class="stringliteral">"DragContainer"</span>) <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00444"></a>00444 <span class="keywordflow">return</span> <a class="code" href="classCEGUI_1_1Window.html#a2b58cf00b4790c9cb08acfc18d5d3b0b" title="Return whether this window was inherited from the given class name at some point in the inheritance h...">Window::testClassName_impl</a>(class_name);
<a name="l00445"></a>00445 }
<a name="l00446"></a>00446
<a name="l00447"></a>00447
<a name="l00448"></a>00448 <span class="comment">/*************************************************************************</span>
<a name="l00449"></a>00449 <span class="comment"> Overrides of methods in Window</span>
<a name="l00450"></a>00450 <span class="comment"> *************************************************************************/</span>
<a name="l00451"></a>00451
<a name="l00452"></a>00452 <span class="comment">/*************************************************************************</span>
<a name="l00453"></a>00453 <span class="comment"> Overrides for Event handler methods</span>
<a name="l00454"></a>00454 <span class="comment"> *************************************************************************/</span>
<a name="l00455"></a>00455 <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="l00456"></a>00456 <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="l00457"></a>00457 <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="l00458"></a>00458 <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="l00459"></a>00459 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onAlphaChanged(<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="l00460"></a>00460 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onClippingChanged(<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);<span class="comment">/*Window::drawSelf(z);*/</span>
<a name="l00461"></a>00461 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMoved(<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="l00462"></a>00462
<a name="l00463"></a>00463 <span class="comment">/*************************************************************************</span>
<a name="l00464"></a>00464 <span class="comment"> New Event handler methods</span>
<a name="l00465"></a>00465 <span class="comment"> *************************************************************************/</span>
<a name="l00476"></a>00476 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onDragStarted(<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="l00477"></a>00477
<a name="l00488"></a>00488 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onDragEnded(<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="l00489"></a>00489
<a name="l00500"></a>00500 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onDragPositionChanged(<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="l00501"></a>00501
<a name="l00510"></a>00510 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onDragEnabledChanged(<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="l00511"></a>00511
<a name="l00520"></a>00520 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onDragAlphaChanged(<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="l00521"></a>00521
<a name="l00530"></a>00530 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onDragMouseCursorChanged(<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="l00531"></a>00531
<a name="l00540"></a>00540 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onDragThresholdChanged(<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="l00541"></a>00541
<a name="l00557"></a>00557 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onDragDropTargetChanged(<a class="code" href="classCEGUI_1_1DragDropEventArgs.html" title="EventArgs based class used for certain drag/drop notifications.">DragDropEventArgs</a>& e);
<a name="l00558"></a>00558
<a name="l00559"></a>00559 <span class="comment">/*************************************************************************</span>
<a name="l00560"></a>00560 <span class="comment"> Data</span>
<a name="l00561"></a>00561 <span class="comment"> *************************************************************************/</span>
<a name="l00562"></a><a class="code" href="classCEGUI_1_1DragContainer.html#abeedaf3f20cc7721b4f05b93bc7e3815">00562</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1DragContainer.html#abeedaf3f20cc7721b4f05b93bc7e3815" title="True when dragging is enabled.">d_draggingEnabled</a>;
<a name="l00563"></a><a class="code" href="classCEGUI_1_1DragContainer.html#ab9ea08881e5cea1a8cf25a77ff4e6701">00563</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1DragContainer.html#ab9ea08881e5cea1a8cf25a77ff4e6701" title="True when left mouse button is down.">d_leftMouseDown</a>;
<a name="l00564"></a><a class="code" href="classCEGUI_1_1DragContainer.html#ad05084f8ab79f5ef8ee26f2b5ce16e89">00564</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1DragContainer.html#ad05084f8ab79f5ef8ee26f2b5ce16e89" title="true when being dragged.">d_dragging</a>;
<a name="l00565"></a><a class="code" href="classCEGUI_1_1DragContainer.html#afcf8a59108cfc78d6dade911ac71e69c">00565</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_1DragContainer.html#afcf8a59108cfc78d6dade911ac71e69c" title="point we are being dragged at.">d_dragPoint</a>;
<a name="l00566"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a7db715a864083c08dabf95b6b2e47448">00566</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_1DragContainer.html#a7db715a864083c08dabf95b6b2e47448" title="position prior to dragging.">d_startPosition</a>;
<a name="l00567"></a><a class="code" href="classCEGUI_1_1DragContainer.html#ae48460764f949debee51d2d373ed4cbd">00567</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1DragContainer.html#ae48460764f949debee51d2d373ed4cbd" title="Pixels mouse must move before dragging commences.">d_dragThreshold</a>;
<a name="l00568"></a><a class="code" href="classCEGUI_1_1DragContainer.html#ae06840d3e7e4953bbb8e0cae32d62819">00568</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1DragContainer.html#ae06840d3e7e4953bbb8e0cae32d62819" title="Alpha value to set when dragging.">d_dragAlpha</a>;
<a name="l00569"></a><a class="code" href="classCEGUI_1_1DragContainer.html#ad7f36d5c6fa87410ead3c3ba0edf2892">00569</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1DragContainer.html#ad7f36d5c6fa87410ead3c3ba0edf2892" title="Alpha value to re-set when dragging ends.">d_storedAlpha</a>;
<a name="l00570"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a1ab7e601661d46879021d63695bdb96f">00570</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1DragContainer.html#a1ab7e601661d46879021d63695bdb96f" title="Parent clip state to re-set.">d_storedClipState</a>;
<a name="l00571"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a1f3108634fc956470a67641b2eb28abd">00571</a> <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>* <a class="code" href="classCEGUI_1_1DragContainer.html#a1f3108634fc956470a67641b2eb28abd" title="Target window for possible drop operation.">d_dropTarget</a>;
<a name="l00572"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a09066da1c6298371ac0a1a2fcc2fb9c8">00572</a> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Image.html" title="Class that represents a single Image of an Imageset.">Image</a>* <a class="code" href="classCEGUI_1_1DragContainer.html#a09066da1c6298371ac0a1a2fcc2fb9c8" title="Image to use for mouse cursor when dragging.">d_dragCursorImage</a>;
<a name="l00573"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a44dbcce3727a13e907a75e5190486adc">00573</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1DragContainer.html#a44dbcce3727a13e907a75e5190486adc">d_dropflag</a>;
<a name="l00574"></a>00574
<a name="l00575"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a2892e5818f139bcfbeefb81617b53caa">00575</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1DragContainer.html#a2892e5818f139bcfbeefb81617b53caa" title="true when we're in 'sticky' mode.">d_stickyMode</a>;
<a name="l00577"></a><a class="code" href="classCEGUI_1_1DragContainer.html#ae440e2c9c201fdd5fa699c0dead8610d">00577</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1DragContainer.html#ae440e2c9c201fdd5fa699c0dead8610d" title="true after been picked-up / dragged via sticky mode">d_pickedUp</a>;
<a name="l00579"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a69dafada3c62fae8bd3f69996bcb76a2">00579</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1DragContainer.html#a69dafada3c62fae8bd3f69996bcb76a2" title="true if fixed mouse offset is used for dragging position.">d_usingFixedDragOffset</a>;
<a name="l00581"></a><a class="code" href="classCEGUI_1_1DragContainer.html#a48a8ccb11af605bf1490f4831e9ec01a">00581</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_1DragContainer.html#a48a8ccb11af605bf1490f4831e9ec01a" title="current fixed mouse offset value.">d_fixedDragOffset</a>;
<a name="l00582"></a>00582
<a name="l00583"></a>00583 <span class="keyword">private</span>:
<a name="l00584"></a>00584 <span class="comment">/*************************************************************************</span>
<a name="l00585"></a>00585 <span class="comment"> Static properties for the Spinner widget</span>
<a name="l00586"></a>00586 <span class="comment"> *************************************************************************/</span>
<a name="l00587"></a>00587 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1DragContainerProperties_1_1DragAlpha.html" title="Property to access the dragging alpha value.">DragContainerProperties::DragAlpha</a> d_dragAlphaProperty;
<a name="l00588"></a>00588 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1DragContainerProperties_1_1DragCursorImage.html" title="Property to access the dragging mouse cursor setting.">DragContainerProperties::DragCursorImage</a> d_dragCursorImageProperty;
<a name="l00589"></a>00589 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1DragContainerProperties_1_1DraggingEnabled.html" title="Property to access the state of the dragging enabled setting.">DragContainerProperties::DraggingEnabled</a> d_dragEnabledProperty;
<a name="l00590"></a>00590 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1DragContainerProperties_1_1DragThreshold.html" title="Property to access the dragging threshold value.">DragContainerProperties::DragThreshold</a> d_dragThresholdProperty;
<a name="l00591"></a>00591 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1DragContainerProperties_1_1StickyMode.html" title="Property to access the state of the sticky mode setting.">DragContainerProperties::StickyMode</a> d_stickyModeProperty;
<a name="l00592"></a>00592 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1DragContainerProperties_1_1FixedDragOffset.html" title="Property to access the state of the fixed dragging offset setting.">DragContainerProperties::FixedDragOffset</a> d_fixedDragOffsetProperty;
<a name="l00593"></a>00593 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1DragContainerProperties_1_1UseFixedDragOffset.html" title="Property to access the setting that controls whether the fixed drag offset will be used...">DragContainerProperties::UseFixedDragOffset</a> d_useFixedDragOffsetProperty;
<a name="l00594"></a>00594
<a name="l00595"></a>00595 <span class="comment">/*************************************************************************</span>
<a name="l00596"></a>00596 <span class="comment"> Implementation methods</span>
<a name="l00597"></a>00597 <span class="comment"> *************************************************************************/</span>
<a name="l00605"></a>00605 <span class="keywordtype">void</span> addDragContainerProperties(<span class="keywordtype">void</span>);
<a name="l00606"></a>00606 };
<a name="l00607"></a>00607
<a name="l00608"></a>00608 } <span class="comment">// End of CEGUI namespace section</span>
<a name="l00609"></a>00609
<a name="l00610"></a>00610
<a name="l00611"></a>00611 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00612"></a>00612 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(pop)</span>
<a name="l00613"></a>00613 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00614"></a>00614 <span class="preprocessor"></span>
<a name="l00615"></a>00615 <span class="preprocessor">#endif // end of guard _CEGUIDragContainer_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>
|