ElementFormControl.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. //getters
  18. int ElementFormControlGetAttrdisabled(lua_State* L);
  19. int ElementFormControlGetAttrname(lua_State* L);
  20. int ElementFormControlGetAttrvalue(lua_State* L);
  21. //setters
  22. int ElementFormControlSetAttrdisabled(lua_State* L);
  23. int ElementFormControlSetAttrname(lua_State* L);
  24. int ElementFormControlSetAttrvalue(lua_State* L);
  25. RegType<ElementFormControl> ElementFormControlMethods[];
  26. luaL_reg ElementFormControlGetters[];
  27. luaL_reg ElementFormControlSetters[];
  28. /*
  29. template<> const char* GetTClassName<ElementFormControl>() { return "ElementFormControl"; }
  30. template<> RegType<ElementFormControl>* GetMethodTable<ElementFormControl>() { return ElementFormControlMethods; }
  31. template<> luaL_reg* GetAttrTable<ElementFormControl>() { return ElementFormControlGetters; }
  32. template<> luaL_reg* SetAttrTable<ElementFormControl>() { return ElementFormControlSetters; }
  33. */
  34. }
  35. }
  36. }