/* * Copyright (c) 2020, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::SVG { // https://svgwg.org/svg2-draft/types.html#InterfaceSVGGeometryElement class SVGGeometryElement : public SVGGraphicsElement { public: using WrapperType = Bindings::SVGGeometryElementWrapper; virtual RefPtr create_layout_node(NonnullRefPtr) override; virtual Gfx::Path& get_path() = 0; float get_total_length(); NonnullRefPtr get_point_at_length(float distance); protected: SVGGeometryElement(DOM::Document& document, DOM::QualifiedName qualified_name); }; }