ElementForm.cpp 629 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. LUACHECKOBJ(obj);
  12. const char* name = luaL_checkstring(L,1);
  13. const char* value = luaL_checkstring(L,2);
  14. obj->Submit(name,value);
  15. return 0;
  16. }
  17. RegType<ElementForm> ElementFormMethods[] =
  18. {
  19. LUAMETHOD(ElementForm,Submit)
  20. { NULL, NULL },
  21. };
  22. luaL_reg ElementFormGetters[] =
  23. {
  24. { NULL, NULL },
  25. };
  26. luaL_reg ElementFormSetters[] =
  27. {
  28. { NULL, NULL },
  29. };
  30. }
  31. }
  32. }