ElementFormControlInput.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #pragma once
  2. /*
  3. This defines the type ElementFormControlInput in the Lua globla namespace, refered to in this documentation by EFCInput
  4. It inherits from ELementFormControl which inherits from Element
  5. all of the properties are read and write
  6. bool EFCInput.checked
  7. int EFCInput.maxlength
  8. int EFCInput.size
  9. int EFCInput.max
  10. int EFCInput.min
  11. int EFCInput.step
  12. */
  13. #include <Rocket/Core/Lua/lua.hpp>
  14. #include <Rocket/Core/Lua/LuaType.h>
  15. #include <Rocket/Controls/ElementFormControlInput.h>
  16. using Rocket::Controls::ElementFormControlInput;
  17. namespace Rocket {
  18. namespace Core {
  19. namespace Lua {
  20. //inherits from ElementFormControl which inherits from Element
  21. template<> void LuaType<ElementFormControlInput>::extra_init(lua_State* L, int metatable_index);
  22. //getters
  23. int ElementFormControlInputGetAttrchecked(lua_State* L);
  24. int ElementFormControlInputGetAttrmaxlength(lua_State* L);
  25. int ElementFormControlInputGetAttrsize(lua_State* L);
  26. int ElementFormControlInputGetAttrmax(lua_State* L);
  27. int ElementFormControlInputGetAttrmin(lua_State* L);
  28. int ElementFormControlInputGetAttrstep(lua_State* L);
  29. //setters
  30. int ElementFormControlInputSetAttrchecked(lua_State* L);
  31. int ElementFormControlInputSetAttrmaxlength(lua_State* L);
  32. int ElementFormControlInputSetAttrsize(lua_State* L);
  33. int ElementFormControlInputSetAttrmax(lua_State* L);
  34. int ElementFormControlInputSetAttrmin(lua_State* L);
  35. int ElementFormControlInputSetAttrstep(lua_State* L);
  36. RegType<ElementFormControlInput> ElementFormControlInputMethods[];
  37. luaL_reg ElementFormControlInputGetters[];
  38. luaL_reg ElementFormControlInputSetters[];
  39. /*
  40. template<> const char* GetTClassName<ElementFormControlInput>();
  41. template<> RegType<ElementFormControlInput>* GetMethodTable<ElementFormControlInput>();
  42. template<> luaL_reg* GetAttrTable<ElementFormControlInput>();
  43. template<> luaL_reg* SetAttrTable<ElementFormControlInput>();
  44. */
  45. }
  46. }
  47. }