File: classCEGUI_1_1WidgetLookManager.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 (479 lines) | stat: -rw-r--r-- 32,826 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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
<!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: CEGUI::WidgetLookManager Class Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceCEGUI.html">CEGUI</a>      </li>
      <li class="navelem"><a class="el" href="classCEGUI_1_1WidgetLookManager.html">WidgetLookManager</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">CEGUI::WidgetLookManager Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CEGUI::WidgetLookManager" --><!-- doxytag: inherits="Singleton&lt; WidgetLookManager &gt;" -->
<p>Manager class that gives top-level access to widget data based "look and feel" specifications loaded into the system.  
 <a href="classCEGUI_1_1WidgetLookManager.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for CEGUI::WidgetLookManager:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classCEGUI_1_1WidgetLookManager__inherit__graph.gif" border="0" usemap="#CEGUI_1_1WidgetLookManager_inherit__map" alt="Inheritance graph"/></div>
<map name="CEGUI_1_1WidgetLookManager_inherit__map" id="CEGUI_1_1WidgetLookManager_inherit__map">
<area shape="rect" id="node2" href="classCEGUI_1_1Singleton.html" title="CEGUI::Singleton\&lt; WidgetLookManager \&gt;" alt="" coords="5,5,275,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png"/> Collaboration diagram for CEGUI::WidgetLookManager:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classCEGUI_1_1WidgetLookManager__coll__graph.gif" border="0" usemap="#CEGUI_1_1WidgetLookManager_coll__map" alt="Collaboration graph"/></div>
<map name="CEGUI_1_1WidgetLookManager_coll__map" id="CEGUI_1_1WidgetLookManager_coll__map">
<area shape="rect" id="node2" href="classCEGUI_1_1Singleton.html" title="CEGUI::Singleton\&lt; WidgetLookManager \&gt;" alt="" coords="5,213,275,243"/><area shape="rect" id="node5" href="classCEGUI_1_1String.html" title="String class used within the GUI system." alt="" coords="87,5,193,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classCEGUI_1_1WidgetLookManager-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9e85c4be7d64a3e6bfcd2e627924fb4d"></a><!-- doxytag: member="CEGUI::WidgetLookManager::WidgetLookManager" ref="a9e85c4be7d64a3e6bfcd2e627924fb4d" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#a9e85c4be7d64a3e6bfcd2e627924fb4d">WidgetLookManager</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9251e9fd39182d8e3fe968bd69b7537"></a><!-- doxytag: member="CEGUI::WidgetLookManager::~WidgetLookManager" ref="ae9251e9fd39182d8e3fe968bd69b7537" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#ae9251e9fd39182d8e3fe968bd69b7537">~WidgetLookManager</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#a34f31cbffcfcf04f28258029b81ac4ab">parseLookNFeelSpecification</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;filename, const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;resourceGroup=&quot;&quot;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses a file containing window look &amp; feel specifications (in the form of XML).  <a href="#a34f31cbffcfcf04f28258029b81ac4ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#a63a1807f45c439fc63d32c4a3dca672d">isWidgetLookAvailable</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;widget) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return whether a <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> has been created with the specified name.  <a href="#a63a1807f45c439fc63d32c4a3dca672d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCEGUI_1_1WidgetLookFeel.html">WidgetLookFeel</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#a130a63f9ded00bd092d1655003e41e78">getWidgetLook</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;widget) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a const reference to a <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> object which has the specified name.  <a href="#a130a63f9ded00bd092d1655003e41e78"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#af4ca70984fe989df102fa78527e6c8d3">eraseWidgetLook</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;widget)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Erase the <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> that has the specified name.  <a href="#af4ca70984fe989df102fa78527e6c8d3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#a70796b95e9da1ddf4a90653ac3382d6b">addWidgetLook</a> (const <a class="el" href="classCEGUI_1_1WidgetLookFeel.html">WidgetLookFeel</a> &amp;look)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add the given <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a>.  <a href="#a70796b95e9da1ddf4a90653ac3382d6b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#aa2bc1418e1e26ea9b40b496667f4008e">writeWidgetLookToStream</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;name, <a class="el" href="namespaceCEGUI.html#ac2f7aaf6a0965b83cb35e0b1298c70b9">OutStream</a> &amp;out_stream) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes a complete Widge Look to a stream. Note that xml file header and falagard opening/closing tags will also be written.  <a href="#aa2bc1418e1e26ea9b40b496667f4008e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#a2c2ff7bd43a0cf2bf5fdc29a0699c8e6">writeWidgetLookSeriesToStream</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;prefix, <a class="el" href="namespaceCEGUI.html#ac2f7aaf6a0965b83cb35e0b1298c70b9">OutStream</a> &amp;out_stream) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes a series of complete Widge Look objects to a stream. Note that xml file header and falagard opening/closing tags will also be written.  <a href="#a2c2ff7bd43a0cf2bf5fdc29a0699c8e6"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCEGUI_1_1WidgetLookManager.html">WidgetLookManager</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#aa0adb1fbad367388923ddd6b771cd117">getSingleton</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return singleton <a class="el" href="classCEGUI_1_1WidgetLookManager.html" title="Manager class that gives top-level access to widget data based &quot;look and feel&quot; specifications loaded ...">WidgetLookManager</a> object.  <a href="#aa0adb1fbad367388923ddd6b771cd117"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCEGUI_1_1WidgetLookManager.html">WidgetLookManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#a2ff8e63ac20fa9ad3368155805bfbdb8">getSingletonPtr</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return pointer to singleton <a class="el" href="classCEGUI_1_1WidgetLookManager.html" title="Manager class that gives top-level access to widget data based &quot;look and feel&quot; specifications loaded ...">WidgetLookManager</a> object.  <a href="#a2ff8e63ac20fa9ad3368155805bfbdb8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#a21fb722390a3e8e980742e0bf0feb0b8">getDefaultResourceGroup</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the default resource group currently set for LookNFeels.  <a href="#a21fb722390a3e8e980742e0bf0feb0b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCEGUI_1_1WidgetLookManager.html#a30088f26a69d88e7671e3afaa54de653">setDefaultResourceGroup</a> (const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;resourceGroup)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the default resource group to be used when loading LookNFeel data.  <a href="#a30088f26a69d88e7671e3afaa54de653"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Manager class that gives top-level access to widget data based "look and feel" specifications loaded into the system. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a70796b95e9da1ddf4a90653ac3382d6b"></a><!-- doxytag: member="CEGUI::WidgetLookManager::addWidgetLook" ref="a70796b95e9da1ddf4a90653ac3382d6b" args="(const WidgetLookFeel &amp;look)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CEGUI::WidgetLookManager::addWidgetLook </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1WidgetLookFeel.html">WidgetLookFeel</a> &amp;&#160;</td>
          <td class="paramname"><em>look</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add the given <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a>. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>If the <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> specification uses a name that already exists within the system, it is not an error; the previous definition is overwritten by the new data. An entry will appear in the log each time any look &amp; feel component is overwritten.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">look</td><td><a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> object to be added to the system. NB: The <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> is copied, no change of ownership of the input object occurrs.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Nothing. </dd></dl>

