LuaDocument.h 495 B

123456789101112131415161718
  1. #pragma once
  2. /*
  3. This class is an ElementDocument that overrides the LoadInlineScript and LoadExternalScript function
  4. */
  5. #include <RmlUi/Core/ElementDocument.h>
  6. namespace Rml {
  7. namespace Lua {
  8. class LuaDocument : public ::Rml::ElementDocument {
  9. public:
  10. LuaDocument(const String& tag);
  11. void LoadInlineScript(const String& content, const String& source_path, int source_line) override;
  12. void LoadExternalScript(const String& source_path) override;
  13. };
  14. } // namespace Lua
  15. } // namespace Rml