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: CEGUIScrollbar.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">CEGUIScrollbar.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: CEGUIScrollbar.h</span>
<a name="l00003"></a>00003 <span class="comment"> created: 13/4/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">/***************************************************************************</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2004 - 2010 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 _CEGUIScrollbar_h_</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIScrollbar_h_</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#include "../CEGUIBase.h"</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "../CEGUIWindow.h"</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include "CEGUIScrollbarProperties.h"</span>
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4251)</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span>
<a name="l00040"></a>00040 <span class="comment">// Start of CEGUI namespace section</span>
<a name="l00041"></a>00041 <span class="keyword">namespace </span>CEGUI
<a name="l00042"></a>00042 {
<a name="l00047"></a><a class="code" href="classCEGUI_1_1ScrollbarWindowRenderer.html">00047</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1ScrollbarWindowRenderer.html" title="Base class for Scrollbar window renderer objects.">ScrollbarWindowRenderer</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1WindowRenderer.html" title="Base-class for the assignable WindowRenderer object.">WindowRenderer</a>
<a name="l00048"></a>00048 {
<a name="l00049"></a>00049 <span class="keyword">public</span>:
<a name="l00054"></a>00054 <a class="code" href="classCEGUI_1_1ScrollbarWindowRenderer.html" title="Base class for Scrollbar window renderer objects.">ScrollbarWindowRenderer</a>(<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="l00055"></a>00055
<a name="l00061"></a>00061 <span class="keyword">virtual</span> <span class="keywordtype">void</span> updateThumb(<span class="keywordtype">void</span>) = 0;
<a name="l00062"></a>00062
<a name="l00072"></a>00072 <span class="keyword">virtual</span> <span class="keywordtype">float</span> getValueFromThumb(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
<a name="l00073"></a>00073
<a name="l00087"></a>00087 <span class="keyword">virtual</span> <span class="keywordtype">float</span> getAdjustDirectionFromPoint(<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>& pt) <span class="keyword">const</span> = 0;
<a name="l00088"></a>00088 };
<a name="l00089"></a>00089
<a name="l00098"></a><a class="code" href="classCEGUI_1_1Scrollbar.html">00098</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1Scrollbar.html" title="Base scroll bar class.">Scrollbar</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="l00099"></a>00099 {
<a name="l00100"></a>00100 <span class="keyword">public</span>:
<a name="l00102"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a431602064c56a159a4ae09bed588b4d0">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_1Scrollbar.html#a431602064c56a159a4ae09bed588b4d0" title="Namespace for global events.">EventNamespace</a>;
<a name="l00104"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a1d36e46bb1cd48732b82577020e7aed8">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_1Scrollbar.html#a1d36e46bb1cd48732b82577020e7aed8" title="Window factory name.">WidgetTypeName</a>;
<a name="l00105"></a>00105
<a name="l00106"></a>00106 <span class="comment">/*************************************************************************</span>
<a name="l00107"></a>00107 <span class="comment"> Event name constants</span>
<a name="l00108"></a>00108 <span class="comment"> *************************************************************************/</span>
<a name="l00114"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a6d5ad554df531170adc3ff3e40377dcd">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_1Scrollbar.html#a6d5ad554df531170adc3ff3e40377dcd">EventScrollPositionChanged</a>;
<a name="l00120"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a80243f56030d521188a9c2e905430448">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_1Scrollbar.html#a80243f56030d521188a9c2e905430448">EventThumbTrackStarted</a>;
<a name="l00126"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#ac6c1f06e473c3d62a6130af2c3aaf09b">00126</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_1Scrollbar.html#ac6c1f06e473c3d62a6130af2c3aaf09b">EventThumbTrackEnded</a>;
<a name="l00132"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a3d22f090d1fc4ca621c0d8e81ddc5d7e">00132</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_1Scrollbar.html#a3d22f090d1fc4ca621c0d8e81ddc5d7e">EventScrollConfigChanged</a>;
<a name="l00133"></a>00133
<a name="l00134"></a>00134 <span class="comment">/*************************************************************************</span>
<a name="l00135"></a>00135 <span class="comment"> Child Widget name suffix constants</span>
<a name="l00136"></a>00136 <span class="comment"> *************************************************************************/</span>
<a name="l00138"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#ad8791b6f0301470ac6e42f94904ce7b9">00138</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_1Scrollbar.html#ad8791b6f0301470ac6e42f94904ce7b9" title="Widget name suffix for the thumb component.">ThumbNameSuffix</a>;
<a name="l00140"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a451c6184189cf7991d314beb222ea2a3">00140</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_1Scrollbar.html#a451c6184189cf7991d314beb222ea2a3" title="Widget name suffix for the increase button component.">IncreaseButtonNameSuffix</a>;
<a name="l00142"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#af88554eef892d625ce0739e4ef14fc63">00142</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_1Scrollbar.html#af88554eef892d625ce0739e4ef14fc63" title="Widget name suffix for the decrease button component.">DecreaseButtonNameSuffix</a>;
<a name="l00143"></a>00143
<a name="l00144"></a>00144 <span class="comment">/*************************************************************************</span>
<a name="l00145"></a>00145 <span class="comment"> Accessor functions</span>
<a name="l00146"></a>00146 <span class="comment"> *************************************************************************/</span>
<a name="l00163"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a8b6ce07268e61e013a17089b1c8fb847">00163</a> <span class="keywordtype">float</span> getDocumentSize(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00164"></a>00164 <span class="keyword"> </span>{
<a name="l00165"></a>00165 <span class="keywordflow">return</span> d_documentSize;
<a name="l00166"></a>00166 }
<a name="l00167"></a>00167
<a name="l00185"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a4d8c169526487239eee110f9bc73428c">00185</a> <span class="keywordtype">float</span> getPageSize(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00186"></a>00186 <span class="keyword"> </span>{
<a name="l00187"></a>00187 <span class="keywordflow">return</span> d_pageSize;
<a name="l00188"></a>00188 }
<a name="l00189"></a>00189
<a name="l00207"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#af5e6c21751359fc8323189ff95a2d2d2">00207</a> <span class="keywordtype">float</span> getStepSize(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00208"></a>00208 <span class="keyword"> </span>{
<a name="l00209"></a>00209 <span class="keywordflow">return</span> d_stepSize;
<a name="l00210"></a>00210 }
<a name="l00211"></a>00211
<a name="l00229"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#ad2a27a76a28578eb5ba7e1fa63b28f6d">00229</a> <span class="keywordtype">float</span> getOverlapSize(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00230"></a>00230 <span class="keyword"> </span>{
<a name="l00231"></a>00231 <span class="keywordflow">return</span> d_overlapSize;
<a name="l00232"></a>00232 }
<a name="l00233"></a>00233
<a name="l00250"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#ad2f98f1d58641187b32c278ebfb8771d">00250</a> <span class="keywordtype">float</span> getScrollPosition(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00251"></a>00251 <span class="keyword"> </span>{
<a name="l00252"></a>00252 <span class="keywordflow">return</span> d_position;
<a name="l00253"></a>00253 }
<a name="l00254"></a>00254
<a name="l00266"></a>00266 <a class="code" href="classCEGUI_1_1PushButton.html" title="Base class to provide logic for push button type widgets.">PushButton</a>* getIncreaseButton() <span class="keyword">const</span>;
<a name="l00267"></a>00267
<a name="l00279"></a>00279 <a class="code" href="classCEGUI_1_1PushButton.html" title="Base class to provide logic for push button type widgets.">PushButton</a>* getDecreaseButton() <span class="keyword">const</span>;
<a name="l00280"></a>00280
<a name="l00291"></a>00291 <a class="code" href="classCEGUI_1_1Thumb.html" title="Base class for Thumb widget.">Thumb</a>* getThumb() <span class="keyword">const</span>;
<a name="l00292"></a>00292
<a name="l00293"></a>00293 <span class="comment">/*************************************************************************</span>
<a name="l00294"></a>00294 <span class="comment"> Manipulator Commands</span>
<a name="l00295"></a>00295 <span class="comment"> *************************************************************************/</span>
<a name="l00307"></a>00307 <span class="keyword">virtual</span> <span class="keywordtype">void</span> initialiseComponents(<span class="keywordtype">void</span>);
<a name="l00308"></a>00308
<a name="l00328"></a>00328 <span class="keywordtype">void</span> setDocumentSize(<span class="keywordtype">float</span> document_size);
<a name="l00329"></a>00329
<a name="l00350"></a>00350 <span class="keywordtype">void</span> setPageSize(<span class="keywordtype">float</span> page_size);
<a name="l00351"></a>00351
<a name="l00372"></a>00372 <span class="keywordtype">void</span> setStepSize(<span class="keywordtype">float</span> step_size);
<a name="l00373"></a>00373
<a name="l00394"></a>00394 <span class="keywordtype">void</span> setOverlapSize(<span class="keywordtype">float</span> overlap_size);
<a name="l00395"></a>00395
<a name="l00417"></a>00417 <span class="keywordtype">void</span> setScrollPosition(<span class="keywordtype">float</span> position);
<a name="l00418"></a>00418
<a name="l00453"></a>00453 <span class="keywordtype">void</span> setConfig(<span class="keyword">const</span> <span class="keywordtype">float</span>* <span class="keyword">const</span> document_size,
<a name="l00454"></a>00454 <span class="keyword">const</span> <span class="keywordtype">float</span>* <span class="keyword">const</span> page_size,
<a name="l00455"></a>00455 <span class="keyword">const</span> <span class="keywordtype">float</span>* <span class="keyword">const</span> step_size,
<a name="l00456"></a>00456 <span class="keyword">const</span> <span class="keywordtype">float</span>* <span class="keyword">const</span> overlap_size,
<a name="l00457"></a>00457 <span class="keyword">const</span> <span class="keywordtype">float</span>* <span class="keyword">const</span> position);
<a name="l00458"></a>00458
<a name="l00473"></a>00473 <span class="keywordtype">void</span> setEndLockEnabled(<span class="keyword">const</span> <span class="keywordtype">bool</span> enabled);
<a name="l00474"></a>00474
<a name="l00490"></a>00490 <span class="keywordtype">bool</span> isEndLockEnabled() <span class="keyword">const</span>;
<a name="l00491"></a>00491
<a name="l00493"></a>00493 <a class="code" href="classCEGUI_1_1Scrollbar.html" title="Base scroll bar class.">Scrollbar</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="l00494"></a>00494
<a name="l00496"></a>00496 <span class="keyword">virtual</span> ~<a class="code" href="classCEGUI_1_1Scrollbar.html" title="Base scroll bar class.">Scrollbar</a>(<span class="keywordtype">void</span>);
<a name="l00497"></a>00497
<a name="l00498"></a>00498 <span class="keyword">protected</span>:
<a name="l00504"></a>00504 <span class="keywordtype">void</span> updateThumb(<span class="keywordtype">void</span>);
<a name="l00505"></a>00505
<a name="l00515"></a>00515 <span class="keywordtype">float</span> getValueFromThumb(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00516"></a>00516
<a name="l00530"></a>00530 <span class="keywordtype">float</span> getAdjustDirectionFromPoint(<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>& pt) <span class="keyword">const</span>;
<a name="l00531"></a>00531
<a name="l00535"></a>00535 <span class="keywordtype">bool</span> setScrollPosition_impl(<span class="keyword">const</span> <span class="keywordtype">float</span> position);
<a name="l00536"></a>00536
<a name="l00538"></a>00538 <span class="keywordtype">bool</span> isAtEnd() <span class="keyword">const</span>;
<a name="l00539"></a>00539
<a name="l00541"></a>00541 <span class="keywordtype">float</span> getMaxScrollPosition() <span class="keyword">const</span>;
<a name="l00542"></a>00542
<a name="l00544"></a>00544 <span class="keywordtype">bool</span> handleThumbMoved(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1EventArgs.html" title="Base class used as the argument to all subscribers Event object.">EventArgs</a>& e);
<a name="l00545"></a>00545
<a name="l00547"></a>00547 <span class="keywordtype">bool</span> handleIncreaseClicked(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1EventArgs.html" title="Base class used as the argument to all subscribers Event object.">EventArgs</a>& e);
<a name="l00548"></a>00548
<a name="l00550"></a>00550 <span class="keywordtype">bool</span> handleDecreaseClicked(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1EventArgs.html" title="Base class used as the argument to all subscribers Event object.">EventArgs</a>& e);
<a name="l00551"></a>00551
<a name="l00553"></a>00553 <span class="keywordtype">bool</span> handleThumbTrackStarted(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1EventArgs.html" title="Base class used as the argument to all subscribers Event object.">EventArgs</a>& e);
<a name="l00554"></a>00554
<a name="l00556"></a>00556 <span class="keywordtype">bool</span> handleThumbTrackEnded(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1EventArgs.html" title="Base class used as the argument to all subscribers Event object.">EventArgs</a>& e);
<a name="l00557"></a>00557
<a name="l00569"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a8af4007728ff2c305f418bf654b564a2">00569</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="l00570"></a>00570 <span class="keyword"> </span>{
<a name="l00571"></a>00571 <span class="keywordflow">if</span> (class_name == <span class="stringliteral">"Scrollbar"</span>) <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00572"></a>00572
<a name="l00573"></a>00573 <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="l00574"></a>00574 }
<a name="l00575"></a>00575
<a name="l00577"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a73b8b4a14de3c04f216ac3342a3d8c95">00577</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> validateWindowRenderer(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& name)<span class="keyword"> const</span>
<a name="l00578"></a>00578 <span class="keyword"> </span>{
<a name="l00579"></a>00579 <span class="keywordflow">return</span> (name == <span class="stringliteral">"Scrollbar"</span>);
<a name="l00580"></a>00580 }
<a name="l00581"></a>00581
<a name="l00582"></a>00582 <span class="comment">// New event handlers for slider widget</span>
<a name="l00584"></a>00584 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> onScrollPositionChanged(<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="l00585"></a>00585
<a name="l00587"></a>00587 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onThumbTrackStarted(<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="l00588"></a>00588
<a name="l00590"></a>00590 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onThumbTrackEnded(<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="l00591"></a>00591
<a name="l00593"></a>00593 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onScrollConfigChanged(<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="l00594"></a>00594
<a name="l00595"></a>00595 <span class="comment">// Overridden event handlers</span>
<a name="l00596"></a>00596 <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="l00597"></a>00597 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseWheel(<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="l00598"></a>00598
<a name="l00599"></a>00599 <span class="comment">// Implementation Data</span>
<a name="l00601"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a81337655973579ca434a82a7b06053f5">00601</a> <span class="comment"></span> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1Scrollbar.html#a81337655973579ca434a82a7b06053f5" title="The size of the document / data being scrolled thorugh.">d_documentSize</a>;
<a name="l00603"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#afafa0625fb39956dc1148e639ddd3806">00603</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1Scrollbar.html#afafa0625fb39956dc1148e639ddd3806" title="The size of a single 'page' of data.">d_pageSize</a>;
<a name="l00605"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a5f45de07bc3dc9f13a39604fc83390ee">00605</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1Scrollbar.html#a5f45de07bc3dc9f13a39604fc83390ee" title="Step size used for increase / decrease button clicks.">d_stepSize</a>;
<a name="l00607"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#ad3ed45c4bd2abba1abcde9cea95bd582">00607</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1Scrollbar.html#ad3ed45c4bd2abba1abcde9cea95bd582" title="Amount of overlap when jumping by a page.">d_overlapSize</a>;
<a name="l00609"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#acbef42a578326850c37e309be7e81c5b">00609</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1Scrollbar.html#acbef42a578326850c37e309be7e81c5b" title="Current scroll position.">d_position</a>;
<a name="l00611"></a><a class="code" href="classCEGUI_1_1Scrollbar.html#a25ba6fe46bed75cf74f13c9bb8be4460">00611</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1Scrollbar.html#a25ba6fe46bed75cf74f13c9bb8be4460" title="whether 'end lock' mode is enabled.">d_endLockPosition</a>;
<a name="l00612"></a>00612
<a name="l00613"></a>00613 <span class="keyword">private</span>:
<a name="l00614"></a>00614 <span class="comment">// Static Properties for this class</span>
<a name="l00615"></a>00615 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ScrollbarProperties_1_1DocumentSize.html" title="Property to access the document size for the Scrollbar.">ScrollbarProperties::DocumentSize</a> d_documentSizeProperty;
<a name="l00616"></a>00616 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ScrollbarProperties_1_1PageSize.html" title="Property to access the page size for the Scrollbar.">ScrollbarProperties::PageSize</a> d_pageSizeProperty;
<a name="l00617"></a>00617 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ScrollbarProperties_1_1StepSize.html" title="Property to access the step size for the Scrollbar.">ScrollbarProperties::StepSize</a> d_stepSizeProperty;
<a name="l00618"></a>00618 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ScrollbarProperties_1_1OverlapSize.html" title="Property to access the overlap size for the Scrollbar.">ScrollbarProperties::OverlapSize</a> d_overlapSizeProperty;
<a name="l00619"></a>00619 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ScrollbarProperties_1_1ScrollPosition.html" title="Property to access the scroll position of the Scrollbar.">ScrollbarProperties::ScrollPosition</a> d_scrollPositionProperty;
<a name="l00620"></a>00620 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ScrollbarProperties_1_1EndLockEnabled.html" title="Property to access the end lock mode setting for the Scrollbar.">ScrollbarProperties::EndLockEnabled</a> d_endLockEnabledProperty;
<a name="l00621"></a>00621
<a name="l00623"></a>00623 <span class="keywordtype">void</span> addScrollbarProperties(<span class="keywordtype">void</span>);
<a name="l00624"></a>00624 };
<a name="l00625"></a>00625
<a name="l00626"></a>00626 } <span class="comment">// End of CEGUI namespace section</span>
<a name="l00627"></a>00627
<a name="l00628"></a>00628 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00629"></a>00629 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(pop)</span>
<a name="l00630"></a>00630 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00631"></a>00631 <span class="preprocessor"></span>
<a name="l00632"></a>00632 <span class="preprocessor">#endif // end of guard _CEGUIScrollbar_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>
|