ContextDocumentsProxy.h 759 B

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