ElementFormControlTextArea.h 1.8 KB

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