libRocket
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Functions
Rocket::Core::Lua Namespace Reference

Classes

class  Interpreter
 
class  LuaType
 
struct  RegType
 

Functions

template<typename T >
ROCKETLUA_API RegType< T > * GetMethodTable ()
 
template<typename T >
ROCKETLUA_API luaL_Reg * GetAttrTable ()
 
template<typename T >
ROCKETLUA_API luaL_Reg * SetAttrTable ()
 
template<typename T >
ROCKETLUA_API const char * GetTClassName ()
 
template<typename T >
ROCKETLUA_API bool IsReferenceCounted ()
 
template<typename T >
ROCKETLUA_API void ExtraInit (lua_State *L, int metatable_index)
 
template<typename ToType >
int CastFromElementTo (lua_State *L)
 
template<typename T >
void AddTypeToElementAsTable (lua_State *L)
 

Function Documentation

template<typename T >
void Rocket::Core::Lua::AddTypeToElementAsTable ( lua_State *  L)
template<typename ToType >
int Rocket::Core::Lua::CastFromElementTo ( lua_State *  L)
template<typename T >
ROCKETLUA_API void Rocket::Core::Lua::ExtraInit ( lua_State *  L,
int  metatable_index 
)

gets called from the LuaType<T>::Register function, right before _regfunctions. If you want to inherit from another class, in the function you would want to call _regfunctions<superclass>, where method is metatable_index - 1. Anything that has the same name in the subclass will be overwrite whatever had the same name in the superclass.

template<typename T >
ROCKETLUA_API luaL_Reg* Rocket::Core::Lua::GetAttrTable ( )

For all of the function that 'get' an attribute/property

template<typename T >
ROCKETLUA_API RegType<T>* Rocket::Core::Lua::GetMethodTable ( )

For all of the methods available from Lua that call to the C functions.

template<typename T >
ROCKETLUA_API const char* Rocket::Core::Lua::GetTClassName ( )

String representation of the class

template<typename T >
ROCKETLUA_API bool Rocket::Core::Lua::IsReferenceCounted ( )

bool for if it is reference counted

template<typename T >
ROCKETLUA_API luaL_Reg* Rocket::Core::Lua::SetAttrTable ( )

For all of the functions that 'set' an attribute/property