ElementFormControlTextArea.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. //getters
  21. int ElementFormControlTextAreaGetAttrcols(lua_State* L);
  22. int ElementFormControlTextAreaGetAttrmaxlength(lua_State* L);
  23. int ElementFormControlTextAreaGetAttrrows(lua_State* L);
  24. int ElementFormControlTextAreaGetAttrwordwrap(lua_State* L);
  25. //setters
  26. int ElementFormControlTextAreaSetAttrcols(lua_State* L);
  27. int ElementFormControlTextAreaSetAttrmaxlength(lua_State* L);
  28. int ElementFormControlTextAreaSetAttrrows(lua_State* L);
  29. int ElementFormControlTextAreaSetAttrwordwrap(lua_State* L);
  30. RegType<ElementFormControlTextArea> ElementFormControlTextAreaMethods[];
  31. luaL_reg ElementFormControlTextAreaGetters[];
  32. luaL_reg ElementFormControlTextAreaSetters[];
  33. /*
  34. template<> const char* GetTClassName<ElementFormControlTextArea>();
  35. template<> RegType<ElementFormControlTextArea>* GetMethodTable<ElementFormControlTextArea>();
  36. template<> luaL_reg* GetAttrTable<ElementFormControlTextArea>();
  37. template<> luaL_reg* SetAttrTable<ElementFormControlTextArea>();
  38. */
  39. }
  40. }
  41. }