ElementFormControl.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. template<> void LuaType<ElementFormControl>::extra_init(lua_State* L, int metatable_index);
  17. template<> bool LuaType<ElementFormControl>::is_reference_counted();
  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. /*
  30. template<> const char* GetTClassName<ElementFormControl>() { return "ElementFormControl"; }
  31. template<> RegType<ElementFormControl>* GetMethodTable<ElementFormControl>() { return ElementFormControlMethods; }
  32. template<> luaL_reg* GetAttrTable<ElementFormControl>() { return ElementFormControlGetters; }
  33. template<> luaL_reg* SetAttrTable<ElementFormControl>() { return ElementFormControlSetters; }
  34. */
  35. }
  36. }
  37. }