| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <!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"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <title>gameplay: Main Page</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { searchBox.OnSelectItem(0); });
- </script>
- </head>
- <body>
- <div id="top"><!-- do not remove this div! -->
- <!-- Generated by Doxygen 1.8.0 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Main Page</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>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </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>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerator</a></div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="headertitle">
- <div class="title">gameplay/src/Theme.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef THEME_H_</span>
- <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define THEME_H_</span>
- <a name="l00003"></a>00003 <span class="preprocessor"></span>
- <a name="l00004"></a>00004 <span class="preprocessor">#include "Base.h"</span>
- <a name="l00005"></a>00005 <span class="preprocessor">#include "Ref.h"</span>
- <a name="l00006"></a>00006 <span class="preprocessor">#include "Font.h"</span>
- <a name="l00007"></a>00007 <span class="preprocessor">#include "Rectangle.h"</span>
- <a name="l00008"></a>00008 <span class="preprocessor">#include "Texture.h"</span>
- <a name="l00009"></a>00009 <span class="preprocessor">#include "Properties.h"</span>
- <a name="l00010"></a>00010
- <a name="l00011"></a>00011 <span class="keyword">namespace </span>gameplay
- <a name="l00012"></a>00012 {
- <a name="l00013"></a>00013
- <a name="l00135"></a><a class="code" href="classgameplay_1_1_theme.html">00135</a> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_theme.html">Theme</a>: <span class="keyword">public</span> <a class="code" href="classgameplay_1_1_ref.html">Ref</a>
- <a name="l00136"></a>00136 {
- <a name="l00137"></a>00137 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_control.html">Control</a>;
- <a name="l00138"></a>00138 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_container.html">Container</a>;
- <a name="l00139"></a>00139 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_form.html">Form</a>;
- <a name="l00140"></a>00140 <span class="keyword">friend</span> <span class="keyword">class </span>Skin;
- <a name="l00141"></a>00141
- <a name="l00142"></a>00142 <span class="keyword">public</span>:
- <a name="l00143"></a>00143
- <a name="l00150"></a>00150 <span class="keyword">class </span><a class="code" href="classgameplay_1_1_theme_1_1_style.html">Style</a>;
- <a name="l00151"></a>00151 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_theme_1_1_style.html">Style</a>;
- <a name="l00152"></a>00152
- <a name="l00156"></a><a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html">00156</a> <span class="keyword">struct </span><a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html">UVs</a>
- <a name="l00157"></a>00157 {
- <a name="l00161"></a>00161 <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#afe04c8b97ff1392a384ba5e5cdf28a7c">UVs</a>();
- <a name="l00162"></a>00162
- <a name="l00171"></a>00171 <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#afe04c8b97ff1392a384ba5e5cdf28a7c">UVs</a>(<span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#ab2d2b3dedaafd386feb3ed03345a119e">u1</a>, <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#af9b752f559f8eb871958dc9cd5456284">v1</a>, <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#a9921faed5e4518e2791d4879c40fb191">u2</a>, <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#a19c1d6fda0b5245cff3d747e4c120bca">v2</a>);
- <a name="l00172"></a>00172
- <a name="l00176"></a>00176 <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html">UVs</a>& <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#af3122d064f3b92de7599d35cbfdc9453">empty</a>();
- <a name="l00177"></a>00177
- <a name="l00181"></a><a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#ab2d2b3dedaafd386feb3ed03345a119e">00181</a> <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#ab2d2b3dedaafd386feb3ed03345a119e">u1</a>;
- <a name="l00182"></a>00182
- <a name="l00186"></a><a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#af9b752f559f8eb871958dc9cd5456284">00186</a> <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#af9b752f559f8eb871958dc9cd5456284">v1</a>;
- <a name="l00187"></a>00187
- <a name="l00191"></a><a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#a9921faed5e4518e2791d4879c40fb191">00191</a> <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#a9921faed5e4518e2791d4879c40fb191">u2</a>;
- <a name="l00192"></a>00192
- <a name="l00196"></a><a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#a19c1d6fda0b5245cff3d747e4c120bca">00196</a> <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html#a19c1d6fda0b5245cff3d747e4c120bca">v2</a>;
- <a name="l00197"></a>00197 };
- <a name="l00198"></a>00198
- <a name="l00203"></a><a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html">00203</a> <span class="keyword">struct </span><a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html">SideRegions</a>
- <a name="l00204"></a>00204 {
- <a name="l00208"></a><a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#a86cda14ca68219356eec8a4876c586b5">00208</a> <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#a86cda14ca68219356eec8a4876c586b5">SideRegions</a>() : <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#af4cd17ec441eaedaa25a5378b23a95c7">top</a>(0), <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#a6b151bd96ae3e20e577fc3b112708f31">bottom</a>(0), <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#af953a7a6bd09eacd89aefcf66d91358c">left</a>(0), <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#af236740d28db36ba19e5605bd2c1971e">right</a>(0) {}
- <a name="l00209"></a>00209
- <a name="l00213"></a>00213 <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html">SideRegions</a>& <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#a08b1a28ac1e84e321b1ee7f39e6d8231">empty</a>();
- <a name="l00214"></a>00214
- <a name="l00218"></a><a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#af4cd17ec441eaedaa25a5378b23a95c7">00218</a> <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#af4cd17ec441eaedaa25a5378b23a95c7">top</a>;
- <a name="l00219"></a>00219
- <a name="l00223"></a><a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#a6b151bd96ae3e20e577fc3b112708f31">00223</a> <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#a6b151bd96ae3e20e577fc3b112708f31">bottom</a>;
- <a name="l00224"></a>00224
- <a name="l00228"></a><a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#af953a7a6bd09eacd89aefcf66d91358c">00228</a> <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#af953a7a6bd09eacd89aefcf66d91358c">left</a>;
- <a name="l00229"></a>00229
- <a name="l00233"></a><a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#af236740d28db36ba19e5605bd2c1971e">00233</a> <span class="keywordtype">float</span> <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html#af236740d28db36ba19e5605bd2c1971e">right</a>;
- <a name="l00234"></a>00234 };
- <a name="l00235"></a>00235
- <a name="l00239"></a><a class="code" href="classgameplay_1_1_theme.html#a1a26d7e131d51a785ffd9007eb0b8543">00239</a> <span class="keyword">typedef</span> <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html">SideRegions</a> <a class="code" href="classgameplay_1_1_theme.html#a1a26d7e131d51a785ffd9007eb0b8543">Margin</a>;
- <a name="l00240"></a>00240
- <a name="l00244"></a><a class="code" href="classgameplay_1_1_theme.html#afe0334a54abcc262e810298001caf85f">00244</a> <span class="keyword">typedef</span> <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html">SideRegions</a> <a class="code" href="classgameplay_1_1_theme.html#afe0334a54abcc262e810298001caf85f">Border</a>;
- <a name="l00245"></a>00245
- <a name="l00249"></a><a class="code" href="classgameplay_1_1_theme.html#a1f05b2680753e83e8744b923e7d477e0">00249</a> <span class="keyword">typedef</span> <a class="code" href="structgameplay_1_1_theme_1_1_side_regions.html">SideRegions</a> <a class="code" href="classgameplay_1_1_theme.html#a1f05b2680753e83e8744b923e7d477e0">Padding</a>;
- <a name="l00250"></a>00250
- <a name="l00256"></a><a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html">00256</a> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html">ThemeImage</a> : <span class="keyword">public</span> <a class="code" href="classgameplay_1_1_ref.html">Ref</a>
- <a name="l00257"></a>00257 {
- <a name="l00258"></a>00258 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_theme.html">Theme</a>;
- <a name="l00259"></a>00259 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_control.html">Control</a>;
- <a name="l00260"></a>00260
- <a name="l00261"></a>00261 <span class="keyword">public</span>:
- <a name="l00262"></a>00262
- <a name="l00266"></a>00266 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html#a3a7726604ed5929240faffcd356d94f5">getId</a>() <span class="keyword">const</span>;
- <a name="l00267"></a>00267
- <a name="l00271"></a>00271 <span class="keyword">const</span> <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html">UVs</a>& <a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html#afa2001c075a276046e51b4ec6cb6c65c">getUVs</a>() <span class="keyword">const</span>;
- <a name="l00272"></a>00272
- <a name="l00276"></a>00276 <span class="keyword">const</span> <a class="code" href="classgameplay_1_1_rectangle.html">Rectangle</a>& <a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html#a84a085b591699b1f20d4e4ea9d32b401">getRegion</a>() <span class="keyword">const</span>;
- <a name="l00277"></a>00277
- <a name="l00281"></a>00281 <span class="keyword">const</span> <a class="code" href="classgameplay_1_1_vector4.html">Vector4</a>& <a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html#a860151bf6ff030b5f9396f5ef589bf2a">getColor</a>() <span class="keyword">const</span>;
- <a name="l00282"></a>00282
- <a name="l00283"></a>00283 <span class="keyword">private</span>:
- <a name="l00284"></a>00284
- <a name="l00285"></a>00285 <a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html">ThemeImage</a>(<span class="keywordtype">float</span> tw, <span class="keywordtype">float</span> th, <span class="keyword">const</span> <a class="code" href="classgameplay_1_1_rectangle.html">Rectangle</a>& region, <span class="keyword">const</span> <a class="code" href="classgameplay_1_1_vector4.html">Vector4</a>& color);
- <a name="l00286"></a>00286
- <a name="l00287"></a>00287 ~<a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html">ThemeImage</a>();
- <a name="l00288"></a>00288
- <a name="l00289"></a>00289 <span class="keyword">static</span> <a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html">ThemeImage</a>* create(<span class="keywordtype">float</span> tw, <span class="keywordtype">float</span> th, <a class="code" href="classgameplay_1_1_properties.html">Properties</a>* properties, <span class="keyword">const</span> <a class="code" href="classgameplay_1_1_vector4.html">Vector4</a>& defaultColor);
- <a name="l00290"></a>00290
- <a name="l00291"></a>00291 std::string _id;
- <a name="l00292"></a>00292 <a class="code" href="structgameplay_1_1_theme_1_1_u_vs.html">UVs</a> _uvs;
- <a name="l00293"></a>00293 <a class="code" href="classgameplay_1_1_rectangle.html">Rectangle</a> _region;
- <a name="l00294"></a>00294 <a class="code" href="classgameplay_1_1_vector4.html">Vector4</a> _color;
- <a name="l00295"></a>00295 };
- <a name="l00296"></a>00296
- <a name="l00297"></a>00297 <span class="keyword">private</span>:
- <a name="l00298"></a>00298
- <a name="l00304"></a>00304 <span class="keyword">class </span>ImageList : <span class="keyword">public</span> <a class="code" href="classgameplay_1_1_ref.html">Ref</a>
- <a name="l00305"></a>00305 {
- <a name="l00306"></a>00306 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_theme.html">Theme</a>;
- <a name="l00307"></a>00307 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_control.html">Control</a>;
- <a name="l00308"></a>00308
- <a name="l00309"></a>00309 <span class="keyword">public</span>:
- <a name="l00310"></a>00310
- <a name="l00311"></a>00311 <span class="keyword">const</span> <span class="keywordtype">char</span>* getId() <span class="keyword">const</span>;
- <a name="l00312"></a>00312
- <a name="l00313"></a>00313 <a class="code" href="classgameplay_1_1_theme_1_1_theme_image.html">ThemeImage</a>* getImage(<span class="keyword">const</span> <span class="keywordtype">char</span>* imageId) <span class="keyword">const</span>;
- <a name="l00314"></a>00314
- <a name="l00315"></a>00315 <span class="keyword">private</span>:
- <a name="l00316"></a>00316
- <a name="l00317"></a>00317 ImageList(<span class="keyword">const</span> <a class="code" href="classgameplay_1_1_vector4.html">Vector4</a>& color);
- <a name="l00318"></a>00318
- <a name="l00319"></a>00319 ImageList(<span class="keyword">const</span> ImageList& copy);
- <a name="l00320"></a>00320
- <a name="l00321"></a>00321 ~ImageList();
- <a name="l00322"></a>00322
- <a name="l00323"></a>00323 <span class="keyword">static</span> ImageList* create(<span class="keywordtype">float</span> tw, <span class="keywordtype">float</span> th, <a class="code" href="classgameplay_1_1_properties.html">Properties</a>* properties);
- <a name="l00324"></a>00324
- <a name="l00325"></a>00325 std::string _id;
- <a name="l00326"></a>00326 std::vector<ThemeImage*> _images;
- <a name="l00327"></a>00327 <a class="code" href="classgameplay_1_1_vector4.html">Vector4</a> _color;
- <a name="l00328"></a>00328 };
- <a name="l00329"></a>00329
- <a name="l00333"></a>00333 <span class="keyword">class </span>Skin : <span class="keyword">public</span> <a class="code" href="classgameplay_1_1_ref.html">Ref</a>
- <a name="l00334"></a>00334 {
- <a name="l00335"></a>00335 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgameplay_1_1_theme.html">Theme</a>;
- <a name="l00336"></a>00336
- <a name="l00337"></a>00337 <span class="keyword">public</span>:
- <a name="l00338"></a>00338
- <a name="l00339"></a>00339 <span class="keyword">enum</span> SkinArea
- <a name="l00340"></a>00340 {
- <a name="l00341"></a>00341 TOP_LEFT, TOP, TOP_RIGHT,
- <a name="l00342"></a>00342 LEFT, CENTER, RIGHT,
- <a name="l00343"></a>00343 BOTTOM_LEFT, BOTTOM, BOTTOM_RIGHT
- <a name="l00344"></a>00344 };
- <a name="l00345"></a>00345
- <a name="l00351"></a>00351 <span class="keyword">const</span> <span class="keywordtype">char</span>* getId() <span class="keyword">const</span>;
- <a name="l00352"></a>00352
- <a name="l00358"></a>00358 <span class="keyword">const</span> <a class="code" href="classgameplay_1_1_theme.html#afe0334a54abcc262e810298001caf85f">Theme::Border</a>& getBorder() <span class="keyword">const</span>;
- <a name="l00359"></a>00359
- <a name="l00360"></a>00360 <span class="keyword">const</span> Rectangle& getRegion() <span class="keyword">const</span>;
- <a name="l00361"></a>00361
- <a name="l00367"></a>00367 <span class="keyword">const</span> Theme::UVs& getUVs(SkinArea area) <span class="keyword">const</span>;
- <a name="l00368"></a>00368
- <a name="l00374"></a>00374 <span class="keyword">const</span> Vector4& getColor() <span class="keyword">const</span>;
- <a name="l00375"></a>00375
- <a name="l00376"></a>00376 <span class="keyword">private</span>:
- <a name="l00377"></a>00377
- <a name="l00378"></a>00378 Skin(<span class="keywordtype">float</span> tw, <span class="keywordtype">float</span> th, <span class="keyword">const</span> Rectangle& region, <span class="keyword">const</span> <a class="code" href="classgameplay_1_1_theme.html#afe0334a54abcc262e810298001caf85f">Theme::Border</a>& border, <span class="keyword">const</span> Vector4& color);
- <a name="l00379"></a>00379
- <a name="l00380"></a>00380 ~Skin();
- <a name="l00381"></a>00381
- <a name="l00382"></a>00382 <span class="keyword">static</span> Skin* create(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">id</span>, <span class="keywordtype">float</span> tw, <span class="keywordtype">float</span> th, <span class="keyword">const</span> Rectangle& region, <span class="keyword">const</span> <a class="code" href="classgameplay_1_1_theme.html#afe0334a54abcc262e810298001caf85f">Theme::Border</a>& border, <span class="keyword">const</span> Vector4& color);
- <a name="l00383"></a>00383
- <a name="l00384"></a>00384 <span class="keywordtype">void</span> setRegion(<span class="keyword">const</span> Rectangle& region, <span class="keywordtype">float</span> tw, <span class="keywordtype">float</span> th);
- <a name="l00385"></a>00385
- <a name="l00386"></a>00386 std::string _id;
- <a name="l00387"></a>00387 <a class="code" href="classgameplay_1_1_theme.html#afe0334a54abcc262e810298001caf85f">Theme::Border</a> _border;
- <a name="l00388"></a>00388 UVs _uvs[9];
- <a name="l00389"></a>00389 Vector4 _color;
- <a name="l00390"></a>00390 Rectangle _region;
- <a name="l00391"></a>00391 <span class="keywordtype">float</span> _tw, _th;
- <a name="l00392"></a>00392 };
- <a name="l00393"></a>00393
- <a name="l00397"></a>00397 Theme();
- <a name="l00398"></a>00398
- <a name="l00402"></a>00402 Theme(<span class="keyword">const</span> Theme& theme);
- <a name="l00403"></a>00403
- <a name="l00407"></a>00407 ~Theme();
- <a name="l00408"></a>00408
- <a name="l00418"></a>00418 <span class="keyword">static</span> Theme* create(<span class="keyword">const</span> <span class="keywordtype">char</span>* url);
- <a name="l00419"></a>00419
- <a name="l00420"></a>00420 Theme::Style* getStyle(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">id</span>) <span class="keyword">const</span>;
- <a name="l00421"></a>00421
- <a name="l00422"></a>00422 <span class="keywordtype">void</span> setProjectionMatrix(<span class="keyword">const</span> Matrix& matrix);
- <a name="l00423"></a>00423
- <a name="l00424"></a>00424 SpriteBatch* getSpriteBatch() <span class="keyword">const</span>;
- <a name="l00425"></a>00425
- <a name="l00426"></a>00426 <span class="keyword">static</span> <span class="keywordtype">void</span> generateUVs(<span class="keywordtype">float</span> tw, <span class="keywordtype">float</span> th, <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> width, <span class="keywordtype">float</span> height, UVs* uvs);
- <a name="l00427"></a>00427
- <a name="l00428"></a>00428 <span class="keywordtype">void</span> lookUpSprites(<span class="keyword">const</span> Properties* overlaySpace, ImageList** imageList, ThemeImage** mouseCursor, Skin** skin);
- <a name="l00429"></a>00429
- <a name="l00430"></a>00430 std::string _url;
- <a name="l00431"></a>00431 Texture* _texture;
- <a name="l00432"></a>00432 SpriteBatch* _spriteBatch;
- <a name="l00433"></a>00433 std::vector<Style*> _styles;
- <a name="l00434"></a>00434 std::vector<ThemeImage*> _images;
- <a name="l00435"></a>00435 std::vector<ImageList*> _imageLists;
- <a name="l00436"></a>00436 std::vector<Skin*> _skins;
- <a name="l00437"></a>00437 std::set<Font*> _fonts;
- <a name="l00438"></a>00438 };
- <a name="l00439"></a>00439
- <a name="l00440"></a>00440 }
- <a name="l00441"></a>00441
- <a name="l00442"></a>00442 <span class="preprocessor">#endif</span>
- </pre></div></div><!-- contents -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Fri May 18 2012 12:10:37 for gameplay by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.0
- </small></address>
- </body>
- </html>
|