1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
|
<!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: CEGUIImage.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">CEGUIImage.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: CEGUIImage.h</span>
<a name="l00003"></a>00003 <span class="comment"> created: 13/3/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 interface for Image class</span>
<a name="l00007"></a>00007 <span class="comment">*************************************************************************/</span>
<a name="l00008"></a>00008 <span class="comment">/***************************************************************************</span>
<a name="l00009"></a>00009 <span class="comment"> * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span>
<a name="l00012"></a>00012 <span class="comment"> * a copy of this software and associated documentation files (the</span>
<a name="l00013"></a>00013 <span class="comment"> * "Software"), to deal in the Software without restriction, including</span>
<a name="l00014"></a>00014 <span class="comment"> * without limitation the rights to use, copy, modify, merge, publish,</span>
<a name="l00015"></a>00015 <span class="comment"> * distribute, sublicense, and/or sell copies of the Software, and to</span>
<a name="l00016"></a>00016 <span class="comment"> * permit persons to whom the Software is furnished to do so, subject to</span>
<a name="l00017"></a>00017 <span class="comment"> * the following conditions:</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * The above copyright notice and this permission notice shall be</span>
<a name="l00020"></a>00020 <span class="comment"> * included in all copies or substantial portions of the Software.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span>
<a name="l00023"></a>00023 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
<a name="l00024"></a>00024 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span>
<a name="l00025"></a>00025 <span class="comment"> * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR</span>
<a name="l00026"></a>00026 <span class="comment"> * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,</span>
<a name="l00027"></a>00027 <span class="comment"> * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR</span>
<a name="l00028"></a>00028 <span class="comment"> * OTHER DEALINGS IN THE SOFTWARE.</span>
<a name="l00029"></a>00029 <span class="comment"> ***************************************************************************/</span>
<a name="l00030"></a>00030 <span class="preprocessor">#ifndef _CEGUIImage_h_</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIImage_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 "CEGUIRect.h"</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "CEGUIColourRect.h"</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "CEGUIVector.h"</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include "CEGUISize.h"</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include "CEGUIRenderer.h"</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include "CEGUIXMLSerializer.h"</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include <map></span>
<a name="l00042"></a>00042
<a name="l00043"></a>00043
<a name="l00044"></a>00044 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4251)</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00049"></a>00049
<a name="l00050"></a>00050 <span class="comment">// Start of CEGUI namespace section</span>
<a name="l00051"></a>00051 <span class="keyword">namespace </span>CEGUI
<a name="l00052"></a>00052 {
<a name="l00057"></a><a class="code" href="classCEGUI_1_1Image.html">00057</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1Image.html" title="Class that represents a single Image of an Imageset.">Image</a>
<a name="l00058"></a>00058 {
<a name="l00059"></a>00059 <span class="keyword">public</span>:
<a name="l00067"></a><a class="code" href="classCEGUI_1_1Image.html#aa5630c86054efdaf34bb537e72429add">00067</a> <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something.">Size</a> <a class="code" href="classCEGUI_1_1Image.html#aa5630c86054efdaf34bb537e72429add" title="Return a Size object containing the dimensions of the Image.">getSize</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 & height) of something.">Size</a>(d_scaledWidth, d_scaledHeight);}
<a name="l00068"></a>00068
<a name="l00069"></a>00069
<a name="l00077"></a><a class="code" href="classCEGUI_1_1Image.html#a0423eabf185f90fc2bb77b2a117fd4b0">00077</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1Image.html#a0423eabf185f90fc2bb77b2a117fd4b0" title="Return the pixel width of the image.">getWidth</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_scaledWidth;}
<a name="l00078"></a>00078
<a name="l00079"></a>00079
<a name="l00087"></a><a class="code" href="classCEGUI_1_1Image.html#af41c0bf9821a7ac12ce0b6919a4dc70b">00087</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1Image.html#af41c0bf9821a7ac12ce0b6919a4dc70b" title="Return the pixel height of the image.">getHeight</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_scaledHeight;}
<a name="l00088"></a>00088
<a name="l00089"></a>00089
<a name="l00097"></a><a class="code" href="classCEGUI_1_1Image.html#a509701c3fda8c404b6eefeb17f1a2dc8">00097</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_1Image.html#a509701c3fda8c404b6eefeb17f1a2dc8" title="Return a Point object that contains the offset applied when rendering this Image.">getOffsets</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_scaledOffset;}
<a name="l00098"></a>00098
<a name="l00099"></a>00099
<a name="l00107"></a><a class="code" href="classCEGUI_1_1Image.html#aebd23b21bce3d39714f4bda7afba944b">00107</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1Image.html#aebd23b21bce3d39714f4bda7afba944b" title="Return the X rendering offset.">getOffsetX</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_scaledOffset.d_x;}
<a name="l00108"></a>00108
<a name="l00109"></a>00109
<a name="l00117"></a><a class="code" href="classCEGUI_1_1Image.html#aeb2eaaa8d95559a539a03cff91ce2d12">00117</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1Image.html#aeb2eaaa8d95559a539a03cff91ce2d12" title="Return the Y rendering offset.">getOffsetY</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_scaledOffset.d_y;}
<a name="l00118"></a>00118
<a name="l00119"></a>00119
<a name="l00127"></a>00127 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& getName(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00128"></a>00128
<a name="l00129"></a>00129
<a name="l00137"></a>00137 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& getImagesetName(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00138"></a>00138
<a name="l00146"></a><a class="code" href="classCEGUI_1_1Image.html#a5b24d479234ca661994f4b9fb21f4f29">00146</a> <span class="keyword">const</span> <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 class="code" href="classCEGUI_1_1Image.html#a5b24d479234ca661994f4b9fb21f4f29" title="Return the parent Imageset object that contains this Image.">getImageset</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_owner;}
<a name="l00147"></a>00147
<a name="l00156"></a>00156 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>& getSourceTextureArea(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00157"></a>00157
<a name="l00204"></a><a class="code" href="classCEGUI_1_1Image.html#ac9acf3487f19479af224c1c5b445d7be">00204</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>& buffer, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Vector2</a>& position, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something.">Size</a>& size,
<a name="l00205"></a>00205 <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="l00206"></a>00206 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& top_left_colour = 0xFFFFFFFF,
<a name="l00207"></a>00207 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& top_right_colour = 0xFFFFFFFF,
<a name="l00208"></a>00208 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& bottom_left_colour = 0xFFFFFFFF,
<a name="l00209"></a>00209 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& bottom_right_colour = 0xFFFFFFFF,
<a name="l00210"></a>00210 <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="l00211"></a>00211 <span class="keyword"> </span>{
<a name="l00212"></a>00212 draw(buffer, <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>(position.d_x, position.d_y,
<a name="l00213"></a>00213 position.d_x + size.d_width,
<a name="l00214"></a>00214 position.d_y + size.d_height),
<a name="l00215"></a>00215 clip_rect,
<a name="l00216"></a>00216 <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, bottom_left_colour,
<a name="l00217"></a>00217 bottom_right_colour),
<a name="l00218"></a>00218 quad_split_mode);
<a name="l00219"></a>00219 }
<a name="l00220"></a>00220
<a name="l00265"></a><a class="code" href="classCEGUI_1_1Image.html#ae7827388f0c5c2b728a82fc04e081ae5">00265</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>& buffer, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>& dest_rect,
<a name="l00266"></a>00266 <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="l00267"></a>00267 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& top_left_colour = 0xFFFFFFFF,
<a name="l00268"></a>00268 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& top_right_colour = 0xFFFFFFFF,
<a name="l00269"></a>00269 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& bottom_left_colour = 0xFFFFFFFF,
<a name="l00270"></a>00270 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& bottom_right_colour = 0xFFFFFFFF,
<a name="l00271"></a>00271 <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="l00272"></a>00272 <span class="keyword"> </span>{
<a name="l00273"></a>00273 draw(buffer, dest_rect, clip_rect,
<a name="l00274"></a>00274 <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="l00275"></a>00275 bottom_left_colour, bottom_right_colour),
<a name="l00276"></a>00276 quad_split_mode);
<a name="l00277"></a>00277 }
<a name="l00278"></a>00278
<a name="l00317"></a><a class="code" href="classCEGUI_1_1Image.html#adf4e0877c415b8e7c1529dc7ef0cd131">00317</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>& buffer, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Vector2</a>& position, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something.">Size</a>& size,
<a name="l00318"></a>00318 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>* clip_rect, <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>& colours,
<a name="l00319"></a>00319 <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="l00320"></a>00320 <span class="keyword"> </span>{
<a name="l00321"></a>00321 draw(buffer, <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>(position.d_x, position.d_y,
<a name="l00322"></a>00322 position.d_x + size.d_width,
<a name="l00323"></a>00323 position.d_y + size.d_height),
<a name="l00324"></a>00324 clip_rect, colours, quad_split_mode);
<a name="l00325"></a>00325 }
<a name="l00326"></a>00326
<a name="l00365"></a><a class="code" href="classCEGUI_1_1Image.html#aa653709240f670d66e02455817aebbdd">00365</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>& buffer, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Vector2</a>& position,
<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>* clip_rect, <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>& colours,
<a name="l00367"></a>00367 <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="l00368"></a>00368 <span class="keyword"> </span>{
<a name="l00369"></a>00369 draw(buffer, <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>(position.d_x, position.d_y,
<a name="l00370"></a>00370 position.d_x + getWidth(),
<a name="l00371"></a>00371 position.d_y + getHeight()),
<a name="l00372"></a>00372 clip_rect, colours, quad_split_mode);
<a name="l00373"></a>00373 }
<a name="l00374"></a>00374
<a name="l00418"></a><a class="code" href="classCEGUI_1_1Image.html#a7c780ed2a5c759ec8c568882662b192e">00418</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>& buffer, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Vector2</a>& position,
<a name="l00419"></a>00419 <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="l00420"></a>00420 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& top_left_colour = 0xFFFFFFFF,
<a name="l00421"></a>00421 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& top_right_colour = 0xFFFFFFFF,
<a name="l00422"></a>00422 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& bottom_left_colour = 0xFFFFFFFF,
<a name="l00423"></a>00423 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1colour.html" title="Class representing colour values within the system.">colour</a>& bottom_right_colour = 0xFFFFFFFF,
<a name="l00424"></a>00424 <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="l00425"></a>00425 <span class="keyword"> </span>{
<a name="l00426"></a>00426 draw(buffer, <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>(position.d_x, position.d_y,
<a name="l00427"></a>00427 position.d_x + getWidth(),
<a name="l00428"></a>00428 position.d_y + getHeight()),
<a name="l00429"></a>00429 clip_rect,
<a name="l00430"></a>00430 <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="l00431"></a>00431 bottom_left_colour, bottom_right_colour),
<a name="l00432"></a>00432 quad_split_mode);
<a name="l00433"></a>00433 }
<a name="l00434"></a>00434
<a name="l00471"></a>00471 <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>& dest_rect,
<a name="l00472"></a>00472 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>* clip_rect, <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>& colours,
<a name="l00473"></a>00473 <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="l00474"></a>00474
<a name="l00486"></a>00486 <span class="keywordtype">void</span> writeXMLToStream(<a class="code" href="classCEGUI_1_1XMLSerializer.html" title="Class used to create XML Document.">XMLSerializer</a>& xml_stream) <span class="keyword">const</span>;
<a name="l00487"></a>00487
<a name="l00488"></a>00488
<a name="l00489"></a>00489 <span class="keyword">friend</span> <span class="keyword">class </span>std::map<<a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>, <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_1String.html" title="String class used within the GUI system.">String</a>::FastLessCompare>;
<a name="l00490"></a>00490 friend struct std::pair<const String, Image>;
<a name="l00491"></a>00491
<a name="l00492"></a>00492
<a name="l00493"></a>00493 <span class="comment">/*************************************************************************</span>
<a name="l00494"></a>00494 <span class="comment"> Construction and Destruction</span>
<a name="l00495"></a>00495 <span class="comment"> *************************************************************************/</span>
<a name="l00500"></a><a class="code" href="classCEGUI_1_1Image.html#a4bf6bf2c66dce25700502d8d8d10529e">00500</a> <a class="code" href="classCEGUI_1_1Image.html" title="Class that represents a single Image of an Imageset.">Image</a>(void) {}
<a name="l00501"></a>00501
<a name="l00502"></a>00502
<a name="l00527"></a>00527 <a class="code" href="classCEGUI_1_1Image.html" title="Class that represents a single Image of an Imageset.">Image</a>(<span class="keyword">const</span> <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>* owner, <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 class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a>& area, <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>& render_offset, <span class="keywordtype">float</span> horzScaling = 1.0f, <span class="keywordtype">float</span> vertScaling = 1.0f);
<a name="l00528"></a>00528
<a name="l00529"></a>00529
<a name="l00530"></a>00530
<a name="l00535"></a>00535 <a class="code" href="classCEGUI_1_1Image.html" title="Class that represents a single Image of an Imageset.">Image</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);
<a name="l00536"></a>00536
<a name="l00537"></a>00537
<a name="l00542"></a>00542 ~<a class="code" href="classCEGUI_1_1Image.html" title="Class that represents a single Image of an Imageset.">Image</a>(<span class="keywordtype">void</span>);
<a name="l00543"></a>00543
<a name="l00544"></a>00544
<a name="l00545"></a>00545 <span class="keyword">private</span>:
<a name="l00546"></a>00546 <span class="comment">/*************************************************************************</span>
<a name="l00547"></a>00547 <span class="comment"> Friends</span>
<a name="l00548"></a>00548 <span class="comment"> *************************************************************************/</span>
<a name="l00549"></a>00549 <span class="keyword">friend</span> <span class="keyword">class </span><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="l00550"></a>00550
<a name="l00551"></a>00551
<a name="l00552"></a>00552 <span class="comment">/*************************************************************************</span>
<a name="l00553"></a>00553 <span class="comment"> Implementation Methods</span>
<a name="l00554"></a>00554 <span class="comment"> *************************************************************************/</span>
<a name="l00565"></a>00565 <span class="keywordtype">void</span> setHorzScaling(<span class="keywordtype">float</span> factor);
<a name="l00566"></a>00566
<a name="l00567"></a>00567
<a name="l00578"></a>00578 <span class="keywordtype">void</span> setVertScaling(<span class="keywordtype">float</span> factor);
<a name="l00579"></a>00579
<a name="l00580"></a>00580
<a name="l00581"></a>00581 <span class="comment">/*************************************************************************</span>
<a name="l00582"></a>00582 <span class="comment"> Implementation Data</span>
<a name="l00583"></a>00583 <span class="comment"> *************************************************************************/</span>
<a name="l00584"></a>00584 <span class="keyword">const</span> <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>* d_owner;
<a name="l00585"></a>00585 <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a> d_area;
<a name="l00586"></a>00586 <a class="code" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Point</a> d_offset;
<a name="l00587"></a>00587
<a name="l00588"></a>00588 <span class="comment">// image auto-scaling fields.</span>
<a name="l00589"></a>00589 <span class="keywordtype">float</span> d_scaledWidth;
<a name="l00590"></a>00590 <span class="keywordtype">float</span> d_scaledHeight;
<a name="l00591"></a>00591 <a class="code" href="classCEGUI_1_1Vector2.html" title="Class used as a two dimensional vector (aka a Point)">Point</a> d_scaledOffset;
<a name="l00592"></a>00592 <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> d_name;
<a name="l00593"></a>00593 };
<a name="l00594"></a>00594
<a name="l00595"></a>00595 } <span class="comment">// End of CEGUI namespace section</span>
<a name="l00596"></a>00596
<a name="l00597"></a>00597 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00598"></a>00598 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(pop)</span>
<a name="l00599"></a>00599 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00600"></a>00600 <span class="preprocessor"></span>
<a name="l00601"></a>00601 <span class="preprocessor">#endif // end of guard _CEGUIImage_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>
|