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);
51 LuaFunctor(lua_State* state,
const String& func,
int selfIndex);
53 LuaFunctor(lua_State* state,
const int func,
const int selfIndex,
54 const String& error_handler);
55 LuaFunctor(lua_State* state,
const String& func,
const int selfIndex,
56 const String& error_handler);
57 LuaFunctor(lua_State* state,
const int func,
const int selfIndex,
58 const int error_handler);
59 LuaFunctor(lua_State* state,
const String& func,
const int selfIndex,
60 const int error_handler);
62 LuaFunctor(
const LuaFunctor& cp);
65 bool operator()(
const EventArgs& args)
const;
74 const String& eventName,
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;
109 friend class LuaScriptModule;
114 #endif // end of guard _CEGUILuaFunctor_h_
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
RefCounted< BoundSlot > Connection
Connection object. This is a thin 'smart pointer' wrapper around the actual BoundSlot that represents...
Definition: cegui/include/CEGUI/Event.h:68
static void pushNamedFunction(lua_State *L, const String &name)
Pushes the Lua function named.
Definition: Functor.cpp:195
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...
Definition: Functor.cpp:323