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,
135 const String& resourceGroup,
606 void setModuleIdentifierString();
611 int initErrorHandlerFunc();
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);
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;
Base class used as the argument to all subscribers Event object.
Definition EventArgs.h:51
Interface providing event signaling and handling.
Definition EventSet.h:167
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 executeScriptFile(const String &filename, const String &resourceGroup)
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.
void executeScriptFile(const String &filename, const String &resourceGroup, const int error_handler)
Execute a script file.
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
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.
void executeString(const String &str, const String &error_handler)
Execute script code contained in the given CEGUI::String object.
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.
const String & getActivePCallErrorHandlerString() const
Return the function name string of the active error handler function.
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 setDefaultPCallErrorHandler(int function_reference)
Set the function that will be passed as the error handler in calls to lua_pcall, unless an alternativ...
void executeString(const String &str)
Execute script code contained in the given CEGUI::String object.
int getActivePCallErrorHandlerReference() const
return the lua registry index of the active error handler function.
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, const String &subscriber_name, const int error_handler)
Subscribes the named Event to a scripted funtion.
void createBindings(void)
Method called during system initialisation, prior to running any scripts via the ScriptModule,...
static void destroy(LuaScriptModule &mod)
Destroys the given LuaScriptModule object.
void destroyBindings(void)
Method called during system destruction, after all scripts have been run via the ScriptModule,...
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 ...
static LuaScriptModule & create(lua_State *state=0)
Creates a LuaScriptModule object.
void executeScriptFile(const String &filename, const String &resourceGroup, const String &error_handler)
Execute a script file.
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.
Event::Connection subscribeEvent(EventSet *target, const String &name, const String &subscriber_name)
Subscribes the named Event to a scripted funtion.
void executeString(const String &str, const int error_handler)
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 ...
Event::Connection subscribeEvent(EventSet *target, const String &name, const String &subscriber_name, const String &error_handler)
Subscribes the named Event to a scripted funtion.
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,...
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.
Abstract interface required for all scripting support modules to be used with the CEGUI system.
Definition ScriptModule.h:47
String class used within the GUI system.
Definition String.h:64
base class for properties able to do native set/get
Definition TypedProperty.h:50
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1