</div>
</div>
<a class="anchor" id="af4ca70984fe989df102fa78527e6c8d3"></a><!-- doxytag: member="CEGUI::WidgetLookManager::eraseWidgetLook" ref="af4ca70984fe989df102fa78527e6c8d3" args="(const String &amp;widget)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CEGUI::WidgetLookManager::eraseWidgetLook </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Erase the <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> that has the specified name. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> object holding the name of a widget look to be erased. If no such <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> exists, nothing happens.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Nothing. </dd></dl>

</div>
</div>
<a class="anchor" id="a21fb722390a3e8e980742e0bf0feb0b8"></a><!-- doxytag: member="CEGUI::WidgetLookManager::getDefaultResourceGroup" ref="a21fb722390a3e8e980742e0bf0feb0b8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="classCEGUI_1_1String.html">String</a>&amp; CEGUI::WidgetLookManager::getDefaultResourceGroup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the default resource group currently set for LookNFeels. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> describing the default resource group identifier that will be used when loading LookNFeel data. </dd></dl>

</div>
</div>
<a class="anchor" id="aa0adb1fbad367388923ddd6b771cd117"></a><!-- doxytag: member="CEGUI::WidgetLookManager::getSingleton" ref="aa0adb1fbad367388923ddd6b771cd117" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCEGUI_1_1WidgetLookManager.html">WidgetLookManager</a>&amp; CEGUI::WidgetLookManager::getSingleton </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return singleton <a class="el" href="classCEGUI_1_1WidgetLookManager.html" title="Manager class that gives top-level access to widget data based &quot;look and feel&quot; specifications loaded ...">WidgetLookManager</a> object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classCEGUI_1_1Singleton.html">Singleton</a> <a class="el" href="classCEGUI_1_1WidgetLookManager.html" title="Manager class that gives top-level access to widget data based &quot;look and feel&quot; specifications loaded ...">WidgetLookManager</a> object </dd></dl>

