Skip to content

Commit 652008f

Browse files
committed
[padpainterbase] provide default attributes setters
1 parent bec4118 commit 652008f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

graf2d/gpad/inc/TPadPainterBase.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,30 @@ class TPadPainterBase : public TVirtualPadPainter {
7878
const TAttMarker &GetAttMarker()const override { return fAttMarker; }
7979
const TAttText &GetAttText() const override { return fAttText; }
8080

81+
void SetAttFill(const TAttFill &att) override
82+
{
83+
if (&att != &fAttFill)
84+
att.Copy(fAttFill);
85+
}
86+
87+
void SetAttLine(const TAttLine &att) override
88+
{
89+
if (&att != &fAttLine)
90+
att.Copy(fAttLine);
91+
}
92+
93+
void SetAttMarker(const TAttMarker &att) override
94+
{
95+
if (&att != &fAttMarker)
96+
att.Copy(fAttMarker);
97+
}
98+
99+
void SetAttText(const TAttText &att) override
100+
{
101+
if (&att != &fAttText)
102+
att.Copy(fAttText);
103+
}
104+
81105
ClassDefOverride(TPadPainterBase, 0)//Pad painter with attributes handling
82106
};
83107

0 commit comments

Comments
 (0)