#pragma once /* This defines the ElementFormControl type in the Lua global namespace it has no methods, and all of the attributes are read and write bool ElementFormControl.disabled string ElementFormControl.name string ElementFormControl.value */ #include #include #include using Rocket::Controls::ElementFormControl; 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); //getters int ElementFormControlGetAttrdisabled(lua_State* L); int ElementFormControlGetAttrname(lua_State* L); int ElementFormControlGetAttrvalue(lua_State* L); //setters int ElementFormControlSetAttrdisabled(lua_State* L); int ElementFormControlSetAttrname(lua_State* L); int ElementFormControlSetAttrvalue(lua_State* L); RegType ElementFormControlMethods[]; luaL_reg ElementFormControlGetters[]; luaL_reg ElementFormControlSetters[]; template<> const char* GetTClassName(); template<> RegType* GetMethodTable(); template<> luaL_reg* GetAttrTable(); template<> luaL_reg* SetAttrTable(); } } }