ElementAttributesProxy.h 708 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <RmlUi/Core/Element.h>
  3. #include <RmlUi/Lua/IncludeLua.h>
  4. #include <RmlUi/Lua/LuaType.h>
  5. namespace Rml {
  6. namespace Lua {
  7. // where owner is the Element that we should look up information from
  8. struct ElementAttributesProxy {
  9. Element* owner;
  10. };
  11. template <>
  12. void ExtraInit<ElementAttributesProxy>(lua_State* L, int metatable_index);
  13. int ElementAttributesProxy__index(lua_State* L);
  14. int ElementAttributesProxy__pairs(lua_State* L);
  15. extern RegType<ElementAttributesProxy> ElementAttributesProxyMethods[];
  16. extern luaL_Reg ElementAttributesProxyGetters[];
  17. extern luaL_Reg ElementAttributesProxySetters[];
  18. RMLUI_LUATYPE_DECLARE(ElementAttributesProxy)
  19. } // namespace Lua
  20. } // namespace Rml