Crazy Eddies GUI System
0.6.0
|
A class that manages the creation of, access to, and destruction of GUI Scheme objects. More...
Public Types | |
typedef ConstBaseIterator < SchemeRegistry > | SchemeIterator |
Public Member Functions | |
SchemeManager (void) | |
Constructor for SchemeManager objects. | |
~SchemeManager (void) | |
Destructor for SchemeManager objects. | |
Scheme * | loadScheme (const String &scheme_filename, const String &resourceGroup="") |
Loads a scheme. More... | |
void | unloadScheme (const String &scheme_name) |
Unloads all data referenced in a scheme. If any object is using some resource which is listed in the scheme, this function will effectively pull the rug out from under those objects. This should be used with extreme caution, or not at all. More... | |
bool | isSchemePresent (const String &scheme_name) const |
Returns true if the named Scheme is present in the system (though the resources for the scheme may or may not be loaded) More... | |
Scheme * | getScheme (const String &name) const |
Returns a pointer to the Scheme object with the specified name. More... | |
void | unloadAllSchemes (void) |
Unload all schemes currently defined within the system. More... | |
SchemeIterator | getIterator (void) const |
Return a SchemeManager::SchemeIterator object to iterate over the available schemes. | |
Additional Inherited Members | |
Static Public Member Functions inherited from CEGUI::Singleton< SchemeManager > | |
static SchemeManager & | getSingleton (void) |
static SchemeManager * | getSingletonPtr (void) |
Static Protected Attributes inherited from CEGUI::Singleton< SchemeManager > | |
static SchemeManager * | ms_Singleton |
A class that manages the creation of, access to, and destruction of GUI Scheme objects.
|
inline |
Scheme * CEGUI::SchemeManager::loadScheme | ( | const String & | scheme_filename, |
const String & | resourceGroup = "" |
||
) |
Loads a scheme.
scheme_filename | String object that holds the filename of the scheme to be loaded |
resourceGroup | Resource group identifier to be passed to the resource manager. NB: This affects loading of the scheme xml file only, scheme resources may specify their own groups. |
References CEGUI::Scheme::getName().
void CEGUI::SchemeManager::unloadAllSchemes | ( | void | ) |
Unload all schemes currently defined within the system.
References unloadScheme().
Referenced by ~SchemeManager().
void CEGUI::SchemeManager::unloadScheme | ( | const String & | scheme_name | ) |
Unloads all data referenced in a scheme. If any object is using some resource which is listed in the scheme, this function will effectively pull the rug out from under those objects. This should be used with extreme caution, or not at all.
References CEGUI::Errors.
Referenced by unloadAllSchemes().