29 #ifndef _CEGUIScriptModule_h_
30 #define _CEGUIScriptModule_h_
32 #include "CEGUI/Base.h"
33 #include "CEGUI/String.h"
34 #include "CEGUI/Event.h"
79 virtual void executeScriptFile(
const String& filename,
const String& resourceGroup =
"") = 0;
93 virtual int executeScriptGlobal(
const String& function_name) = 0;
112 virtual bool executeScriptedEventHandler(
const String& handler_name,
const EventArgs& e) = 0;
125 virtual void executeString(
const String& str) = 0;
158 const String& getIdentifierString()
const;
214 { d_defaultResourceGroup = resourceGroup; }
224 {
return d_defaultResourceGroup; }
244 bool operator()(
const EventArgs& e)
const;
250 const String scriptFunctionName;
256 #endif // end of guard _CEGUIScriptModule_h_
Abstract interface required for all scripting support modules to be used with the CEGUI system...
Definition: ScriptModule.h:45
virtual void destroyBindings(void)
Method called during system destruction, after all scripts have been run via the ScriptModule, to enable the ScriptModule to perform any operations required to cleanup bindings of the script language to the gui system objects, as set-up in the earlier createBindings call.
Definition: ScriptModule.h:148
virtual void createBindings(void)
Method called during system initialisation, prior to running any scripts via the ScriptModule, to enable the ScriptModule to perform any operations required to complete initialisation or binding of the script language to the gui system objects.
Definition: ScriptModule.h:136
Definition: MemoryAllocatedObject.h:109
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
virtual ~ScriptModule(void)
Destructor for ScriptModule base class.
Definition: ScriptModule.h:63
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
String d_identifierString
String that holds some id information about the module.
Definition: ScriptModule.h:228
static String d_defaultResourceGroup
holds the default resource group ID for loading script files.
Definition: ScriptModule.h:230
static const String & getDefaultResourceGroup()
Returns the default resource group used when loading script files.
Definition: ScriptModule.h:223
Interface providing event signaling and handling.
Definition: EventSet.h:166
unsigned int Group
Type for a subscriber group. You can use the subscriber group to order calls to multiple subscribers...
Definition: Event.h:84
Functor class used for binding named script functions to events.
Definition: ScriptModule.h:238
static void setDefaultResourceGroup(const String &resourceGroup)
Sets the default resource group to be used when loading script files.
Definition: ScriptModule.h:213
String class used within the GUI system.
Definition: String.h:62