<p>Reimplemented from <a class="el" href="classCEGUI_1_1Singleton.html">CEGUI::Singleton&lt; WidgetLookManager &gt;</a>.</p>

</div>
</div>
<a class="anchor" id="a2ff8e63ac20fa9ad3368155805bfbdb8"></a><!-- doxytag: member="CEGUI::WidgetLookManager::getSingletonPtr" ref="a2ff8e63ac20fa9ad3368155805bfbdb8" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCEGUI_1_1WidgetLookManager.html">WidgetLookManager</a>* CEGUI::WidgetLookManager::getSingletonPtr </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return pointer to singleton <a class="el" href="classCEGUI_1_1WidgetLookManager.html" title="Manager class that gives top-level access to widget data based &quot;look and feel&quot; specifications loaded ...">WidgetLookManager</a> object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to singleton <a class="el" href="classCEGUI_1_1WidgetLookManager.html" title="Manager class that gives top-level access to widget data based &quot;look and feel&quot; specifications loaded ...">WidgetLookManager</a> object </dd></dl>

<p>Reimplemented from <a class="el" href="classCEGUI_1_1Singleton.html">CEGUI::Singleton&lt; WidgetLookManager &gt;</a>.</p>

</div>
</div>
<a class="anchor" id="a130a63f9ded00bd092d1655003e41e78"></a><!-- doxytag: member="CEGUI::WidgetLookManager::getWidgetLook" ref="a130a63f9ded00bd092d1655003e41e78" args="(const String &amp;widget) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classCEGUI_1_1WidgetLookFeel.html">WidgetLookFeel</a>&amp; CEGUI::WidgetLookManager::getWidgetLook </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return a const reference to a <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> object which has the specified name. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> object holding the name of a widget look that is to be returned.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>const reference to the requested <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> object.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classCEGUI_1_1UnknownObjectException.html" title="Exception class used when a request was made for an unknown object.">UnknownObjectException</a></td><td>thrown if no <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> is available with the requested name. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a63a1807f45c439fc63d32c4a3dca672d"></a><!-- doxytag: member="CEGUI::WidgetLookManager::isWidgetLookAvailable" ref="a63a1807f45c439fc63d32c4a3dca672d" args="(const String &amp;widget) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CEGUI::WidgetLookManager::isWidgetLookAvailable </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return whether a <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> has been created with the specified name. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> object holding the name of a widget look to test for.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>true if a <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> named <em>widget</em> is available.</li>
<li>false if so such <a class="el" href="classCEGUI_1_1WidgetLookFeel.html" title="Class that encapsulates look &amp; feel information for a particular widget type.">WidgetLookFeel</a> is currently available. </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a34f31cbffcfcf04f28258029b81ac4ab"></a><!-- doxytag: member="CEGUI::WidgetLookManager::parseLookNFeelSpecification" ref="a34f31cbffcfcf04f28258029b81ac4ab" args="(const String &amp;filename, const String &amp;resourceGroup=&quot;&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CEGUI::WidgetLookManager::parseLookNFeelSpecification </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>resourceGroup</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses a file containing window look &amp; feel specifications (in the form of XML). </p>
<dl class="note"><dt><b>Note:</b></dt><dd>If the new file contains specifications for widget types that are already specified, it is not an error; the previous definitions are overwritten by the new data. An entry will appear in the log each time any look &amp; feel component is overwritten.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> object containing the filename of a file containing the widget look &amp; feel data</td></tr>
    <tr><td class="paramname">resourceGroup</td><td>Resource group identifier to pass to the resource provider when loading the file.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Nothing.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classCEGUI_1_1FileIOException.html" title="Exception class used when a file handling problem occurs.">FileIOException</a></td><td>thrown if there was some problem accessing or parsing the file <em>filename</em> </td></tr>
    <tr><td class="paramname"><a class="el" href="classCEGUI_1_1InvalidRequestException.html" title="Exception class used when some impossible request was made of the system.">InvalidRequestException</a></td><td>thrown if an invalid filename was provided. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a30088f26a69d88e7671e3afaa54de653"></a><!-- doxytag: member="CEGUI::WidgetLookManager::setDefaultResourceGroup" ref="a30088f26a69d88e7671e3afaa54de653" args="(const String &amp;resourceGroup)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void CEGUI::WidgetLookManager::setDefaultResourceGroup </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>resourceGroup</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the default resource group to be used when loading LookNFeel data. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">resourceGroup</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> describing the default resource group identifier to be used.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Nothing. </dd></dl>

</div>
</div>
<a class="anchor" id="a2c2ff7bd43a0cf2bf5fdc29a0699c8e6"></a><!-- doxytag: member="CEGUI::WidgetLookManager::writeWidgetLookSeriesToStream" ref="a2c2ff7bd43a0cf2bf5fdc29a0699c8e6" args="(const String &amp;prefix, OutStream &amp;out_stream) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CEGUI::WidgetLookManager::writeWidgetLookSeriesToStream </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>prefix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCEGUI.html#ac2f7aaf6a0965b83cb35e0b1298c70b9">OutStream</a> &amp;&#160;</td>
          <td class="paramname"><em>out_stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Writes a series of complete Widge Look objects to a stream. Note that xml file header and falagard opening/closing tags will also be written. </p>
<p>The <em>prefix</em> specifies a name prefix common to all widget looks to be written, you could specify this as "TaharezLook/" and then any defined widget look starting with that prefix, such as "TaharezLook/Button" and "TaharezLook/Listbox" will be written to the stream.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">prefix</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> holding the widget look name prefix, which will be used when searching for the widget looks to be output to the stream.</td></tr>
    <tr><td class="paramname">out_stream</td><td>OutStream where XML data should be sent. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa2bc1418e1e26ea9b40b496667f4008e"></a><!-- doxytag: member="CEGUI::WidgetLookManager::writeWidgetLookToStream" ref="aa2bc1418e1e26ea9b40b496667f4008e" args="(const String &amp;name, OutStream &amp;out_stream) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CEGUI::WidgetLookManager::writeWidgetLookToStream </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCEGUI_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCEGUI.html#ac2f7aaf6a0965b83cb35e0b1298c70b9">OutStream</a> &amp;&#160;</td>
          <td class="paramname"><em>out_stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Writes a complete Widge Look to a stream. Note that xml file header and falagard opening/closing tags will also be written. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td><a class="el" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> holding the name of the widget look to be output to the stream.</td></tr>
    <tr><td class="paramname">out_stream</td><td>OutStream where XML data should be sent. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:42 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>