LuaDocumentElementInstancer.h 743 B

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