ElementFormControlTextArea.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include <RmlUi/Core/Elements/ElementFormControlTextArea.h>
  3. #include <RmlUi/Lua/IncludeLua.h>
  4. #include <RmlUi/Lua/LuaType.h>
  5. namespace Rml {
  6. namespace Lua {
  7. // methods
  8. int ElementFormControlTextAreaSelect(lua_State* L, ElementFormControlTextArea* obj);
  9. int ElementFormControlTextAreaSetSelection(lua_State* L, ElementFormControlTextArea* obj);
  10. int ElementFormControlTextAreaGetSelection(lua_State* L, ElementFormControlTextArea* obj);
  11. // getters
  12. int ElementFormControlTextAreaGetAttrcols(lua_State* L);
  13. int ElementFormControlTextAreaGetAttrmaxlength(lua_State* L);
  14. int ElementFormControlTextAreaGetAttrrows(lua_State* L);
  15. int ElementFormControlTextAreaGetAttrwordwrap(lua_State* L);
  16. // setters
  17. int ElementFormControlTextAreaSetAttrcols(lua_State* L);
  18. int ElementFormControlTextAreaSetAttrmaxlength(lua_State* L);
  19. int ElementFormControlTextAreaSetAttrrows(lua_State* L);
  20. int ElementFormControlTextAreaSetAttrwordwrap(lua_State* L);
  21. extern RegType<ElementFormControlTextArea> ElementFormControlTextAreaMethods[];
  22. extern luaL_Reg ElementFormControlTextAreaGetters[];
  23. extern luaL_Reg ElementFormControlTextAreaSetters[];
  24. // inherits from ElementFormControl which inherits from Element
  25. template <>
  26. void ExtraInit<ElementFormControlTextArea>(lua_State* L, int metatable_index);
  27. RMLUI_LUATYPE_DECLARE(ElementFormControlTextArea)
  28. } // namespace Lua
  29. } // namespace Rml