#pragma once /* This defines the ElementForm type in the Lua global namespace methods: ElementForm:Submit(string name,string value) for everything else, see the documentation for "Element" */ #include #include #include /* This defines the ElementForm type in the Lua global namespace It has one method noreturn ElementForm:Submit(string name,string value) */ using Rocket::Controls::ElementForm; namespace Rocket { namespace Core { namespace Lua { //this will be used to "inherit" from Element template<> void LuaType::extra_init(lua_State* L, int metatable_index); //method int ElementFormSubmit(lua_State* L, ElementForm* obj); RegType ElementFormMethods[]; luaL_reg ElementFormGetters[]; luaL_reg ElementFormSetters[]; template<> const char* GetTClassName(); template<> RegType* GetMethodTable(); template<> luaL_reg* GetAttrTable(); template<> luaL_reg* SetAttrTable(); } } }