LuaDocumentElementInstancer.h 710 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <RmlUi/Core/ElementInstancer.h>
  3. namespace Rml {
  4. namespace Lua {
  5. class LuaDocumentElementInstancer : public ::Rml::ElementInstancer {
  6. /// Instances an element given the tag name and attributes.
  7. /// @param[in] parent The element the new element is destined to be parented to.
  8. /// @param[in] tag The tag of the element to instance.
  9. /// @param[in] attributes Dictionary of attributes.
  10. ElementPtr InstanceElement(Element* parent, const String& tag, const XMLAttributes& attributes) override;
  11. /// Releases an element instanced by this instancer.
  12. /// @param[in] element The element to release.
  13. void ReleaseElement(Element* element) override;
  14. };
  15. } // namespace Lua
  16. } // namespace Rml