SVGTextContentElement.h 652 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/SVG/SVGGraphicsElement.h>
  8. #include <LibWeb/WebIDL/ExceptionOr.h>
  9. namespace Web::SVG {
  10. // https://svgwg.org/svg2-draft/text.html#InterfaceSVGTextContentElement
  11. class SVGTextContentElement : public SVGGraphicsElement {
  12. WEB_PLATFORM_OBJECT(SVGTextContentElement, SVGGraphicsElement);
  13. public:
  14. WebIDL::ExceptionOr<int> get_number_of_chars() const;
  15. protected:
  16. SVGTextContentElement(DOM::Document&, DOM::QualifiedName);
  17. virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
  18. };
  19. }