-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGroup.h
27 lines (20 loc) · 786 Bytes
/
Group.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef GROUP_H
#define GROUP_H
#include <memory>
#include <vector>
#include "SVGElements.h"
class GroupSVG : public SVGElements {
private:
std::vector<std::unique_ptr<SVGElements>> elements;
float fontSize;
public:
GroupSVG(std::vector<std::unique_ptr<SVGElements>> elements, const std::string& fill, float fill_opacity,
const std::string& stroke, float stroke_width, float stroke_opacity,
Transform transform, float fontSize);
void render(Gdiplus::Graphics& graphics, Gdiplus::Matrix& matrix, GradientManager gradients) const override;
void applyGroupAttributes();
void inheritedAttributes(const std::string& fill, float fill_opacity,
const std::string& stroke, float stroke_width, float stroke_opacity,
Transform transform, float fontSize);
};
#endif // GROUP_H