KD Chart 2  [rev.2.7]
KDChartPieAttributes.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** Copyright (C) 2001-2020 Klaralvdalens Datakonsult AB. All rights reserved.
3 **
4 ** This file is part of the KD Chart library.
5 **
6 ** Licensees holding valid commercial KD Chart licenses may use this file in
7 ** accordance with the KD Chart Commercial License Agreement provided with
8 ** the Software.
9 **
10 **
11 ** This file may be distributed and/or modified under the terms of the
12 ** GNU General Public License version 2 and version 3 as published by the
13 ** Free Software Foundation and appearing in the file LICENSE.GPL.txt included.
14 **
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 **
18 ** Contact info@kdab.com if any conditions of this licensing are not
19 ** clear to you.
20 **
21 **********************************************************************/
22 
23 #ifndef KDCHART_PIE_ATTRIBUTES_H
24 #define KDCHART_PIE_ATTRIBUTES_H
25 
26 #include <QMetaType>
28 #include "KDChartGlobal.h"
29 
30 namespace KDChart {
31 
35 class KDCHART_EXPORT PieAttributes
36 {
37 public:
38  PieAttributes();
39  PieAttributes( const PieAttributes& );
40  PieAttributes &operator= ( const PieAttributes& );
41 
42  ~PieAttributes();
43 
55  void setExplode( bool explode );
56 
58  bool explode() const;
59 
66  void setExplodeFactor( qreal factor );
67 
69  qreal explodeFactor() const;
70 
71  void setGapFactor( bool circular, qreal factor );
72  qreal gapFactor( bool circular ) const;
73 
74  bool operator==( const PieAttributes& ) const;
75  inline bool operator!=( const PieAttributes& other ) const { return !operator==(other); }
76 
77 private:
79 }; // End of class PieAttributes
80 
81 }
82 
83 #if !defined(QT_NO_DEBUG_STREAM)
84 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::PieAttributes& );
85 #endif /* QT_NO_DEBUG_STREAM */
86 
88 
89 QT_BEGIN_NAMESPACE
91 QT_END_NAMESPACE
92 
93 Q_DECLARE_METATYPE( KDChart::PieAttributes )
94 
95 #endif // KDCHART_PIE_ATTRIBUTES_H
bool operator==(const Span &s1, const Span &s2)
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(KDChart::PieAttributes, Q_MOVABLE_TYPE)
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
Definition: KDChartGlobal.h:71
A set of attributes controlling the appearance of pie charts.
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
QDebug operator<<(QDebug stream, const DataDimension &r)
bool operator!=(const PieAttributes &other) const

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/