2022-02-11 16:14:58 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-03-22 16:37:16 +00:00
|
|
|
#include <LibWeb/SVG/SVGAnimatedLength.h>
|
2022-02-11 16:14:58 +00:00
|
|
|
#include <LibWeb/SVG/SVGGeometryElement.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::SVG {
|
|
|
|
|
|
|
|
|
|
class SVGCircleElement final : public SVGGeometryElement {
|
2023-01-09 21:51:45 -05:00
|
|
|
WEB_PLATFORM_OBJECT(SVGCircleElement, SVGGeometryElement);
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DECLARE_ALLOCATOR(SVGCircleElement);
|
2022-02-11 16:14:58 +00:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
public:
|
2022-02-11 16:14:58 +00:00
|
|
|
virtual ~SVGCircleElement() override = default;
|
|
|
|
|
|
2024-03-03 20:47:10 +00:00
|
|
|
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
2022-02-11 16:14:58 +00:00
|
|
|
|
2024-08-09 14:00:10 +02:00
|
|
|
virtual Gfx::Path get_path(CSSPixelSize viewport_size) override;
|
2022-02-11 16:14:58 +00:00
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ref<SVGAnimatedLength> cx() const;
|
|
|
|
|
GC::Ref<SVGAnimatedLength> cy() const;
|
|
|
|
|
GC::Ref<SVGAnimatedLength> r() const;
|
2022-03-22 16:37:16 +00:00
|
|
|
|
2022-02-11 16:14:58 +00:00
|
|
|
private:
|
2022-08-28 13:42:07 +02:00
|
|
|
SVGCircleElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
|
|
2023-08-07 08:41:28 +02:00
|
|
|
virtual void initialize(JS::Realm&) override;
|
2022-02-11 16:14:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|