ElementFormControlInput.h 2.0 KB

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