AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
SVGSetElement.hpp
1/*
2Copyright (C) 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_SVGSETELEMENT_H
17#define AEONGUI_SVGSETELEMENT_H
18
19#include "SVGAnimationElement.hpp"
20#include "aeongui/Color.hpp"
21
22namespace AeonGUI
23{
24 namespace DOM
25 {
33 {
34 public:
40 SVGSetElement ( const DOMString& aTagName, AttributeMap&& aAttributes, Node* aParent );
42 ~SVGSetElement() override;
46 void ApplyToCanvas ( Canvas& aCanvas ) const override;
47 private:
48 std::string mToValue;
49 bool mIsColorAttribute{false};
50 Color mColorValue;
51 };
52 }
53}
54#endif
Abstract 2D rendering surface.
Definition Canvas.hpp:40
Base class for all nodes in the DOM tree.
Definition Node.hpp:42
SVGAnimationElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGAnimationElement.
Definition SVGAnimationElement.cpp:26
~SVGSetElement() override
Destructor.
void ApplyToCanvas(Canvas &aCanvas) const override
Apply the discrete value change to the canvas.
Definition SVGSetElement.cpp:39
SVGSetElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGSetElement.
Definition SVGSetElement.cpp:23
Pixel Color Union. The Color union allows access to each unsigned 8 bit RGBA color component individu...
Definition Color.hpp:185