LuaDocumentElementInstancer.h 840 B

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