30 #ifndef _CEGUILuaFunctor_h_
31 #define _CEGUILuaFunctor_h_
33 #include "../../CEGUIEventSet.h"
42 class LuaScriptModule;
51 LuaFunctor(lua_State* state,
int func,
int selfIndex);
54 LuaFunctor(lua_State* state,
const int func,
const int selfIndex,
55 const String& error_handler);
57 const String& error_handler);
58 LuaFunctor(lua_State* state,
const int func,
const int selfIndex,
59 const int error_handler);
61 const int error_handler);
66 bool operator()(
const EventArgs& args)
const;
78 const int error_handler,
95 void invalidateLuaRefs();
100 mutable bool needs_lookup;
101 mutable String function_name;
104 mutable String d_errFuncName;
106 mutable int d_errFuncIndex;
108 mutable bool d_ourErrFuncIndex;
115 #endif // end of guard _CEGUILuaFunctor_h_
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
Functor class used for subscribing Lua functions to CEGUI events.
Definition: CEGUILuaFunctor.h:48
Interface for the LuaScriptModule class.
Definition: CEGUILua.h:60
static Event::Connection SubscribeEvent(EventSet *self, const String &eventName, const int funcIndex, const int selfIndex, const int error_handler, lua_State *L)
function used to subscribe any Lua function as event handler. References using the Lua registry...
Class that collects together a set of Event objects.
Definition: CEGUIEventSet.h:66
static void pushNamedFunction(lua_State *L, const String &name)
Pushes the Lua function named.
String class used within the GUI system.
Definition: CEGUIString.h:57