Crazy Eddies GUI System: CEGUI::LuaFunctor Class Reference

Crazy Eddies GUI System 0.7.6

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Friends
CEGUI::LuaFunctor Class Reference

Functor class used for subscribing Lua functions to CEGUI events. More...

Collaboration diagram for CEGUI::LuaFunctor:
[legend]

List of all members.

## Public Member Functions
| LuaFunctor (lua_State *state, int func, int selfIndex)
| LuaFunctor (lua_State *state, const String &func, int selfIndex)
| LuaFunctor (lua_State *state, const int func, const int selfIndex, const String &error_handler)
| LuaFunctor (lua_State *state, const String &func, const int selfIndex, const String &error_handler)
| LuaFunctor (lua_State *state, const int func, const int selfIndex, const int error_handler)
| LuaFunctor (lua_State *state, const String &func, const int selfIndex, const int error_handler)
| LuaFunctor (const LuaFunctor &cp)
bool | operator() (const EventArgs &args) const
## Static Public Member Functions
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. To be called from Lua only.
static void | pushNamedFunction (lua_State *L, const String &name)
| Pushes the Lua function named.
## Friends
class | LuaScriptModule

## Detailed Description

Functor class used for subscribing Lua functions to CEGUI events.

## Member Function Documentation

static void CEGUI::LuaFunctor::pushNamedFunction | ( | lua_State * | L,
|  | const String & | name
| ) |  | `[static]`

Pushes the Lua function named.

Parameters:

  name | on top of the Lua stack. The name may contain '.' (dots) character for (nested) table values.