29 #ifndef _CEGUIScheme_h_
30 #define _CEGUIScheme_h_
32 #include "CEGUI/Base.h"
33 #include "CEGUI/String.h"
34 #include "CEGUI/SchemeManager.h"
41 # pragma warning(push)
42 # pragma warning(disable : 4251)
58 class CEGUIEXPORT Scheme :
59 public AllocatedObject<Scheme>
62 friend class Scheme_xmlHandler;
74 Scheme(
const String& name);
93 void loadResources(
void);
103 void unloadResources(
void);
113 bool resourcesLoaded(
void)
const;
134 {
return d_defaultResourceGroup; }
147 { d_defaultResourceGroup = resourceGroup; }
153 void loadXMLImagesets();
159 void loadImageFileImagesets();
171 void loadLookNFeels();
177 void loadWindowFactories();
183 void loadWindowRendererFactories();
189 void loadFactoryAliases();
195 void loadFalagardMappings();
201 void unloadXMLImagesets();
207 void unloadImageFileImagesets();
219 void unloadLookNFeels();
225 void unloadWindowFactories();
231 void unloadWindowRendererFactories();
237 void unloadFactoryAliases();
243 void unloadFalagardMappings();
249 bool areXMLImagesetsLoaded()
const;
255 bool areImageFileImagesetsLoaded()
const;
261 bool areFontsLoaded()
const;
267 bool areLookNFeelsLoaded()
const;
273 bool areWindowFactoriesLoaded()
const;
279 bool areWindowRendererFactoriesLoaded()
const;
285 bool areFactoryAliasesLoaded()
const;
291 bool areFalagardMappingsLoaded()
const;
300 struct LoadableUIElement
309 typedef std::vector<LoadableUIElement
310 CEGUI_VECTOR_ALLOC(LoadableUIElement)> LoadableUIElementList;
313 typedef ConstVectorIterator<LoadableUIElementList> LoadableUIElementIterator;
319 LoadableUIElementIterator getXMLImagesets()
const;
325 LoadableUIElementIterator getImageFileImagesets()
const;
331 LoadableUIElementIterator getFonts()
const;
337 LoadableUIElementIterator getLookNFeels()
const;
347 DynamicModule* dynamicModule;
348 FactoryModule* factoryModule;
350 typedef std::vector<String
351 CEGUI_VECTOR_ALLOC(String)> TypeList;
362 struct FalagardMapping
376 LoadableUIElementList d_imagesets;
377 LoadableUIElementList d_imagesetsFromImages;
378 LoadableUIElementList d_fonts;
380 typedef std::vector<UIModule
381 CEGUI_VECTOR_ALLOC(UIModule)> UIModuleList;
382 UIModuleList d_widgetModules;
384 typedef std::vector<UIModule
385 CEGUI_VECTOR_ALLOC(UIModule)> WRModuleList;
386 WRModuleList d_windowRendererModules;
388 typedef std::vector<AliasMapping
389 CEGUI_VECTOR_ALLOC(AliasMapping)> AliasMappingList;
390 AliasMappingList d_aliasMappings;
392 LoadableUIElementList d_looknfeels;
394 typedef std::vector<FalagardMapping
395 CEGUI_VECTOR_ALLOC(FalagardMapping)> FalagardMappingList;
396 FalagardMappingList d_falagardMappings;
398 static String d_defaultResourceGroup;
403 #if defined(_MSC_VER)
404 # pragma warning(pop)
407 #endif // end of guard _CEGUIScheme_h_
const String & getName(void) const
Return the name of this Scheme.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/Scheme.h:123
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
static void setDefaultResourceGroup(const String &resourceGroup)
Sets the default resource group to be used when loading scheme xml data.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/Scheme.h:146
static const String & getDefaultResourceGroup()
Returns the default resource group currently set for Schemes.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/Scheme.h:133
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62