ElementFormControlInput.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include <RmlUi/Core/Elements/ElementFormControlInput.h>
  3. #include <RmlUi/Lua/IncludeLua.h>
  4. #include <RmlUi/Lua/LuaType.h>
  5. namespace Rml {
  6. namespace Lua {
  7. // methods
  8. int ElementFormControlInputSelect(lua_State* L, ElementFormControlInput* obj);
  9. int ElementFormControlInputSetSelection(lua_State* L, ElementFormControlInput* obj);
  10. int ElementFormControlInputGetSelection(lua_State* L, ElementFormControlInput* obj);
  11. // getters
  12. int ElementFormControlInputGetAttrchecked(lua_State* L);
  13. int ElementFormControlInputGetAttrmaxlength(lua_State* L);
  14. int ElementFormControlInputGetAttrsize(lua_State* L);
  15. int ElementFormControlInputGetAttrmax(lua_State* L);
  16. int ElementFormControlInputGetAttrmin(lua_State* L);
  17. int ElementFormControlInputGetAttrstep(lua_State* L);
  18. // setters
  19. int ElementFormControlInputSetAttrchecked(lua_State* L);
  20. int ElementFormControlInputSetAttrmaxlength(lua_State* L);
  21. int ElementFormControlInputSetAttrsize(lua_State* L);
  22. int ElementFormControlInputSetAttrmax(lua_State* L);
  23. int ElementFormControlInputSetAttrmin(lua_State* L);
  24. int ElementFormControlInputSetAttrstep(lua_State* L);
  25. extern RegType<ElementFormControlInput> ElementFormControlInputMethods[];
  26. extern luaL_Reg ElementFormControlInputGetters[];
  27. extern luaL_Reg ElementFormControlInputSetters[];
  28. // inherits from ElementFormControl which inherits from Element
  29. template <>
  30. void ExtraInit<ElementFormControlInput>(lua_State* L, int metatable_index);
  31. RMLUI_LUATYPE_DECLARE(ElementFormControlInput)
  32. } // namespace Lua
  33. } // namespace Rml