ElementForm.cpp 607 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include "precompiled.h"
  2. #include "ElementForm.h"
  3. #include <Rocket/Core/Element.h>
  4. #include <Rocket/Controls/ElementForm.h>
  5. namespace Rocket {
  6. namespace Core {
  7. namespace Lua {
  8. //method
  9. int ElementFormSubmit(lua_State* L, ElementForm* obj)
  10. {
  11. const char* name = luaL_checkstring(L,1);
  12. const char* value = luaL_checkstring(L,2);
  13. obj->Submit(name,value);
  14. return 0;
  15. }
  16. RegType<ElementForm> ElementFormMethods[] =
  17. {
  18. LUAMETHOD(ElementForm,Submit)
  19. { NULL, NULL },
  20. };
  21. luaL_reg ElementFormGetters[] =
  22. {
  23. { NULL, NULL },
  24. };
  25. luaL_reg ElementFormSetters[] =
  26. {
  27. { NULL, NULL },
  28. };
  29. }
  30. }
  31. }