SVGCircleElement.h 896 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/SVG/SVGAnimatedLength.h>
  8. #include <LibWeb/SVG/SVGGeometryElement.h>
  9. namespace Web::SVG {
  10. class SVGCircleElement final : public SVGGeometryElement {
  11. WEB_PLATFORM_OBJECT(SVGCircleElement, SVGGeometryElement);
  12. JS_DECLARE_ALLOCATOR(SVGCircleElement);
  13. public:
  14. virtual ~SVGCircleElement() override = default;
  15. virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
  16. virtual Gfx::Path get_path(CSSPixelSize viewport_size) override;
  17. JS::NonnullGCPtr<SVGAnimatedLength> cx() const;
  18. JS::NonnullGCPtr<SVGAnimatedLength> cy() const;
  19. JS::NonnullGCPtr<SVGAnimatedLength> r() const;
  20. private:
  21. SVGCircleElement(DOM::Document&, DOM::QualifiedName);
  22. virtual void initialize(JS::Realm&) override;
  23. };
  24. }