/* * Copyright (c) 2022, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::SVG { class SVGLineElement final : public SVGGeometryElement { public: using WrapperType = Bindings::SVGLineElementWrapper; SVGLineElement(DOM::Document&, DOM::QualifiedName); virtual ~SVGLineElement() override = default; virtual void parse_attribute(FlyString const& name, String const& value) override; virtual Gfx::Path& get_path() override; NonnullRefPtr x1() const; NonnullRefPtr y1() const; NonnullRefPtr x2() const; NonnullRefPtr y2() const; private: Optional m_path; Optional m_x1; Optional m_y1; Optional m_x2; Optional m_y2; }; }