AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
SVGGraphicsElement.hpp
1/*
2Copyright (C) 2020,2024,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGUI_SVGGRAPHICSELEMENT_H
17#define AEONGUI_SVGGRAPHICSELEMENT_H
18
19#include "SVGElement.hpp"
20#include "aeongui/Matrix2x3.hpp"
21namespace AeonGUI
22{
23 namespace DOM
24 {
29 {
30 public:
36 SVGGraphicsElement ( const DOMString& aTagName, AttributeMap&& aAttributes, Node* aParent );
42 void DrawStart ( Canvas& aCanvas ) const override;
43 private:
44 Matrix2x3 mTransform{};
45 };
46 }
47}
48#endif
Abstract 2D rendering surface.
Definition Canvas.hpp:39
Base class for all nodes in the DOM tree.
Definition Node.hpp:40
SVGElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGElement.
Definition SVGElement.cpp:22
void DrawStart(Canvas &aCanvas) const override
Apply the element's transform and begin drawing.
Definition SVGGraphicsElement.cpp:41
SVGGraphicsElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGGraphicsElement.
Definition SVGGraphicsElement.cpp:24
~SVGGraphicsElement() override
Destructor.
2x3 affine transformation matrix.
Definition Matrix2x3.hpp:37