ContextDocumentsProxy.h 843 B

1234567891011121314151617181920212223242526272829
  1. #ifndef ROCKETCORELUACONTEXTDOCUMENTSPROXY_H
  2. #define ROCKETCORELUACONTEXTDOCUMENTSPROXY_H
  3. /*
  4. A proxy table with key of string and int and a value of Document
  5. Read only
  6. */
  7. #include <Rocket/Core/Lua/LuaType.h>
  8. #include <Rocket/Core/Lua/lua.hpp>
  9. #include <Rocket/Core/Context.h>
  10. namespace Rocket {
  11. namespace Core {
  12. namespace Lua {
  13. //where owner is the context that we should look information from
  14. struct ContextDocumentsProxy { Context* owner; };
  15. template<> void LuaType<ContextDocumentsProxy>::extra_init(lua_State* L, int metatable_index);
  16. int ContextDocumentsProxy__index(lua_State* L);
  17. //method
  18. int ContextDocumentsProxyGetTable(lua_State* L, ContextDocumentsProxy* obj);
  19. RegType<ContextDocumentsProxy> ContextDocumentsProxyMethods[];
  20. luaL_reg ContextDocumentsProxyGetters[];
  21. luaL_reg ContextDocumentsProxySetters[];
  22. }
  23. }
  24. }
  25. #endif