1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
- * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
- #pragma once
- #include <LibGfx/Path.h>
- #include <LibWeb/DOM/Node.h>
- #include <LibWeb/SVG/SVGElement.h>
- #include <LibWeb/SVG/TagNames.h>
- namespace Web::SVG {
- class SVGGraphicsElement : public SVGElement {
- public:
- using WrapperType = Bindings::SVGGraphicsElementWrapper;
- SVGGraphicsElement(DOM::Document&, QualifiedName);
- virtual void parse_attribute(FlyString const& name, String const& value) override;
- Optional<Gfx::Color> fill_color() const;
- Optional<Gfx::Color> stroke_color() const;
- Optional<float> stroke_width() const;
- protected:
- Optional<Gfx::Color> m_fill_color;
- Optional<Gfx::Color> m_stroke_color;
- Optional<float> m_stroke_width;
- };
- }
|