File: CEGUIImageset_8h_source.html

package info (click to toggle)
cegui-mk2 0.7.6-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 105,384 kB
  • sloc: cpp: 142,729; ansic: 27,984; sh: 11,010; makefile: 2,275; python: 916; xml: 17
file content (283 lines) | stat: -rw-r--r-- 34,515 bytes parent folder | download | duplicates (2)
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
<!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: CEGUIImageset.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&#160;<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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">CEGUIImageset.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:       CEGUIImageset.h</span>
<a name="l00003"></a>00003 <span class="comment">        created:        21/2/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:        Defines the interface for the Imageset 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 &amp; 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"> *   &quot;Software&quot;), 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 &quot;AS IS&quot;, 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 _CEGUIImageset_h_</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIImageset_h_</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;CEGUIBase.h&quot;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &quot;CEGUIString.h&quot;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &quot;CEGUIRect.h&quot;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;CEGUIColourRect.h&quot;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &quot;CEGUIImagesetManager.h&quot;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &quot;CEGUIImage.h&quot;</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include &quot;CEGUIIteratorBase.h&quot;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &quot;CEGUIXMLSerializer.h&quot;</span> 
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#       pragma warning(push)</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#       pragma warning(disable : 4251)</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="comment">// Start of CEGUI namespace section</span>
<a name="l00052"></a>00052 <span class="keyword">namespace </span>CEGUI
<a name="l00053"></a>00053 {
<a name="l00054"></a>00054 
<a name="l00063"></a><a class="code" href="classCEGUI_1_1Imageset.html">00063</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1Imageset.html" title="Offers functions to define, access, and draw, a set of image components on a single graphical surface...">Imageset</a>
<a name="l00064"></a>00064 {
<a name="l00065"></a>00065         <span class="keyword">typedef</span> std::map&lt;String, Image, String::FastLessCompare&gt;        ImageRegistry;
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="keyword">public</span>:
<a name="l00075"></a>00075         <a class="code" href="classCEGUI_1_1Imageset.html" title="Offers functions to define, access, and draw, a set of image components on a single graphical surface...">Imageset</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name, <a class="code" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a>&amp; texture);
<a name="l00076"></a>00076 
<a name="l00102"></a>00102     <a class="code" href="classCEGUI_1_1Imageset.html" title="Offers functions to define, access, and draw, a set of image components on a single graphical surface...">Imageset</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; filename, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; resourceGroup);
<a name="l00103"></a>00103 
<a name="l00108"></a>00108         ~<a class="code" href="classCEGUI_1_1Imageset.html" title="Offers functions to define, access, and draw, a set of image components on a single graphical surface...">Imageset</a>(<span class="keywordtype">void</span>);
<a name="l00109"></a>00109 
<a name="l00110"></a>00110 
<a name="l00111"></a><a class="code" href="classCEGUI_1_1Imageset.html#a3648ab8bda70657ffbe9eaec85513782">00111</a>         <span class="keyword">typedef</span> <a class="code" href="classCEGUI_1_1ConstBaseIterator.html" title="Base class constant iterator used to offer iteration over various collections within the system...">ConstBaseIterator&lt;ImageRegistry&gt;</a>        <a class="code" href="classCEGUI_1_1Imageset.html#a3648ab8bda70657ffbe9eaec85513782" title="Iterator type for this collection.">ImageIterator</a>;  
<a name="l00112"></a>00112 
<a name="l00113"></a>00113         <span class="comment">/*************************************************************************</span>
<a name="l00114"></a>00114 <span class="comment">                Public interface</span>
<a name="l00115"></a>00115 <span class="comment">        *************************************************************************/</span>
<a name="l00123"></a><a class="code" href="classCEGUI_1_1Imageset.html#aeaeaddea0c5db1e1ae66f41f3696d267">00123</a>         <a class="code" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a>*        <a class="code" href="classCEGUI_1_1Imageset.html#aeaeaddea0c5db1e1ae66f41f3696d267" title="return Texture object for this Imageset">getTexture</a>(<span class="keywordtype">void</span>)<span class="keyword"> const                                          </span>{<span class="keywordflow">return</span> d_texture;}
<a name="l00124"></a>00124 
<a name="l00125"></a>00125 
<a name="l00133"></a><a class="code" href="classCEGUI_1_1Imageset.html#a4e9aa5c3199f22d4c4ec9f4e452938f2">00133</a>         <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp;   <a class="code" href="classCEGUI_1_1Imageset.html#a4e9aa5c3199f22d4c4ec9f4e452938f2" title="return String object holding the name of the Imageset">getName</a>(<span class="keywordtype">void</span>)<span class="keyword"> const                                             </span>{<span class="keywordflow">return</span> d_name;}
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 
<a name="l00143"></a><a class="code" href="classCEGUI_1_1Imageset.html#a93102e29a8bd4f1ce86b9d3d3d466ed6">00143</a>         uint      <a class="code" href="classCEGUI_1_1Imageset.html#a93102e29a8bd4f1ce86b9d3d3d466ed6" title="return number of images defined for this Imageset">getImageCount</a>(<span class="keywordtype">void</span>)<span class="keyword"> const               </span>{<span class="keywordflow">return</span> (uint)d_images.size();}
<a name="l00144"></a>00144 
<a name="l00145"></a>00145  
<a name="l00156"></a><a class="code" href="classCEGUI_1_1Imageset.html#a18639b7c84ab9046a6a246cc5ffec3da">00156</a>         <span class="keywordtype">bool</span>            <a class="code" href="classCEGUI_1_1Imageset.html#a18639b7c84ab9046a6a246cc5ffec3da" title="return true if an Image with the specified name exists.">isImageDefined</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name)<span class="keyword"> const        </span>{<span class="keywordflow">return</span> d_images.find(name) != d_images.end();}
<a name="l00157"></a>00157 
<a name="l00158"></a>00158  
<a name="l00171"></a>00171         <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>&amp;    getImage(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name) <span class="keyword">const</span>;
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 
<a name="l00183"></a>00183         <span class="keywordtype">void</span>    undefineImage(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name);
<a name="l00184"></a>00184 
<a name="l00192"></a>00192         <span class="keywordtype">void</span>    undefineAllImages(<span class="keywordtype">void</span>);
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 
<a name="l00207"></a><a class="code" href="classCEGUI_1_1Imageset.html#a0ad09af1d882346eacc0a279319193ce">00207</a>         <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width &amp; height) of something.">Size</a>    <a class="code" href="classCEGUI_1_1Imageset.html#a0ad09af1d882346eacc0a279319193ce" title="return a Size object describing the dimensions of the named image.">getImageSize</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name)<span class="keyword"> const                  </span>{<span class="keywordflow">return</span> getImage(name).getSize();}
<a name="l00208"></a>00208 
<a name="l00209"></a>00209 
<a name="l00222"></a><a class="code" href="classCEGUI_1_1Imageset.html#a067afadd731aa3a540b4905d8f92683a">00222</a>         <span class="keywordtype">float</span>   <a class="code" href="classCEGUI_1_1Imageset.html#a067afadd731aa3a540b4905d8f92683a" title="return the width of the named image.">getImageWidth</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name)<span class="keyword"> const                 </span>{<span class="keywordflow">return</span> getImage(name).getWidth();}
<a name="l00223"></a>00223 
<a name="l00224"></a>00224 
<a name="l00237"></a><a class="code" href="classCEGUI_1_1Imageset.html#a5cf41bdce00891fff5e5cca787450774">00237</a>         <span class="keywordtype">float</span>   <a class="code" href="classCEGUI_1_1Imageset.html#a5cf41bdce00891fff5e5cca787450774" title="return the height of the named image.">getImageHeight</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name)<span class="keyword"> const                </span>{<span class="keywordflow">return</span> getImage(name).getHeight();}
<a name="l00238"></a>00238 
<a name="l00239"></a>00239 
<a name="l00252"></a><a class="code" href="classCEGUI_1_1Imageset.html#a469b9226a85827df2e97b04b205749e3">00252</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_1Imageset.html#a469b9226a85827df2e97b04b205749e3" title="return the rendering offsets applied to the named image.">getImageOffset</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name)<span class="keyword"> const                </span>{<span class="keywordflow">return</span> getImage(name).getOffsets();}
<a name="l00253"></a>00253 
<a name="l00254"></a>00254 
<a name="l00267"></a><a class="code" href="classCEGUI_1_1Imageset.html#abd6f3cd2990a343cb41ceba342246700">00267</a>         <span class="keywordtype">float</span>   <a class="code" href="classCEGUI_1_1Imageset.html#abd6f3cd2990a343cb41ceba342246700" title="return the x rendering offset for the named image.">getImageOffsetX</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name)<span class="keyword"> const               </span>{<span class="keywordflow">return</span> getImage(name).getOffsetX();}
<a name="l00268"></a>00268 
<a name="l00269"></a>00269 
<a name="l00282"></a><a class="code" href="classCEGUI_1_1Imageset.html#afebea80341e9802424f4326ebab6016d">00282</a>         <span class="keywordtype">float</span>   <a class="code" href="classCEGUI_1_1Imageset.html#afebea80341e9802424f4326ebab6016d" title="return the y rendering offset for the named image.">getImageOffsetY</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name)<span class="keyword"> const               </span>{<span class="keywordflow">return</span> getImage(name).getOffsetY();}
<a name="l00283"></a>00283 
<a name="l00284"></a>00284         
<a name="l00306"></a><a class="code" href="classCEGUI_1_1Imageset.html#a3f912a4a67c017118945bea99bbd1f35">00306</a>         <span class="keywordtype">void</span>    defineImage(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name, <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>&amp; position, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width &amp; height) of something.">Size</a>&amp; size, <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>&amp; render_offset)
<a name="l00307"></a>00307         {
<a name="l00308"></a>00308                 defineImage(name, <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>(position.d_x, position.d_y, position.d_x + size.d_width, position.d_y + size.d_height), render_offset);
<a name="l00309"></a>00309         }
<a name="l00310"></a>00310 
<a name="l00311"></a>00311 
<a name="l00330"></a>00330         <span class="keywordtype">void</span>    defineImage(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; name, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>&amp; image_rect, <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>&amp; render_offset);
<a name="l00331"></a>00331 
<a name="l00332"></a>00332 
<a name="l00365"></a>00365     <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>&amp; buffer, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>&amp; source_rect,
<a name="l00366"></a>00366               <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>&amp; dest_rect, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>* clip_rect,
<a name="l00367"></a>00367               <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>&amp; colours, <a class="code" href="namespaceCEGUI.html#ad78f8ea191ebe7f86c08143da0de8024" title="Enumerated type that contains the valid diagonal-mode that specify how a quad is split into triangles...">QuadSplitMode</a> quad_split_mode) <span class="keyword">const</span>;
<a name="l00368"></a>00368 
<a name="l00409"></a><a class="code" href="classCEGUI_1_1Imageset.html#a0fa4410bbe3ec2c2ffaf7055f0116b48">00409</a>     <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>&amp; buffer, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>&amp; source_rect,
<a name="l00410"></a>00410               <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>&amp; dest_rect, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>* clip_rect,
<a name="l00411"></a>00411               <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>&amp; top_left_colour = 0xFFFFFFFF,
<a name="l00412"></a>00412               <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>&amp; top_right_colour = 0xFFFFFFFF,
<a name="l00413"></a>00413               <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>&amp; bottom_left_colour = 0xFFFFFFFF,
<a name="l00414"></a>00414               <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>&amp; bottom_right_colour = 0xFFFFFFFF,
<a name="l00415"></a>00415               <a class="code" href="namespaceCEGUI.html#ad78f8ea191ebe7f86c08143da0de8024" title="Enumerated type that contains the valid diagonal-mode that specify how a quad is split into triangles...">QuadSplitMode</a> quad_split_mode = <a class="code" href="namespaceCEGUI.html#ad78f8ea191ebe7f86c08143da0de8024a152459351da5c3d429c8ffbc2d5be6ff" title="Diagonal split goes from top-left to bottom-right.">TopLeftToBottomRight</a>)<span class="keyword"> const</span>
<a name="l00416"></a>00416 <span class="keyword">    </span>{
<a name="l00417"></a>00417         draw(buffer, source_rect, dest_rect, clip_rect,
<a name="l00418"></a>00418              <a class="code" href="classCEGUI_1_1ColourRect.html" title="Class that holds details of colours for the four corners of a rectangle.">ColourRect</a>(top_left_colour, top_right_colour,
<a name="l00419"></a>00419                         bottom_left_colour, bottom_right_colour),
<a name="l00420"></a>00420              quad_split_mode);
<a name="l00421"></a>00421     }
<a name="l00422"></a>00422 
<a name="l00430"></a><a class="code" href="classCEGUI_1_1Imageset.html#a975bb6192971e26fe45a1a71acd584aa">00430</a>         <span class="keywordtype">bool</span>    <a class="code" href="classCEGUI_1_1Imageset.html#a975bb6192971e26fe45a1a71acd584aa" title="Return whether this Imageset is auto-scaled.">isAutoScaled</a>(<span class="keywordtype">void</span>)<span class="keyword"> const                </span>{<span class="keywordflow">return</span> d_autoScale;}
<a name="l00431"></a>00431 
<a name="l00432"></a>00432 
<a name="l00440"></a><a class="code" href="classCEGUI_1_1Imageset.html#aa2551f944f3620aab972a8c9c9902d80">00440</a>         <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width &amp; height) of something.">Size</a>    <a class="code" href="classCEGUI_1_1Imageset.html#aa2551f944f3620aab972a8c9c9902d80" title="Return the native display size for this Imageset. This is only relevant if the Imageset is being auto...">getNativeResolution</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width &amp; height) of something.">Size</a>(d_nativeHorzRes, d_nativeVertRes);}
<a name="l00441"></a>00441 
<a name="l00442"></a>00442 
<a name="l00453"></a>00453         <span class="keywordtype">void</span>    setAutoScalingEnabled(<span class="keywordtype">bool</span> setting);
<a name="l00454"></a>00454 
<a name="l00455"></a>00455 
<a name="l00466"></a>00466         <span class="keywordtype">void</span>    setNativeResolution(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width &amp; height) of something.">Size</a>&amp; size);
<a name="l00467"></a>00467 
<a name="l00468"></a>00468 
<a name="l00476"></a>00476     <span class="keywordtype">void</span> notifyDisplaySizeChanged(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width &amp; height) of something.">Size</a>&amp; size);
<a name="l00477"></a>00477 
<a name="l00478"></a>00478 
<a name="l00483"></a>00483         ImageIterator   getIterator(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00484"></a>00484 
<a name="l00485"></a>00485 
<a name="l00499"></a>00499     <span class="keywordtype">void</span> writeXMLToStream(<a class="code" href="classCEGUI_1_1XMLSerializer.html" title="Class used to create XML Document.">XMLSerializer</a>&amp; xml_stream) <span class="keyword">const</span>;
<a name="l00500"></a>00500 
<a name="l00511"></a><a class="code" href="classCEGUI_1_1Imageset.html#a7b857ebfef6268a02c5d2a67eec8e5a6">00511</a>     <span class="keyword">static</span> <span class="keywordtype">void</span> setDefaultResourceGroup(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>&amp; resourceGroup)
<a name="l00512"></a>00512         { d_defaultResourceGroup = resourceGroup; }
<a name="l00513"></a>00513 
<a name="l00522"></a><a class="code" href="classCEGUI_1_1Imageset.html#a1ce20a43c33014d9389f3931e623edbc">00522</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>&amp; getDefaultResourceGroup()
<a name="l00523"></a>00523         { <span class="keywordflow">return</span> d_defaultResourceGroup; }
<a name="l00524"></a>00524 
<a name="l00525"></a>00525 <span class="keyword">protected</span>:
<a name="l00526"></a>00526         <span class="comment">/*************************************************************************</span>
<a name="l00527"></a>00527 <span class="comment">                Implementation Functions</span>
<a name="l00528"></a>00528 <span class="comment">        *************************************************************************/</span>
<a name="l00533"></a>00533         <span class="keywordtype">void</span>    unload(<span class="keywordtype">void</span>);
<a name="l00534"></a>00534 
<a name="l00535"></a>00535 
<a name="l00548"></a>00548         <span class="keywordtype">void</span>    setTexture(<a class="code" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a>* texture);
<a name="l00549"></a>00549 
<a name="l00550"></a>00550 
<a name="l00558"></a>00558         <span class="keywordtype">void</span>    updateImageScalingFactors(<span class="keywordtype">void</span>);
<a name="l00559"></a>00559 
<a name="l00560"></a>00560         <span class="comment">/*************************************************************************</span>
<a name="l00561"></a>00561 <span class="comment">                Implementation Data</span>
<a name="l00562"></a>00562 <span class="comment">        *************************************************************************/</span>
<a name="l00563"></a><a class="code" href="classCEGUI_1_1Imageset.html#a7c53a75021aa6e7fdf0b9f03a0f207a7">00563</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_1Imageset.html#a7c53a75021aa6e7fdf0b9f03a0f207a7" title="Holds the name of this imageset.">d_name</a>;                                         
<a name="l00564"></a><a class="code" href="classCEGUI_1_1Imageset.html#aa107e385bf2561369b8df3515cdf4afd">00564</a>         ImageRegistry   <a class="code" href="classCEGUI_1_1Imageset.html#aa107e385bf2561369b8df3515cdf4afd" title="Registry of Image objects for the images defined for this Imageset.">d_images</a>;                                       
<a name="l00565"></a><a class="code" href="classCEGUI_1_1Imageset.html#ac45281bfb1cd3a25568421363007c4c1">00565</a>         <a class="code" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a>*                <a class="code" href="classCEGUI_1_1Imageset.html#ac45281bfb1cd3a25568421363007c4c1" title="Texture object that handles imagery for this Imageset.">d_texture</a>;                                      
<a name="l00566"></a><a class="code" href="classCEGUI_1_1Imageset.html#a7d19919f64a2df47e017b5b2a9249697">00566</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_1Imageset.html#a7d19919f64a2df47e017b5b2a9249697" title="String holding the name of the texture filename (if any).">d_textureFilename</a>;          
<a name="l00567"></a>00567 
<a name="l00568"></a>00568         <span class="comment">// auto-scaling fields</span>
<a name="l00569"></a><a class="code" href="classCEGUI_1_1Imageset.html#ac6c2738f21ad4ec78db567a33a9dcffc">00569</a>         <span class="keywordtype">bool</span>    <a class="code" href="classCEGUI_1_1Imageset.html#ac6c2738f21ad4ec78db567a33a9dcffc" title="true when auto-scaling is enabled.">d_autoScale</a>;                    
<a name="l00570"></a><a class="code" href="classCEGUI_1_1Imageset.html#ad74734c75b5b86a318131032ae51104d">00570</a>         <span class="keywordtype">float</span>   <a class="code" href="classCEGUI_1_1Imageset.html#ad74734c75b5b86a318131032ae51104d" title="current horizontal scaling factor.">d_horzScaling</a>;                  
<a name="l00571"></a><a class="code" href="classCEGUI_1_1Imageset.html#a0b8f9ef4bb5d997094e31373479039a3">00571</a>         <span class="keywordtype">float</span>   <a class="code" href="classCEGUI_1_1Imageset.html#a0b8f9ef4bb5d997094e31373479039a3" title="current vertical scaling factor.">d_vertScaling</a>;                  
<a name="l00572"></a><a class="code" href="classCEGUI_1_1Imageset.html#ab4f0874c18dc477cd353ad65d469acf5">00572</a>         <span class="keywordtype">float</span>   <a class="code" href="classCEGUI_1_1Imageset.html#ab4f0874c18dc477cd353ad65d469acf5" title="native horizontal resolution for this Imageset.">d_nativeHorzRes</a>;                
<a name="l00573"></a><a class="code" href="classCEGUI_1_1Imageset.html#ab517bf87b80419e9cf3ce3b8b11ff8b2">00573</a>         <span class="keywordtype">float</span>   <a class="code" href="classCEGUI_1_1Imageset.html#ab517bf87b80419e9cf3ce3b8b11ff8b2" title="native vertical resolution for this Imageset.">d_nativeVertRes</a>;                
<a name="l00574"></a><a class="code" href="classCEGUI_1_1Imageset.html#a98993af6a56e583e4d5d29df89ad442a">00574</a>     <span class="keyword">static</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_1Imageset.html#a98993af6a56e583e4d5d29df89ad442a" title="Default resource group specifically for Imagesets.">d_defaultResourceGroup</a>;   
<a name="l00575"></a>00575 };
<a name="l00576"></a>00576 
<a name="l00577"></a>00577 } <span class="comment">// End of  CEGUI namespace section</span>
<a name="l00578"></a>00578 
<a name="l00579"></a>00579 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00580"></a>00580 <span class="preprocessor"></span><span class="preprocessor">#       pragma warning(pop)</span>
<a name="l00581"></a>00581 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00582"></a>00582 <span class="preprocessor"></span>
<a name="l00583"></a>00583 <span class="preprocessor">#endif  // end of guard _CEGUIImageset_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&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>