ElementGameInstancer.h 658 B

1234567891011121314151617181920
  1. #ifndef RMLUI_LUAINVADERS_ELEMENTGAMEINSTANCER_H
  2. #define RMLUI_LUAINVADERS_ELEMENTGAMEINSTANCER_H
  3. #include <RmlUi/Core/ElementInstancer.h>
  4. class ElementGameInstancer : public Rml::ElementInstancer {
  5. public:
  6. virtual ~ElementGameInstancer();
  7. /// Instances an element given the tag name and attributes
  8. /// @param tag Name of the element to instance
  9. /// @param attributes vector of name value pairs
  10. Rml::ElementPtr InstanceElement(Rml::Element* parent, const Rml::String& tag, const Rml::XMLAttributes& attributes) override;
  11. /// Releases the given element
  12. /// @param element to release
  13. void ReleaseElement(Rml::Element* element) override;
  14. };
  15. #endif