30 #ifndef _CEGUISystem_h_
31 #define _CEGUISystem_h_
33 #include "CEGUI/Base.h"
34 #include "CEGUI/String.h"
35 #include "CEGUI/Singleton.h"
36 #include "CEGUI/EventSet.h"
37 #include "CEGUI/Renderer.h"
38 #include "CEGUI/InputEvent.h"
39 #include "CEGUI/ResourceProvider.h"
42 #if defined(__WIN32__) || defined(_WIN32)
43 # include "CEGUI/Win32StringTranscoder.h"
45 # include "CEGUI/IconvStringTranscoder.h"
49 # pragma warning(push)
50 # pragma warning(disable : 4275)
51 # pragma warning(disable : 4251)
129 const String& configFile =
"",
130 const String& logFile =
"CEGUI.log",
131 const int abi = CEGUI_VERSION_ABI);
134 static void destroy();
144 static unsigned int getMajorVersion();
154 static unsigned int getMinorVersion();
164 static unsigned int getPatchVersion();
174 static const String& getVersion();
184 static const String& getVerboseVersion();
203 static System& getSingleton(
void);
213 static System* getSingletonPtr(
void);
229 void renderAllGUIContexts();
272 void executeScriptFile(
const String& filename,
const String& resourceGroup =
"")
const;
286 int executeScriptGlobal(
const String& function_name)
const;
299 void executeScriptString(
const String& str)
const;
314 void setXMLParser(
const String& parserName);
386 static void setDefaultXMLParserName(
const String& parserName);
397 static const String getDefaultXMLParserName();
409 void setImageCodec(
const String& codecName);
427 static void setDefaultImageCodecName(
const String& codecName);
433 static const String& getDefaultImageCodecName();
452 void notifyDisplaySizeChanged(
const Sizef& new_size);
495 void invalidateAllCachedRendering();
516 bool injectTimePulse(
float timeElapsed);
529 void addStandardWindowFactories();
535 static void performVersionTest(
const int expected,
const int received,
588 void outputLogHeader();
591 void createSingletons();
594 void destroySingletons();
597 void setupXMLParser();
600 void cleanupXMLParser();
603 void setupImageCodec(
const String& codecName);
606 void cleanupImageCodec();
609 void invalidateAllWindows();
616 bool d_ourResourceProvider;
645 typedef std::vector<GUIContext* CEGUI_VECTOR_ALLOC(GUIContext*)> GUIContextCollection;
646 GUIContextCollection d_guiContexts;
648 #if defined(__WIN32__) || defined(_WIN32)
658 #if defined(_MSC_VER)
659 # pragma warning(pop)
662 #endif // end of guard _CEGUISystem_h_