ElementFormControlTextArea.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. /*
  3. This defines the ElementFormControlTextArea type in the Lua global namespace, refered in this documentation by EFCTextArea
  4. It inherits from ElementFormControl,which inherits from Element
  5. All properties are read/write
  6. int EFCTextArea.cols
  7. int EFCTextArea.maxlength
  8. int EFCTextArea.rows
  9. bool EFCTextArea.wordwrap
  10. */
  11. #include <Rocket/Core/Lua/lua.hpp>
  12. #include <Rocket/Core/Lua/LuaType.h>
  13. #include <Rocket/Controls/ElementFormControlTextArea.h>
  14. using Rocket::Controls::ElementFormControlTextArea;
  15. namespace Rocket {
  16. namespace Core {
  17. namespace Lua {
  18. //inherits from ElementFormControl which inherits from Element
  19. template<> void LuaType<ElementFormControlTextArea>::extra_init(lua_State* L, int metatable_index);
  20. template<> bool LuaType<ElementFormControlTextArea>::is_reference_counted();
  21. //getters
  22. int ElementFormControlTextAreaGetAttrcols(lua_State* L);
  23. int ElementFormControlTextAreaGetAttrmaxlength(lua_State* L);
  24. int ElementFormControlTextAreaGetAttrrows(lua_State* L);
  25. int ElementFormControlTextAreaGetAttrwordwrap(lua_State* L);
  26. //setters
  27. int ElementFormControlTextAreaSetAttrcols(lua_State* L);
  28. int ElementFormControlTextAreaSetAttrmaxlength(lua_State* L);
  29. int ElementFormControlTextAreaSetAttrrows(lua_State* L);
  30. int ElementFormControlTextAreaSetAttrwordwrap(lua_State* L);
  31. RegType<ElementFormControlTextArea> ElementFormControlTextAreaMethods[];
  32. luaL_reg ElementFormControlTextAreaGetters[];
  33. luaL_reg ElementFormControlTextAreaSetters[];
  34. /*
  35. template<> const char* GetTClassName<ElementFormControlTextArea>();
  36. template<> RegType<ElementFormControlTextArea>* GetMethodTable<ElementFormControlTextArea>();
  37. template<> luaL_reg* GetAttrTable<ElementFormControlTextArea>();
  38. template<> luaL_reg* SetAttrTable<ElementFormControlTextArea>();
  39. */
  40. }
  41. }
  42. }