29 #ifndef _CEGUILuaFunctor_h_
30 #define _CEGUILuaFunctor_h_
32 #include "CEGUI/EventSet.h"
41 class LuaScriptModule;
50 LuaFunctor(lua_State* state,
int func,
int selfIndex);
53 LuaFunctor(lua_State* state,
const int func,
const int selfIndex,
54 const String& error_handler);
56 const String& error_handler);
57 LuaFunctor(lua_State* state,
const int func,
const int selfIndex,
58 const int error_handler);
60 const int error_handler);
65 bool operator()(
const EventArgs& args)
const;
77 const int error_handler,
94 void invalidateLuaRefs();
99 mutable bool needs_lookup;
100 mutable String function_name;
103 mutable String d_errFuncName;
105 mutable int d_errFuncIndex;
107 mutable bool d_ourErrFuncIndex;
114 #endif // end of guard _CEGUILuaFunctor_h_
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
Functor class used for subscribing Lua functions to CEGUI events.
Definition: Functor.h:47
Interface for the LuaScriptModule class.
Definition: ScriptModules/Lua/ScriptModule.h:59
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...
Interface providing event signaling and handling.
Definition: EventSet.h:166
static void pushNamedFunction(lua_State *L, const String &name)
Pushes the Lua function named.
String class used within the GUI system.
Definition: String.h:62