| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #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 <Rocket/Core/Lua/lua.hpp>
- #include <Rocket/Core/Lua/LuaType.h>
- #include <Rocket/Controls/ElementFormControl.h>
- using Rocket::Controls::ElementFormControl;
- namespace Rocket {
- namespace Core {
- namespace Lua {
- template<> void LuaType<ElementFormControl>::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<ElementFormControl> ElementFormControlMethods[];
- luaL_reg ElementFormControlGetters[];
- luaL_reg ElementFormControlSetters[];
- /*
- template<> const char* GetTClassName<ElementFormControl>() { return "ElementFormControl"; }
- template<> RegType<ElementFormControl>* GetMethodTable<ElementFormControl>() { return ElementFormControlMethods; }
- template<> luaL_reg* GetAttrTable<ElementFormControl>() { return ElementFormControlGetters; }
- template<> luaL_reg* SetAttrTable<ElementFormControl>() { return ElementFormControlSetters; }
- */
- }
- }
- }
|