1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356
|
<!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: CEGUIListHeaderSegment.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">CEGUIListHeaderSegment.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: CEGUIListHeaderSegment.h</span>
<a name="l00003"></a>00003 <span class="comment"> created: 15/6/2004</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"> purpose: Interface to list header segment class.</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 _CEGUIListHeaderSegment_h_</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIListHeaderSegment_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 "CEGUIListHeaderSegmentProperties.h"</span>
<a name="l00036"></a>00036
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4251)</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043
<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="l00051"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html">00051</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1ListHeaderSegment.html" title="Base class for list header segment window.">ListHeaderSegment</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="l00052"></a>00052 {
<a name="l00053"></a>00053 <span class="keyword">public</span>:
<a name="l00054"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#afa5ccc039da440ac3564ca7a32a01e79">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_1ListHeaderSegment.html#afa5ccc039da440ac3564ca7a32a01e79" title="Namespace for global events.">EventNamespace</a>;
<a name="l00055"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a35e47f03d7c1ee0b8f5941cb382de658">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_1ListHeaderSegment.html#a35e47f03d7c1ee0b8f5941cb382de658" title="Window factory name.">WidgetTypeName</a>;
<a name="l00056"></a>00056
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="comment">/*************************************************************************</span>
<a name="l00059"></a>00059 <span class="comment"> Constants</span>
<a name="l00060"></a>00060 <span class="comment"> *************************************************************************/</span>
<a name="l00061"></a>00061 <span class="comment">// Event names</span>
<a name="l00066"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a9ea1eb908cdf72d3d6c889ea8a334a09">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_1ListHeaderSegment.html#a9ea1eb908cdf72d3d6c889ea8a334a09">EventSegmentClicked</a>;
<a name="l00072"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#ac3e0d65228a7059ac748aae375e66573">00072</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_1ListHeaderSegment.html#ac3e0d65228a7059ac748aae375e66573">EventSplitterDoubleClicked</a>;
<a name="l00078"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a66b3854681ef162be46a63f488b9e726">00078</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_1ListHeaderSegment.html#a66b3854681ef162be46a63f488b9e726">EventSizingSettingChanged</a>;
<a name="l00084"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a13d8d00ff05e8ac854767106a8efcc3c">00084</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_1ListHeaderSegment.html#a13d8d00ff05e8ac854767106a8efcc3c">EventSortDirectionChanged</a>;
<a name="l00090"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#af13a27781312bcddacc549cf8e97dfbc">00090</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_1ListHeaderSegment.html#af13a27781312bcddacc549cf8e97dfbc">EventMovableSettingChanged</a>;
<a name="l00096"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a7f3eab3b218d49837e02517dfd179445">00096</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_1ListHeaderSegment.html#a7f3eab3b218d49837e02517dfd179445">EventSegmentDragStart</a>;
<a name="l00102"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a600e271142f65cd56dae751295a857d2">00102</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_1ListHeaderSegment.html#a600e271142f65cd56dae751295a857d2">EventSegmentDragStop</a>;
<a name="l00108"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#ae1a1038b74f3159b3884d2c313f22bb4">00108</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_1ListHeaderSegment.html#ae1a1038b74f3159b3884d2c313f22bb4">EventSegmentDragPositionChanged</a>;
<a name="l00114"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a5baf0112c1aba79a85d519f708c063c7">00114</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_1ListHeaderSegment.html#a5baf0112c1aba79a85d519f708c063c7">EventSegmentSized</a>;
<a name="l00120"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a069eb10449b8c3fdc3abaa9c67ae9e0c">00120</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_1ListHeaderSegment.html#a069eb10449b8c3fdc3abaa9c67ae9e0c">EventClickableSettingChanged</a>;
<a name="l00121"></a>00121
<a name="l00122"></a>00122 <span class="comment">// Defaults</span>
<a name="l00123"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a2816caf7c9a7350d2d6bd31dfe0c2f5a">00123</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a2816caf7c9a7350d2d6bd31dfe0c2f5a" title="Default size of the sizing area.">DefaultSizingArea</a>;
<a name="l00124"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a10c7756771e652ed03b7459de223fda5">00124</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a10c7756771e652ed03b7459de223fda5" title="Amount the mouse must be dragged before drag-moving is initiated.">SegmentMoveThreshold</a>;
<a name="l00125"></a>00125
<a name="l00126"></a>00126
<a name="l00127"></a>00127 <span class="comment">/*************************************************************************</span>
<a name="l00128"></a>00128 <span class="comment"> Enumerated types</span>
<a name="l00129"></a>00129 <span class="comment"> *************************************************************************/</span>
<a name="l00134"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aad6c30ff33c01dfca72a8566c24c7b4e">00134</a> <span class="keyword">enum</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aad6c30ff33c01dfca72a8566c24c7b4e" title="Enumeration of possible values for sorting direction used with ListHeaderSegment classes.">SortDirection</a>
<a name="l00135"></a>00135 {
<a name="l00136"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aad6c30ff33c01dfca72a8566c24c7b4ea2dc4253be9c1ca3990d9729f506c17f7">00136</a> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aad6c30ff33c01dfca72a8566c24c7b4ea2dc4253be9c1ca3990d9729f506c17f7" title="Items under this segment should not be sorted.">None</a>,
<a name="l00137"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aad6c30ff33c01dfca72a8566c24c7b4ea319c97abad402c4c3864d329fdf003cb">00137</a> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aad6c30ff33c01dfca72a8566c24c7b4ea319c97abad402c4c3864d329fdf003cb" title="Items under this segment should be sorted in ascending order.">Ascending</a>,
<a name="l00138"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aad6c30ff33c01dfca72a8566c24c7b4ea6fffc6deb1b929d5cf66cc50fcb79592">00138</a> Descending
<a name="l00139"></a>00139 };
<a name="l00140"></a>00140
<a name="l00141"></a>00141
<a name="l00142"></a>00142 <span class="comment">/*************************************************************************</span>
<a name="l00143"></a>00143 <span class="comment"> Accessor Methods</span>
<a name="l00144"></a>00144 <span class="comment"> *************************************************************************/</span>
<a name="l00152"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a8c18fcf0c4085cc1c9200deec94d1e1b">00152</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a8c18fcf0c4085cc1c9200deec94d1e1b" title="Return whether this segment can be sized.">isSizingEnabled</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_sizingEnabled;}
<a name="l00153"></a>00153
<a name="l00154"></a>00154
<a name="l00167"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a1314f98efe61b3ea3dc622d3c28f519d">00167</a> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aad6c30ff33c01dfca72a8566c24c7b4e" title="Enumeration of possible values for sorting direction used with ListHeaderSegment classes.">SortDirection</a> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a1314f98efe61b3ea3dc622d3c28f519d" title="Return the current sort direction set for this segment.">getSortDirection</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_sortDir;}
<a name="l00168"></a>00168
<a name="l00169"></a>00169
<a name="l00177"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a5ee7e1ab44cbea6da25d50ae118f4d37">00177</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a5ee7e1ab44cbea6da25d50ae118f4d37" title="Return whether drag moving is enabled for this segment.">isDragMovingEnabled</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_movingEnabled;}
<a name="l00178"></a>00178
<a name="l00179"></a>00179
<a name="l00187"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a1ffb9efdf4e99e3d83396b81fc1aff48">00187</a> <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>& <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a1ffb9efdf4e99e3d83396b81fc1aff48" title="Return the current drag move position offset (in pixels relative to the top-left corner of the segmen...">getDragMoveOffset</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_dragPosition;}
<a name="l00188"></a>00188
<a name="l00189"></a>00189
<a name="l00197"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#afe013295ef78bd32b784912cd15cf4eb">00197</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#afe013295ef78bd32b784912cd15cf4eb" title="Return whether the segment is clickable.">isClickable</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_allowClicks;}
<a name="l00198"></a>00198
<a name="l00199"></a>00199
<a name="l00204"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a5f73e9ec10af4b6968dab94ab824d755">00204</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a5f73e9ec10af4b6968dab94ab824d755" title="Return whether the segment is currently in its hovering state.">isSegmentHovering</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_segmentHover;}
<a name="l00205"></a>00205
<a name="l00206"></a>00206
<a name="l00211"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a2690214ea8b744dcc154706d9a58cbd4">00211</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a2690214ea8b744dcc154706d9a58cbd4" title="Return whether the segment is currently in its pushed state.">isSegmentPushed</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_segmentPushed;}
<a name="l00212"></a>00212
<a name="l00213"></a>00213
<a name="l00218"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#ae3d4ccce9b22d86c100a665893f4f83f">00218</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#ae3d4ccce9b22d86c100a665893f4f83f" title="Return whether the splitter is currently in its hovering state.">isSplitterHovering</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_splitterHover;}
<a name="l00219"></a>00219
<a name="l00220"></a>00220
<a name="l00225"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a36e053cafd3c6c1f41b35610b45b9a94">00225</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a36e053cafd3c6c1f41b35610b45b9a94" title="Return whether the segment is currently being drag-moved.">isBeingDragMoved</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_dragMoving;}
<a name="l00226"></a>00226
<a name="l00227"></a>00227
<a name="l00232"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a9787cb9d72ac832202ec4210d2428547">00232</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a9787cb9d72ac832202ec4210d2428547" title="Return whether the segment is currently being drag-moved.">isBeingDragSized</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_dragSizing;}
<a name="l00233"></a>00233
<a name="l00234"></a>00234
<a name="l00235"></a>00235 <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>* getSizingCursorImage() <span class="keyword">const</span>;
<a name="l00236"></a>00236 <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>* getMovingCursorImage() <span class="keyword">const</span>;
<a name="l00237"></a>00237
<a name="l00238"></a>00238
<a name="l00239"></a>00239 <span class="comment">/*************************************************************************</span>
<a name="l00240"></a>00240 <span class="comment"> Manipulator Methods</span>
<a name="l00241"></a>00241 <span class="comment"> *************************************************************************/</span>
<a name="l00252"></a>00252 <span class="keywordtype">void</span> setSizingEnabled(<span class="keywordtype">bool</span> setting);
<a name="l00253"></a>00253
<a name="l00254"></a>00254
<a name="l00270"></a>00270 <span class="keywordtype">void</span> setSortDirection(SortDirection sort_dir);
<a name="l00271"></a>00271
<a name="l00272"></a>00272
<a name="l00283"></a>00283 <span class="keywordtype">void</span> setDragMovingEnabled(<span class="keywordtype">bool</span> setting);
<a name="l00284"></a>00284
<a name="l00285"></a>00285
<a name="l00296"></a>00296 <span class="keywordtype">void</span> setClickable(<span class="keywordtype">bool</span> setting);
<a name="l00297"></a>00297
<a name="l00298"></a>00298
<a name="l00299"></a>00299 <span class="keywordtype">void</span> setSizingCursorImage(<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="l00300"></a>00300 <span class="keywordtype">void</span> setSizingCursorImage(<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="l00301"></a>00301 <span class="keywordtype">void</span> setMovingCursorImage(<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="l00302"></a>00302 <span class="keywordtype">void</span> setMovingCursorImage(<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="l00303"></a>00303
<a name="l00304"></a>00304
<a name="l00305"></a>00305 <span class="comment">/*************************************************************************</span>
<a name="l00306"></a>00306 <span class="comment"> Construction & Destruction</span>
<a name="l00307"></a>00307 <span class="comment"> *************************************************************************/</span>
<a name="l00312"></a>00312 <a class="code" href="classCEGUI_1_1ListHeaderSegment.html" title="Base class for list header segment window.">ListHeaderSegment</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="l00313"></a>00313
<a name="l00314"></a>00314
<a name="l00319"></a>00319 <span class="keyword">virtual</span> ~<a class="code" href="classCEGUI_1_1ListHeaderSegment.html" title="Base class for list header segment window.">ListHeaderSegment</a>(<span class="keywordtype">void</span>);
<a name="l00320"></a>00320
<a name="l00321"></a>00321
<a name="l00322"></a>00322 <span class="keyword">protected</span>:
<a name="l00323"></a>00323 <span class="comment">/*************************************************************************</span>
<a name="l00324"></a>00324 <span class="comment"> Implementation Methods</span>
<a name="l00325"></a>00325 <span class="comment"> *************************************************************************/</span>
<a name="l00336"></a>00336 <span class="keywordtype">void</span> doDragSizing(<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="l00337"></a>00337
<a name="l00338"></a>00338
<a name="l00349"></a>00349 <span class="keywordtype">void</span> doDragMoving(<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="l00350"></a>00350
<a name="l00351"></a>00351
<a name="l00356"></a>00356 <span class="keywordtype">void</span> initDragMoving(<span class="keywordtype">void</span>);
<a name="l00357"></a>00357
<a name="l00358"></a>00358
<a name="l00363"></a>00363 <span class="keywordtype">void</span> initSizingHoverState(<span class="keywordtype">void</span>);
<a name="l00364"></a>00364
<a name="l00365"></a>00365
<a name="l00370"></a>00370 <span class="keywordtype">void</span> initSegmentHoverState(<span class="keywordtype">void</span>);
<a name="l00371"></a>00371
<a name="l00372"></a>00372
<a name="l00385"></a>00385 <span class="keywordtype">bool</span> isDragMoveThresholdExceeded(<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="l00386"></a>00386
<a name="l00387"></a>00387
<a name="l00398"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aaf0ce085a2f8642c50704c5abd8492d3">00398</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="l00399"></a>00399 <span class="keyword"> </span>{
<a name="l00400"></a>00400 <span class="keywordflow">if</span> (class_name==<span class="stringliteral">"ListHeaderSegment"</span>) <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00401"></a>00401 <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="l00402"></a>00402 }
<a name="l00403"></a>00403
<a name="l00404"></a>00404
<a name="l00405"></a>00405 <span class="comment">/*************************************************************************</span>
<a name="l00406"></a>00406 <span class="comment"> New Event Handlers</span>
<a name="l00407"></a>00407 <span class="comment"> *************************************************************************/</span>
<a name="l00412"></a>00412 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSegmentClicked(<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="l00413"></a>00413
<a name="l00414"></a>00414
<a name="l00419"></a>00419 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSplitterDoubleClicked(<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="l00420"></a>00420
<a name="l00421"></a>00421
<a name="l00426"></a>00426 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSizingSettingChanged(<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="l00427"></a>00427
<a name="l00428"></a>00428
<a name="l00433"></a>00433 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSortDirectionChanged(<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="l00434"></a>00434
<a name="l00435"></a>00435
<a name="l00440"></a>00440 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMovableSettingChanged(<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="l00441"></a>00441
<a name="l00442"></a>00442
<a name="l00447"></a>00447 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSegmentDragStart(<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="l00448"></a>00448
<a name="l00449"></a>00449
<a name="l00454"></a>00454 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSegmentDragStop(<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="l00455"></a>00455
<a name="l00456"></a>00456
<a name="l00461"></a>00461 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSegmentDragPositionChanged(<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
<a name="l00468"></a>00468 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSegmentSized(<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="l00469"></a>00469
<a name="l00470"></a>00470
<a name="l00475"></a>00475 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onClickableSettingChanged(<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="l00476"></a>00476
<a name="l00477"></a>00477
<a name="l00478"></a>00478 <span class="comment">/*************************************************************************</span>
<a name="l00479"></a>00479 <span class="comment"> Overridden Event Handlers</span>
<a name="l00480"></a>00480 <span class="comment"> *************************************************************************/</span>
<a name="l00481"></a>00481 <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="l00482"></a>00482 <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="l00483"></a>00483 <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="l00484"></a>00484 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseDoubleClicked(<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="l00485"></a>00485 <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="l00486"></a>00486 <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="l00487"></a>00487
<a name="l00488"></a>00488
<a name="l00489"></a>00489 <span class="comment">/*************************************************************************</span>
<a name="l00490"></a>00490 <span class="comment"> Implementation Data</span>
<a name="l00491"></a>00491 <span class="comment"> *************************************************************************/</span>
<a name="l00492"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a5bd4fd0e97743f2a3b92f08ad2762153">00492</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_1ListHeaderSegment.html#a5bd4fd0e97743f2a3b92f08ad2762153" title="Image to use for mouse when sizing (typically set by derived class).">d_sizingMouseCursor</a>;
<a name="l00493"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a6e7cca9b30c9b6998ed2002226b7ef5e">00493</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_1ListHeaderSegment.html#a6e7cca9b30c9b6998ed2002226b7ef5e" title="Image to use for mouse when moving (typically set by derived class).">d_movingMouseCursor</a>;
<a name="l00494"></a>00494
<a name="l00495"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a4d1e3b7743ca19493a894a0f843fd03b">00495</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a4d1e3b7743ca19493a894a0f843fd03b" title="pixel width of the sizing area.">d_splitterSize</a>;
<a name="l00496"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a81a3643e56217ee3b793293e20b9a1cb">00496</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a81a3643e56217ee3b793293e20b9a1cb" title="True if the mouse is over the splitter.">d_splitterHover</a>;
<a name="l00497"></a>00497
<a name="l00498"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a3438b224c56dc2dbb107489e7c823aa0">00498</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a3438b224c56dc2dbb107489e7c823aa0" title="true when we are being sized.">d_dragSizing</a>;
<a name="l00499"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a12ff0f0451d4743b996d2343142773d2">00499</a> <a class="code" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Point</a> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a12ff0f0451d4743b996d2343142773d2" title="point we are being dragged at when sizing or moving.">d_dragPoint</a>;
<a name="l00500"></a>00500
<a name="l00501"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#adddfd00862733d6183ab69ac6f521c46">00501</a> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aad6c30ff33c01dfca72a8566c24c7b4e" title="Enumeration of possible values for sorting direction used with ListHeaderSegment classes.">SortDirection</a> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#adddfd00862733d6183ab69ac6f521c46" title="Direction for sorting (used for deciding what icon to display).">d_sortDir</a>;
<a name="l00502"></a>00502
<a name="l00503"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a052a913a163f2bbeaf33f7bf94b2cebb">00503</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a052a913a163f2bbeaf33f7bf94b2cebb" title="true when the mouse is within the segment area (and not in sizing area).">d_segmentHover</a>;
<a name="l00504"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a3a7e1196f0691f0645996e5d2f2942ba">00504</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a3a7e1196f0691f0645996e5d2f2942ba" title="true when the left mouse button has been pressed within the confines of the segment.">d_segmentPushed</a>;
<a name="l00505"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#ab35f422d38fe2d11f5906d862364ac19">00505</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#ab35f422d38fe2d11f5906d862364ac19" title="true when sizing is enabled for this segment.">d_sizingEnabled</a>;
<a name="l00506"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a6a4fd6ea29bb69b0e13418afad74985c">00506</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a6a4fd6ea29bb69b0e13418afad74985c" title="True when drag-moving is enabled for this segment;.">d_movingEnabled</a>;
<a name="l00507"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aff643b36eebd97b7ab8779551c025531">00507</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#aff643b36eebd97b7ab8779551c025531" title="true when segment is being drag moved.">d_dragMoving</a>;
<a name="l00508"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a117473ce7e35639635e9762985076702">00508</a> <a class="code" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Point</a> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a117473ce7e35639635e9762985076702" title="position of dragged segment.">d_dragPosition</a>;
<a name="l00509"></a><a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a92a6769766253180f8ff16105dbc9c91">00509</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListHeaderSegment.html#a92a6769766253180f8ff16105dbc9c91" title="true if the segment can be clicked.">d_allowClicks</a>;
<a name="l00510"></a>00510
<a name="l00511"></a>00511 <span class="keyword">private</span>:
<a name="l00512"></a>00512 <span class="comment">/*************************************************************************</span>
<a name="l00513"></a>00513 <span class="comment"> Static Properties for this class</span>
<a name="l00514"></a>00514 <span class="comment"> *************************************************************************/</span>
<a name="l00515"></a>00515 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ListHeaderSegmentProperties_1_1Clickable.html" title="Property to access the click-able setting of the header segment.">ListHeaderSegmentProperties::Clickable</a> d_clickableProperty;
<a name="l00516"></a>00516 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ListHeaderSegmentProperties_1_1Dragable.html" title="Property to access the drag-able setting of the header segment.">ListHeaderSegmentProperties::Dragable</a> d_dragableProperty;
<a name="l00517"></a>00517 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ListHeaderSegmentProperties_1_1Sizable.html" title="Property to access the sizable setting of the header segment.">ListHeaderSegmentProperties::Sizable</a> d_sizableProperty;
<a name="l00518"></a>00518 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ListHeaderSegmentProperties_1_1SortDirection.html" title="Property to access the sort direction setting of the header segment.">ListHeaderSegmentProperties::SortDirection</a> d_sortDirectionProperty;
<a name="l00519"></a>00519 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ListHeaderSegmentProperties_1_1SizingCursorImage.html" title="Property to access the segment sizing cursor image.">ListHeaderSegmentProperties::SizingCursorImage</a> d_sizingCursorProperty;
<a name="l00520"></a>00520 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ListHeaderSegmentProperties_1_1MovingCursorImage.html" title="Property to access the segment moving cursor image.">ListHeaderSegmentProperties::MovingCursorImage</a> d_movingCursorProperty;
<a name="l00521"></a>00521
<a name="l00522"></a>00522
<a name="l00523"></a>00523 <span class="comment">/*************************************************************************</span>
<a name="l00524"></a>00524 <span class="comment"> Private methods</span>
<a name="l00525"></a>00525 <span class="comment"> *************************************************************************/</span>
<a name="l00526"></a>00526 <span class="keywordtype">void</span> addHeaderSegmentProperties(<span class="keywordtype">void</span>);
<a name="l00527"></a>00527 };
<a name="l00528"></a>00528
<a name="l00529"></a>00529 } <span class="comment">// End of CEGUI namespace section</span>
<a name="l00530"></a>00530
<a name="l00531"></a>00531 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00532"></a>00532 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(pop)</span>
<a name="l00533"></a>00533 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00534"></a>00534 <span class="preprocessor"></span>
<a name="l00535"></a>00535 <span class="preprocessor">#endif // end of guard _CEGUIListHeaderSegment_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>
|