29 #ifndef _CEGUISystem_h_
30 #define _CEGUISystem_h_
32 #include "CEGUI/Base.h"
33 #include "CEGUI/String.h"
34 #include "CEGUI/Singleton.h"
35 #include "CEGUI/EventSet.h"
36 #include "CEGUI/Renderer.h"
37 #include "CEGUI/InputEvent.h"
38 #include "CEGUI/ResourceProvider.h"
41 #if defined(__WIN32__) || defined(_WIN32)
42 # include "CEGUI/Win32StringTranscoder.h"
44 # include "CEGUI/IconvStringTranscoder.h"
48 # pragma warning(push)
49 # pragma warning(disable : 4275)
50 # pragma warning(disable : 4251)
128 const String& configFile =
"",
129 const String& logFile =
"CEGUI.log",
130 const int abi = CEGUI_VERSION_ABI);
133 static void destroy();
143 static unsigned int getMajorVersion();
153 static unsigned int getMinorVersion();
163 static unsigned int getPatchVersion();
173 static const String& getVersion();
183 static const String& getVerboseVersion();
202 static System& getSingleton(
void);
212 static System* getSingletonPtr(
void);
228 void renderAllGUIContexts();
271 void executeScriptFile(
const String& filename,
const String& resourceGroup =
"")
const;
285 int executeScriptGlobal(
const String& function_name)
const;
298 void executeScriptString(
const String& str)
const;
313 void setXMLParser(
const String& parserName);
385 static void setDefaultXMLParserName(
const String& parserName);
396 static const String getDefaultXMLParserName();
408 void setImageCodec(
const String& codecName);
426 static void setDefaultImageCodecName(
const String& codecName);
432 static const String& getDefaultImageCodecName();
451 void notifyDisplaySizeChanged(
const Sizef& new_size);
494 void invalidateAllCachedRendering();
515 bool injectTimePulse(
float timeElapsed);
528 void addStandardWindowFactories();
534 static void performVersionTest(
const int expected,
const int received,
587 void outputLogHeader();
590 void createSingletons();
593 void destroySingletons();
596 void setupXMLParser();
599 void cleanupXMLParser();
602 void setupImageCodec(
const String& codecName);
605 void cleanupImageCodec();
608 void invalidateAllWindows();
615 bool d_ourResourceProvider;
644 typedef std::vector<GUIContext* CEGUI_VECTOR_ALLOC(GUIContext*)> GUIContextCollection;
645 GUIContextCollection d_guiContexts;
647 #if defined(__WIN32__) || defined(_WIN32)
657 #if defined(_MSC_VER)
658 # pragma warning(pop)
661 #endif // end of guard _CEGUISystem_h_
Abstract ImageLoader class. An image loader encapsulate the loading of a texture. ...
Definition: ImageCodec.h:45
Abstract interface required for all scripting support modules to be used with the CEGUI system...
Definition: ScriptModule.h:45
Definition: GUIContext.h:68
DynamicModule * d_imageCodecModule
Definition: System.h:636
Definition: MemoryAllocatedObject.h:109
Class that wraps and gives access to a dynamically linked module (.dll, .so, etc...)
Definition: DynamicModule.h:41
Abstract class that defines the required interface for all resource provider sub-classes.
Definition: ResourceProvider.h:47
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
String d_termScriptName
Name of the script to run upon system shutdown.
Definition: System.h:621
Clipboard * d_clipboard
Internal clipboard with optional sync with native clipboard.
Definition: System.h:617
Interface for a string transcoding utility. Instances of classes that implement this interface can be...
Definition: StringTranscoder.h:41
Interface for Regex matching support classes.
Definition: RegexMatcher.h:39
XMLParser * getXMLParser(void) const
Return the XMLParser object.
Definition: System.h:338
static const String EventRenderedStringParserChanged
Definition: System.h:86
Defines a clipboard handling class.
Definition: Clipboard.h:82
ImageCodec * d_imageCodec
Holds a pointer to the image codec to use.
Definition: System.h:630
static const String EventDisplaySizeChanged
Definition: System.h:82
static const String EventNamespace
Namespace for global events.
Definition: System.h:71
Definition: Singleton.h:55
Abstract class defining the basic required interface for Renderer objects.
Definition: Renderer.h:82
bool d_ourImageCodec
true when we created the image codec.
Definition: System.h:632
ScriptModule * d_scriptModule
Points to the scripting support module.
Definition: System.h:620
bool d_ourXmlParser
true when we created the xml parser.
Definition: System.h:624
bool d_ourLogger
true when we created the CEGUI::Logger based object.
Definition: System.h:640
ResourceProvider * d_resourceProvider
Holds the pointer to the ResourceProvider object given to us by the renderer or the System constructo...
Definition: System.h:614
RenderedStringParser * d_customRenderedStringParser
currently set global RenderedStringParser.
Definition: System.h:642
Implementation of StringTranscoder that uses Win32.
Definition: Win32StringTranscoder.h:36
Implementation of StringTranscoder that uses iconv.
Definition: IconvStringTranscoder.h:36
Interface providing event signaling and handling.
Definition: EventSet.h:166
Defines interface to some surface that can be rendered to. Concrete instances of objects that impleme...
Definition: RenderTarget.h:57
Clipboard * getClipboard() const
Retrieves internal CEGUI clipboard, optionally synced with system wide clipboard. ...
Definition: System.h:218
Specifies interface for classes that parse text into RenderedString objects.
Definition: RenderedStringParser.h:37
Renderer * d_renderer
Holds the pointer to the Renderer object given to us in the constructor.
Definition: System.h:613
XMLParser * d_xmlParser
XMLParser object we use to process xml files.
Definition: System.h:623
Renderer * getRenderer(void) const
Return a pointer to the Renderer object being used by the system.
Definition: System.h:192
The System class is the CEGUI class that provides access to all other elements in this system...
Definition: System.h:65
This is an abstract class that is used by CEGUI to interface with XML parser libraries.
Definition: XMLParser.h:41
static const IconvStringTranscoder d_stringTranscoder
instance of class that can convert string encodings
Definition: System.h:650
static String d_defaultXMLParserName
pointer to parser module.
Definition: System.h:627
static String d_defaultImageCodecName
Holds the name of the default codec to use.
Definition: System.h:638
String class used within the GUI system.
Definition: String.h:62