KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartFrameAttributes.cpp
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Chart library.
4**
5** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10
12
13#include <KDABLibFakes>
14
15#define d d_func()
16
17using namespace KDChart;
18
19class FrameAttributes::Private
20{
21 friend class FrameAttributes;
22
23public:
24 Private();
25
26private:
27 bool visible = false;
28 QPen pen;
29 qreal cornerRadius = 0;
30 int padding = 0;
31};
32
33FrameAttributes::Private::Private()
34{
35}
36
38 : _d(new Private())
39{
40}
41
43 : _d(new Private(*r.d))
44{
45}
46
48{
49 if (this == &r)
50 return *this;
51
52 *d = *r.d;
53
54 return *this;
55}
56
58{
59 delete _d;
60 _d = nullptr;
61}
62
64{
65 return (isVisible() == r.isVisible() && pen() == r.pen() && cornerRadius() == r.cornerRadius() && padding() == r.padding());
66}
67
69{
70 d->visible = visible;
71}
72
74{
75 return d->visible;
76}
77
79{
80 d->pen = pen;
81}
82
84{
85 return d->pen;
86}
87
89{
90 d->cornerRadius = radius;
91}
92
94{
95 return d->cornerRadius;
96}
97
99{
100 d->padding = padding;
101}
102
104{
105 return d->padding;
106}
107
108#if !defined(QT_NO_DEBUG_STREAM)
110{
111 dbg << "KDChart::FrameAttributes("
112 << "visible=" << fa.isVisible()
113 << "pen=" << fa.pen()
114 << "cornerRadius=" << fa.cornerRadius()
115 << "padding=" << fa.padding()
116 << ")";
117 return dbg;
118}
119#endif /* QT_NO_DEBUG_STREAM */
A set of attributes for frames around items.
bool operator==(const FrameAttributes &) const
FrameAttributes & operator=(const FrameAttributes &)
QDebug operator<<(QDebug stream, const DataDimension &r)

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8