Crazy Eddie's GUI System
0.8.7
|
36 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
37 # ifdef CEGUILUASCRIPTMODULE_EXPORTS
38 # define CEGUILUA_API __declspec(dllexport)
40 # define CEGUILUA_API __declspec(dllimport)
47 #include "CEGUI/ScriptModule.h"
114 const String& resourceGroup,
115 const String& error_handler);
135 const String& resourceGroup,
136 const int error_handler);
170 const String& error_handler);
190 const int error_handler);
239 const String& error_handler);
266 const int error_handler);
336 const String& subscriber_name);
362 const String& subscriber_name,
363 const String& error_handler);
389 const String& subscriber_name,
390 const int error_handler);
416 const String& subscriber_name);
447 const String& subscriber_name,
448 const String& error_handler);
479 const String& subscriber_name,
480 const int error_handler);
606 void setModuleIdentifierString();
611 int initErrorHandlerFunc();
616 int initErrorHandlerFunc(
const String func_name);
621 int initErrorHandlerFunc(
int func);
628 void cleanupErrorHandlerFunc();
631 void unrefErrorFunc();
634 void executeScriptFile_impl(
const String& filename,
635 const String& resourceGroup,
636 const int err_idx,
const int top);
639 int executeScriptGlobal_impl(
const String& function_name,
640 const int err_idx,
const int top);
643 bool executeScriptedEventHandler_impl(
const String& handler_name,
645 const int err_idx,
const int top);
648 void executeString_impl(
const String& str,
const int err_idx,
const int top);
664 String d_activeErrFuncName;
668 int d_activeErrFuncIndex;
673 #endif // end of guard _CEGUILua_h_
void setDefaultPCallErrorHandler(const String &error_handler_function)
Set the name of the lua function that will be passed as the error handler in calls to lua_pcall,...
void executeScriptFile(const String &filename, const String &resourceGroup, const String &error_handler)
Execute a script file.
void executeString(const String &str)
Execute script code contained in the given CEGUI::String object.
int executeScriptGlobal(const String &function_name)
Execute a scripted global function. The function should not take any parameters and should return an ...
void destroyBindings(void)
Method called during system destruction, after all scripts have been run via the ScriptModule,...
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
void executeString(const String &str, const int error_handler)
Execute script code contained in the given CEGUI::String object.
Interface providing event signaling and handling.
Definition: EventSet.h:167
const String & getActivePCallErrorHandlerString() const
Return the function name string of the active error handler function.
lua_State * getLuaState(void) const
Method used to get a pointer to the lua_State that the script module is attached to.
Definition: ScriptModules/Lua/ScriptModule.h:520
int executeScriptGlobal(const String &function_name, const int error_handler)
Execute a scripted global function. The function should not take any parameters and should return an ...
Event::Connection subscribeEvent(EventSet *target, const String &name, Event::Group group, const String &subscriber_name, const String &error_handler)
Subscribes the specified group of the named Event to a scripted funtion.
void executeScriptFile(const String &filename, const String &resourceGroup)
Execute a script file.
int executeScriptGlobal(const String &function_name, const String &error_handler)
Execute a scripted global function. The function should not take any parameters and should return an ...
bool executeScriptedEventHandler(const String &handler_name, const EventArgs &e, const int error_handler)
Execute a scripted global 'event handler' function by looking it up by name.
unsigned int Group
Type for a subscriber group. You can use the subscriber group to order calls to multiple subscribers....
Definition: Event.h:84
Interface for the LuaScriptModule class.
Definition: ScriptModules/Lua/ScriptModule.h:60
void executeString(const String &str, const String &error_handler)
Execute script code contained in the given CEGUI::String object.
static void destroy(LuaScriptModule &mod)
Destroys the given LuaScriptModule object.
static LuaScriptModule & create(lua_State *state=0)
Creates a LuaScriptModule object.
void setDefaultPCallErrorHandler(int function_reference)
Set the function that will be passed as the error handler in calls to lua_pcall, unless an alternativ...
Event::Connection subscribeEvent(EventSet *target, const String &name, const String &subscriber_name, const String &error_handler)
Subscribes the named Event to a scripted funtion.
Event::Connection subscribeEvent(EventSet *target, const String &name, Event::Group group, const String &subscriber_name, const int error_handler)
Subscribes the specified group of the named Event to a scripted funtion.
void createBindings(void)
Method called during system initialisation, prior to running any scripts via the ScriptModule,...
bool executeScriptedEventHandler(const String &handler_name, const EventArgs &e, const String &error_handler)
Execute a scripted global 'event handler' function by looking it up by name.
int getActivePCallErrorHandlerReference() const
return the lua registry index of the active error handler function.
String class used within the GUI system.
Definition: String.h:64
Event::Connection subscribeEvent(EventSet *target, const String &name, const String &subscriber_name)
Subscribes the named Event to a scripted funtion.
void executeScriptFile(const String &filename, const String &resourceGroup, const int error_handler)
Execute a script file.
bool executeScriptedEventHandler(const String &handler_name, const EventArgs &e)
Execute a scripted global 'event handler' function by looking it up by name.
Event::Connection subscribeEvent(EventSet *target, const String &name, Event::Group group, const String &subscriber_name)
Subscribes the specified group of the named Event to a scripted funtion.
Event::Connection subscribeEvent(EventSet *target, const String &name, const String &subscriber_name, const int error_handler)
Subscribes the named Event to a scripted funtion.
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:51
Abstract interface required for all scripting support modules to be used with the CEGUI system.
Definition: ScriptModule.h:47