Free Electron
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
fe::ext::LuaComponentObject Class Reference

Component to Lua binding object. More...

#include <LuaComponent.h>

Inherits fe::ext::LuaObject< T, tid >.

Public Member Functions

 LuaComponentObject (LuaContext *pContext, const sp< Component > &data)
 
void setMethod (const String &name, lua_CFunction f)
 
bool pushMethod (String &name)
 
void populateMethods (void)
 This is where you directly bind interfaces to lua. More...
 
template<class T >
bool is (void)
 

Static Public Member Functions

static int index (lua_State *pLuaState)
 
static int newindex (lua_State *pLuaState)
 
static int call (lua_State *pLuaState)
 
static int name (lua_State *pLuaState)
 
static int setName (lua_State *pLuaState)
 
static int adjoin (lua_State *pLuaState)
 
static void pushComponent (lua_State *pLuaState, sp< Component > spC)
 

Private Attributes

std::map< String, lua_CFunction > m_methods
 

Detailed Description

Component to Lua binding object.

Member Function Documentation

◆ populateMethods()

void fe::ext::LuaComponentObject::populateMethods ( void  )

This is where you directly bind interfaces to lua.


The documentation for this class was generated from the following files: