AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
SVGFEDropShadowElement.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_SVGFEDROPSHADOWELEMENT_H
17#define AEONGUI_SVGFEDROPSHADOWELEMENT_H
18
19#include "SVGElement.hpp"
20#include "aeongui/Color.hpp"
21
22namespace AeonGUI
23{
24 namespace DOM
25 {
30 {
31 public:
37 SVGFEDropShadowElement ( const DOMString& aTagName, AttributeMap&& aAttributes, Node* aParent );
39 bool IsDrawEnabled() const final;
43 double dx() const
44 {
45 return mDx;
46 }
47
50 double dy() const
51 {
52 return mDy;
53 }
54
57 double stdDeviationX() const
58 {
59 return mStdDeviationX;
60 }
61
64 double stdDeviationY() const
65 {
66 return mStdDeviationY;
67 }
68
72 {
73 return mFloodColor;
74 }
75
78 double floodOpacity() const
79 {
80 return mFloodOpacity;
81 }
82 private:
83 double mDx{2};
84 double mDy{2};
85 double mStdDeviationX{2};
86 double mStdDeviationY{2};
87 Color mFloodColor{CSS3Color::black};
88 double mFloodOpacity{1.0};
89 };
90 }
91}
92#endif
Base class for all nodes in the DOM tree.
Definition Node.hpp:42
SVGElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGElement.
Definition SVGElement.cpp:22
double stdDeviationX() const
Horizontal Gaussian blur standard deviation.
Definition SVGFEDropShadowElement.hpp:57
double dx() const
Horizontal shadow offset.
Definition SVGFEDropShadowElement.hpp:43
double floodOpacity() const
Shadow opacity [0.0, 1.0].
Definition SVGFEDropShadowElement.hpp:78
bool IsDrawEnabled() const final
Definition SVGFEDropShadowElement.cpp:81
double dy() const
Vertical shadow offset.
Definition SVGFEDropShadowElement.hpp:50
double stdDeviationY() const
Vertical Gaussian blur standard deviation.
Definition SVGFEDropShadowElement.hpp:64
Color floodColor() const
Shadow fill color.
Definition SVGFEDropShadowElement.hpp:71
SVGFEDropShadowElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGFEDropShadowElement.
Definition SVGFEDropShadowElement.cpp:24
Pixel Color Union. The Color union allows access to each unsigned 8 bit RGBA color component individu...
Definition Color.hpp:185