ElementAttributesProxy.h 838 B

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