AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
SVGRectElement.hpp
1/*
2Copyright (C) 2019,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_SVGRECTELEMENT_H
17#define AEONGUI_SVGRECTELEMENT_H
18
19#include "SVGGeometryElement.hpp"
20
21namespace AeonGUI
22{
23 namespace DOM
24 {
29 {
30 public:
36 SVGRectElement ( const DOMString& aTagName, AttributeMap&& aAttributes, Node* aParent );
39 protected:
41 void RebuildAnimatedPath() const override;
42 void onAttributeChanged ( const DOMString& aName, const DOMString& aValue ) override;
43 private:
44 void BuildPath();
45 double mWidth{};
46 double mHeight{};
47 double mX{};
48 double mY{};
49 double mRx{};
50 double mRy{};
51 };
52 }
53}
54#endif
Base class for all nodes in the DOM tree.
Definition Node.hpp:42
SVGGeometryElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGGeometryElement.
Definition SVGGeometryElement.cpp:29
void onAttributeChanged(const DOMString &aName, const DOMString &aValue) override
Called after an attribute is changed via setAttribute.
Definition SVGRectElement.cpp:148
SVGRectElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGRectElement.
Definition SVGRectElement.cpp:25
~SVGRectElement() final
Destructor.
void RebuildAnimatedPath() const override
Rebuild the cached path with animated attribute values.
Definition SVGRectElement.cpp:190