ElementFormControl.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. /*
  3. This defines the ElementFormControl type in the Lua global namespace
  4. it has no methods, and all of the attributes are read and write
  5. bool ElementFormControl.disabled
  6. string ElementFormControl.name
  7. string ElementFormControl.value
  8. */
  9. #include <Rocket/Core/Lua/lua.hpp>
  10. #include <Rocket/Core/Lua/LuaType.h>
  11. #include <Rocket/Controls/ElementFormControl.h>
  12. using Rocket::Controls::ElementFormControl;
  13. namespace Rocket {
  14. namespace Core {
  15. namespace Lua {
  16. //this will be used to "inherit" from Element
  17. template<> void LuaType<ElementFormControl>::extra_init(lua_State* L, int metatable_index);
  18. //getters
  19. int ElementFormControlGetAttrdisabled(lua_State* L);
  20. int ElementFormControlGetAttrname(lua_State* L);
  21. int ElementFormControlGetAttrvalue(lua_State* L);
  22. //setters
  23. int ElementFormControlSetAttrdisabled(lua_State* L);
  24. int ElementFormControlSetAttrname(lua_State* L);
  25. int ElementFormControlSetAttrvalue(lua_State* L);
  26. RegType<ElementFormControl> ElementFormControlMethods[];
  27. luaL_reg ElementFormControlGetters[];
  28. luaL_reg ElementFormControlSetters[];
  29. template<> const char* GetTClassName<ElementFormControl>();
  30. template<> RegType<ElementFormControl>* GetMethodTable<ElementFormControl>();
  31. template<> luaL_reg* GetAttrTable<ElementFormControl>();
  32. template<> luaL_reg* SetAttrTable<ElementFormControl>();
  33. }
  34. }
  35. }