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
|
<!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: CEGUIListboxItem.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">CEGUIListboxItem.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: CEGUIListboxItem.h</span>
<a name="l00003"></a>00003 <span class="comment"> created: 8/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 base class for list items</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 _CEGUIListboxItem_h_</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIListboxItem_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 "../CEGUIString.h"</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include "../CEGUIColourRect.h"</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "../CEGUITextUtils.h"</span>
<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 <span class="comment">// Start of CEGUI namespace section</span>
<a name="l00044"></a>00044 <span class="keyword">namespace </span>CEGUI
<a name="l00045"></a>00045 {
<a name="l00050"></a><a class="code" href="classCEGUI_1_1ListboxItem.html">00050</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1ListboxItem.html" title="Base class for list box items.">ListboxItem</a>
<a name="l00051"></a>00051 {
<a name="l00052"></a>00052 <span class="keyword">public</span>:
<a name="l00053"></a>00053 <span class="comment">/*************************************************************************</span>
<a name="l00054"></a>00054 <span class="comment"> Constants</span>
<a name="l00055"></a>00055 <span class="comment"> *************************************************************************/</span>
<a name="l00056"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a646ad1c262e2c8368422e234b6241826">00056</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a> <a class="code" href="classCEGUI_1_1ListboxItem.html#a646ad1c262e2c8368422e234b6241826" title="Default selection brush colour.">DefaultSelectionColour</a>;
<a name="l00057"></a>00057
<a name="l00058"></a>00058
<a name="l00059"></a>00059 <span class="comment">/*************************************************************************</span>
<a name="l00060"></a>00060 <span class="comment"> Construction and Destruction</span>
<a name="l00061"></a>00061 <span class="comment"> *************************************************************************/</span>
<a name="l00066"></a>00066 <a class="code" href="classCEGUI_1_1ListboxItem.html" title="Base class for list box items.">ListboxItem</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& text, uint item_id = 0, <span class="keywordtype">void</span>* item_data = 0, <span class="keywordtype">bool</span> disabled = <span class="keyword">false</span>, <span class="keywordtype">bool</span> auto_delete = <span class="keyword">true</span>);
<a name="l00067"></a>00067
<a name="l00068"></a>00068
<a name="l00073"></a>00073 <span class="keyword">virtual</span> ~<a class="code" href="classCEGUI_1_1ListboxItem.html" title="Base class for list box items.">ListboxItem</a>(<span class="keywordtype">void</span>);
<a name="l00074"></a>00074
<a name="l00075"></a>00075
<a name="l00076"></a>00076 <span class="comment">/*************************************************************************</span>
<a name="l00077"></a>00077 <span class="comment"> Accessors</span>
<a name="l00078"></a>00078 <span class="comment"> *************************************************************************/</span>
<a name="l00089"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#ae4e0a1e7bd53cbeae61095a6a335bd20">00089</a> <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_1ListboxItem.html#ae4e0a1e7bd53cbeae61095a6a335bd20" title="return the text string set for this list box item.">getTooltipText</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_tooltipText;}
<a name="l00090"></a>00090
<a name="l00091"></a>00091 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& getText(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_textLogical;}
<a name="l00092"></a>00092
<a name="l00094"></a>00094 <span class="keyword">const</span> String& getTextVisual() <span class="keyword">const</span>;
<a name="l00095"></a>00095
<a name="l00106"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a5fb43d99ffd068192e8c1d11b41cc76c">00106</a> uint <a class="code" href="classCEGUI_1_1ListboxItem.html#a5fb43d99ffd068192e8c1d11b41cc76c" title="Return the current ID assigned to this list box item.">getID</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_itemID;}
<a name="l00107"></a>00107
<a name="l00108"></a>00108
<a name="l00119"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a73b3eba79727d9421c555e4fad3ace09">00119</a> <span class="keywordtype">void</span>* <a class="code" href="classCEGUI_1_1ListboxItem.html#a73b3eba79727d9421c555e4fad3ace09" title="Return the pointer to any client assigned user data attached to this lis box item.">getUserData</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_itemData;}
<a name="l00120"></a>00120
<a name="l00121"></a>00121
<a name="l00129"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#ab6bf0f9e5cdf062ab5e377ebb92e474a">00129</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#ab6bf0f9e5cdf062ab5e377ebb92e474a" title="return whether this item is selected.">isSelected</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_selected;}
<a name="l00130"></a>00130
<a name="l00131"></a>00131
<a name="l00139"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a4c2d6bca2ec1a67154c8e310b0a7c463">00139</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a4c2d6bca2ec1a67154c8e310b0a7c463" title="return whether this item is disabled.">isDisabled</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_disabled;}
<a name="l00140"></a>00140
<a name="l00141"></a>00141
<a name="l00152"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#acd4ae4d5e27eee5427bbb8aa690b0c9f">00152</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#acd4ae4d5e27eee5427bbb8aa690b0c9f" title="return whether this item will be automatically deleted when the list box it is attached to is destroy...">isAutoDeleted</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_autoDelete;}
<a name="l00153"></a>00153
<a name="l00154"></a>00154
<a name="l00164"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#aea71b777f899e46c3e661ddd3cdae342">00164</a> <span class="keyword">const</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 class="code" href="classCEGUI_1_1ListboxItem.html#aea71b777f899e46c3e661ddd3cdae342" title="Get the owner window for this ListboxItem.">getOwnerWindow</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_owner;}
<a name="l00165"></a>00165
<a name="l00166"></a>00166
<a name="l00174"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a93f63a0926916d4e64c142b8f2e5e4ab">00174</a> <a class="code" href="classCEGUI_1_1ColourRect.html" title="Class that holds details of colours for the four corners of a rectangle.">ColourRect</a> <a class="code" href="classCEGUI_1_1ListboxItem.html#a93f63a0926916d4e64c142b8f2e5e4ab" title="Return the current colours used for selection highlighting.">getSelectionColours</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_selectCols;}
<a name="l00175"></a>00175
<a name="l00176"></a>00176
<a name="l00184"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a9380149c63c805bc3bd0cbf4727384cd">00184</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_1ListboxItem.html#a9380149c63c805bc3bd0cbf4727384cd" title="Return the current selection highlighting brush.">getSelectionBrushImage</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_selectBrush;}
<a name="l00185"></a>00185
<a name="l00186"></a>00186
<a name="l00187"></a>00187 <span class="comment">/*************************************************************************</span>
<a name="l00188"></a>00188 <span class="comment"> Manipulators</span>
<a name="l00189"></a>00189 <span class="comment"> *************************************************************************/</span>
<a name="l00203"></a>00203 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setText(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& text);
<a name="l00204"></a>00204
<a name="l00205"></a>00205 <span class="keywordtype">void</span> setTooltipText(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& text) {d_tooltipText = text;}
<a name="l00206"></a>00206
<a name="l00220"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a07e9f5502dd7d4898312a80072fcfc94">00220</a> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a07e9f5502dd7d4898312a80072fcfc94" title="Set the ID assigned to this list box item.">setID</a>(uint item_id) {d_itemID = item_id;}
<a name="l00221"></a>00221
<a name="l00222"></a>00222
<a name="l00236"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a258bf3f1b91fe4ab151d0d2d86e0a16f">00236</a> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a258bf3f1b91fe4ab151d0d2d86e0a16f" title="Set the client assigned user data attached to this lis box item.">setUserData</a>(<span class="keywordtype">void</span>* item_data) {d_itemData = item_data;}
<a name="l00237"></a>00237
<a name="l00238"></a>00238
<a name="l00249"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a43f3a158bf94eae61eba38a37bb93ffb">00249</a> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a43f3a158bf94eae61eba38a37bb93ffb" title="set whether this item is selected.">setSelected</a>(<span class="keywordtype">bool</span> setting) {d_selected = setting;}
<a name="l00250"></a>00250
<a name="l00251"></a>00251
<a name="l00262"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#ab794b8a6268da1093d6dfc24c0877859">00262</a> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#ab794b8a6268da1093d6dfc24c0877859" title="set whether this item is disabled.">setDisabled</a>(<span class="keywordtype">bool</span> setting) {d_disabled = setting;}
<a name="l00263"></a>00263
<a name="l00277"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a9cae53680f6066a54f63ce97d24a2102">00277</a> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a9cae53680f6066a54f63ce97d24a2102" title="Set whether this item will be automatically deleted when the list box it is attached to is destroyed...">setAutoDeleted</a>(<span class="keywordtype">bool</span> setting) {d_autoDelete = setting;}
<a name="l00278"></a>00278
<a name="l00279"></a>00279
<a name="l00291"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#ac0da9f81a9f8c24c3569ffe6823a9b36">00291</a> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#ac0da9f81a9f8c24c3569ffe6823a9b36" title="Set the owner window for this ListboxItem. This is called by all the list box widgets when an item is...">setOwnerWindow</a>(<span class="keyword">const</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>* owner) {d_owner = owner;}
<a name="l00292"></a>00292
<a name="l00293"></a>00293
<a name="l00304"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a0484157b7bdf6c25754680697b2fce90">00304</a> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a0484157b7bdf6c25754680697b2fce90" title="Set the colours used for selection highlighting.">setSelectionColours</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ColourRect.html" title="Class that holds details of colours for the four corners of a rectangle.">ColourRect</a>& cols) {d_selectCols = cols;}
<a name="l00305"></a>00305
<a name="l00306"></a>00306
<a name="l00326"></a>00326 <span class="keywordtype">void</span> setSelectionColours(<a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a> top_left_colour, <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a> top_right_colour, <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a> bottom_left_colour, <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a> bottom_right_colour);
<a name="l00327"></a>00327
<a name="l00328"></a>00328
<a name="l00339"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a44095b87351c64f9a21698417f6cd1c4">00339</a> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a44095b87351c64f9a21698417f6cd1c4" title="Set the colours used for selection highlighting.">setSelectionColours</a>(<a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a> col) {<a class="code" href="classCEGUI_1_1ListboxItem.html#a44095b87351c64f9a21698417f6cd1c4" title="Set the colours used for selection highlighting.">setSelectionColours</a>(col, col, col, col);}
<a name="l00340"></a>00340
<a name="l00341"></a>00341
<a name="l00352"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a7268ca25103f32cce34568ccda344e97">00352</a> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a7268ca25103f32cce34568ccda344e97" title="Set the selection highlighting brush image.">setSelectionBrushImage</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>* image) {d_selectBrush = image;}
<a name="l00353"></a>00353
<a name="l00354"></a>00354
<a name="l00368"></a>00368 <span class="keywordtype">void</span> setSelectionBrushImage(<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="l00369"></a>00369
<a name="l00370"></a>00370
<a name="l00371"></a>00371 <span class="comment">/*************************************************************************</span>
<a name="l00372"></a>00372 <span class="comment"> Abstract portion of interface</span>
<a name="l00373"></a>00373 <span class="comment"> *************************************************************************/</span>
<a name="l00381"></a>00381 <span class="keyword">virtual</span> <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something.">Size</a> getPixelSize(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
<a name="l00382"></a>00382
<a name="l00383"></a>00383
<a name="l00400"></a>00400 <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw(<a class="code" href="classCEGUI_1_1GeometryBuffer.html" title="Abstract class defining the interface for objects that buffer geometry for later rendering.">GeometryBuffer</a>& buffer, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>& targetRect,
<a name="l00401"></a>00401 <span class="keywordtype">float</span> alpha, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>* clipper) <span class="keyword">const</span> = 0;
<a name="l00402"></a>00402
<a name="l00403"></a>00403 <span class="comment">/*************************************************************************</span>
<a name="l00404"></a>00404 <span class="comment"> Operators</span>
<a name="l00405"></a>00405 <span class="comment"> *************************************************************************/</span>
<a name="l00410"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a8eac1f792aba3c5d44acf3a2f83ac084">00410</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a8eac1f792aba3c5d44acf3a2f83ac084" title="Less-than operator, compares item texts.">operator<</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ListboxItem.html" title="Base class for list box items.">ListboxItem</a>& rhs)<span class="keyword"> const </span>{<span class="keywordflow">return</span> getText() < rhs.getText();}
<a name="l00411"></a>00411
<a name="l00412"></a>00412
<a name="l00417"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a374cd6df6cb39ced7aa2f51635a250e3">00417</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a374cd6df6cb39ced7aa2f51635a250e3" title="Greater-than operator, compares item texts.">operator></a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ListboxItem.html" title="Base class for list box items.">ListboxItem</a>& rhs)<span class="keyword"> const </span>{<span class="keywordflow">return</span> getText() > rhs.getText();}
<a name="l00418"></a>00418
<a name="l00419"></a>00419
<a name="l00420"></a>00420 <span class="keyword">protected</span>:
<a name="l00421"></a>00421 <span class="comment">/*************************************************************************</span>
<a name="l00422"></a>00422 <span class="comment"> Implementation methods</span>
<a name="l00423"></a>00423 <span class="comment"> *************************************************************************/</span>
<a name="l00429"></a>00429 <a class="code" href="classCEGUI_1_1ColourRect.html" title="Class that holds details of colours for the four corners of a rectangle.">ColourRect</a> getModulateAlphaColourRect(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ColourRect.html" title="Class that holds details of colours for the four corners of a rectangle.">ColourRect</a>& cols, <span class="keywordtype">float</span> alpha) <span class="keyword">const</span>;
<a name="l00430"></a>00430
<a name="l00431"></a>00431
<a name="l00437"></a>00437 <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a> calculateModulatedAlphaColour(<a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a> col, <span class="keywordtype">float</span> alpha) <span class="keyword">const</span>;
<a name="l00438"></a>00438
<a name="l00439"></a>00439
<a name="l00440"></a>00440 <span class="comment">/*************************************************************************</span>
<a name="l00441"></a>00441 <span class="comment"> Implementation Data</span>
<a name="l00442"></a>00442 <span class="comment"> *************************************************************************/</span>
<a name="l00443"></a>00443 <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> d_textLogical;
<a name="l00445"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#ad366e6d5a5a4b7466860176e375cf703">00445</a> <a class="code" href="classCEGUI_1_1BiDiVisualMapping.html" title="Abstract class to wrap a BiDi visual mapping of a text string.">BiDiVisualMapping</a>* <a class="code" href="classCEGUI_1_1ListboxItem.html#ad366e6d5a5a4b7466860176e375cf703" title="pointer to bidirection support object">d_bidiVisualMapping</a>;
<a name="l00447"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a405fdf1331078876d4109df92fcb0f2f">00447</a> <span class="keyword">mutable</span> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#a405fdf1331078876d4109df92fcb0f2f" title="whether bidi visual mapping has been updated since last text change.">d_bidiDataValid</a>;
<a name="l00448"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a48c29c6d8eec69a540ee9f9f0d939b9d">00448</a> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> <a class="code" href="classCEGUI_1_1ListboxItem.html#a48c29c6d8eec69a540ee9f9f0d939b9d" title="Text for the individual tooltip of this item.">d_tooltipText</a>;
<a name="l00449"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a9a643f4b953b68a941262cc75edd803c">00449</a> uint <a class="code" href="classCEGUI_1_1ListboxItem.html#a9a643f4b953b68a941262cc75edd803c" title="ID code assigned by client code. This has no meaning within the GUI system.">d_itemID</a>;
<a name="l00450"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a57fcfcaad41983ad35e1941365a850a4">00450</a> <span class="keywordtype">void</span>* <a class="code" href="classCEGUI_1_1ListboxItem.html#a57fcfcaad41983ad35e1941365a850a4" title="Pointer to some client code data. This has no meaning within the GUI system.">d_itemData</a>;
<a name="l00451"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#af59c0d29275c5750d081d4e6f102b2bf">00451</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#af59c0d29275c5750d081d4e6f102b2bf" title="true if this item is selected. false if the item is not selected.">d_selected</a>;
<a name="l00452"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#abb26e775a068b37b811ab3c81615be5c">00452</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#abb26e775a068b37b811ab3c81615be5c" title="true if this item is disabled. false if the item is not disabled.">d_disabled</a>;
<a name="l00453"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#adff46b14a860da44ed92afe7211a4cfa">00453</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ListboxItem.html#adff46b14a860da44ed92afe7211a4cfa" title="true if the system should destroy this item, false if client code will destroy the item...">d_autoDelete</a>;
<a name="l00454"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a1f5a7f3e36a622cc5817b68c46676a9c">00454</a> <span class="keyword">const</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 class="code" href="classCEGUI_1_1ListboxItem.html#a1f5a7f3e36a622cc5817b68c46676a9c" title="Pointer to the window that owns this item.">d_owner</a>;
<a name="l00455"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#a6c901a2731c648a9d0074c2d9d108af5">00455</a> <a class="code" href="classCEGUI_1_1ColourRect.html" title="Class that holds details of colours for the four corners of a rectangle.">ColourRect</a> <a class="code" href="classCEGUI_1_1ListboxItem.html#a6c901a2731c648a9d0074c2d9d108af5" title="Colours used for selection highlighting.">d_selectCols</a>;
<a name="l00456"></a><a class="code" href="classCEGUI_1_1ListboxItem.html#aa59d9fd4e1de7fe5fd67b36c97c6872e">00456</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_1ListboxItem.html#aa59d9fd4e1de7fe5fd67b36c97c6872e" title="Image used for rendering selection.">d_selectBrush</a>;
<a name="l00457"></a>00457 };
<a name="l00458"></a>00458
<a name="l00459"></a>00459 } <span class="comment">// End of CEGUI namespace section</span>
<a name="l00460"></a>00460
<a name="l00461"></a>00461 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00462"></a>00462 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(pop)</span>
<a name="l00463"></a>00463 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00464"></a>00464 <span class="preprocessor"></span>
<a name="l00465"></a>00465 <span class="preprocessor">#endif // end of guard _CEGUIListboxItem_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>
|