ElementAttributesProxy.h 751 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. /*
  3. Proxy table for Element.attribues
  4. read-only Dictionary
  5. */
  6. #include <Rocket/Core/Lua/lua.hpp>
  7. #include <Rocket/Core/Lua/LuaType.h>
  8. #include <Rocket/Core/Element.h>
  9. namespace Rocket {
  10. namespace Core {
  11. namespace Lua {
  12. //where owner is the Element that we should look up information from
  13. struct ElementAttributesProxy { Element* owner; };
  14. template<> void LuaType<ElementAttributesProxy>::extra_init(lua_State* L, int metatable_index);
  15. int ElementAttributesProxy__index(lua_State* L);
  16. //method
  17. int ElementAttributesProxyGetTable(lua_State* L, ElementAttributesProxy* obj);
  18. RegType<ElementAttributesProxy> ElementAttributesProxyMethods[];
  19. luaL_reg ElementAttributesProxyGetters[];
  20. luaL_reg ElementAttributesProxySetters[];
  21. }
  22. }
  23. }