| 1 | // Copyright (C) 2020 The Qt Company Ltd.cxx . . $ `<file>/src/charts/piechart/pieslicedata_p.h`/ |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | // W A R N I N G |
| 5 | // ------------- |
| 6 | // |
| 7 | // This file is not part of the Qt Chart API. It exists purely as an |
| 8 | // implementation detail. This header file may change from version to |
| 9 | // version without notice, or even be removed. |
| 10 | // |
| 11 | // We mean it. |
| 12 | |
| 13 | #ifndef PIESLICEDATA_P_H |
| 14 | #define PIESLICEDATA_P_Hcxx . . $ `src/charts/piechart/pieslicedata_p.h:14:9`! |
| 15 | |
| 16 | #include <QtCharts/QChartGlobal>cxx . . $ `<file>/build/include/QtCharts/QChartGlobal`/ |
| 17 | #include <QtCharts/QPieSlice>cxx . . $ `<file>/build/include/QtCharts/QPieSlice`/ |
| 18 | #include <QtGui/QPen> |
| 19 | #include <QtGui/QBrush> |
| 20 | #include <QtCore/private/qglobal_p.h> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACEcxx . . $ `<external>/7770798561591309169/qtconfigmacros.h:103:10`! |
| 23 | |
| 24 | template <class T> |
| 25 | class Themedcxx . . $ Themed# : public T |
| 26 | { |
| 27 | public: |
| 28 | Themedcxx . . $ Themed#`Themed<T>`(49f6e7a06ebc5aa8).(): m_isThemedcxx . . $ Themed#m_isThemed.(true) {} |
| 29 | |
| 30 | inline T &operatorcxx . . $ Themed#`operator=`(2a67cf366027ee7a).=(const T &other) { return T::operator =(other); } |
| 31 | |
| 32 | inline bool operatorcxx . . $ Themed#`operator!=`(8877ebe272b9620d).!=(const T &other) const { return T::operator !=(other); } |
| 33 | inline bool operatorcxx . . $ Themed#`operator!=`(3fd2d82cdf892b20).!=(const Themed &other) const |
| 34 | { |
| 35 | if (T::operator !=(other)) |
| 36 | return true; |
| 37 | |
| 38 | if (m_isThemedcxx . . $ Themed#m_isThemed. != other.m_isThemedcxx . . $ Themed#m_isThemed.) |
| 39 | return true; |
| 40 | |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | inline void setThemedcxx . . $ Themed#setThemed(b45ddcbc8423892c).(bool state) { m_isThemedcxx . . $ Themed#m_isThemed. = state; } |
| 45 | inline bool isThemedcxx . . $ Themed#isThemed(50ce9a9e25b4a850).() const { return m_isThemedcxx . . $ Themed#m_isThemed.; } |
| 46 | |
| 47 | private: |
| 48 | bool m_isThemedcxx . . $ Themed#m_isThemed.; |
| 49 | }; |
| 50 | |
| 51 | class PieSliceDatacxx . . $ PieSliceData# |
| 52 | { |
| 53 | public: |
| 54 | PieSliceDatacxx . . $ PieSliceData#PieSliceData(49f6e7a06ebc5aa8).() : |
| 55 | m_valuecxx . . $ PieSliceData#m_value.(0), |
| 56 | m_isExplodedcxx . . $ PieSliceData#m_isExploded.(false), |
| 57 | m_explodeDistanceFactorcxx . . $ PieSliceData#m_explodeDistanceFactor.(0.15), |
| 58 | m_isLabelVisiblecxx . . $ PieSliceData#m_isLabelVisible.(false), |
| 59 | m_labelPositioncxx . . $ PieSliceData#m_labelPosition.(QPieSlicecxx . . $ QPieSlice#::LabelOutsidecxx . . $ QPieSlice#LabelOutside.), |
| 60 | m_labelArmLengthFactorcxx . . $ PieSliceData#m_labelArmLengthFactor.(0.15), |
| 61 | m_percentagecxx . . $ PieSliceData#m_percentage.(0), |
| 62 | m_radiuscxx . . $ PieSliceData#m_radius.(0), |
| 63 | m_startAnglecxx . . $ PieSliceData#m_startAngle.(0), |
| 64 | m_angleSpancxx . . $ PieSliceData#m_angleSpan.(0), |
| 65 | m_holeRadiuscxx . . $ PieSliceData#m_holeRadius.(0) |
| 66 | { |
| 67 | } |
| 68 | |
| 69 | bool operatorcxx . . $ PieSliceData#`operator!=`(b43ecc05b392b508).!=(const PieSliceDatacxx . . $ PieSliceData# &other) const { |
| 70 | if (!qFuzzyIsNullcxx . . $ qFuzzyIsNull(d04b8562ecc8724b).(m_valuecxx . . $ PieSliceData#m_value. - other.m_valuecxx . . $ PieSliceData#m_value.)) |
| 71 | return true; |
| 72 | |
| 73 | if (m_slicePencxx . . $ PieSliceData#m_slicePen. !=cxx . . $ Themed#`operator!=`(3fd2d82cdf892b20). other.m_slicePencxx . . $ PieSliceData#m_slicePen. || |
| 74 | m_sliceBrushcxx . . $ PieSliceData#m_sliceBrush. !=cxx . . $ Themed#`operator!=`(3fd2d82cdf892b20). other.m_sliceBrushcxx . . $ PieSliceData#m_sliceBrush.) |
| 75 | return true; |
| 76 | |
| 77 | if (m_isExplodedcxx . . $ PieSliceData#m_isExploded. != other.m_isExplodedcxx . . $ PieSliceData#m_isExploded. || |
| 78 | !qFuzzyIsNullcxx . . $ qFuzzyIsNull(d04b8562ecc8724b).(m_explodeDistanceFactorcxx . . $ PieSliceData#m_explodeDistanceFactor. - other.m_explodeDistanceFactorcxx . . $ PieSliceData#m_explodeDistanceFactor.)) |
| 79 | return true; |
| 80 | |
| 81 | if (m_isLabelVisiblecxx . . $ PieSliceData#m_isLabelVisible. != other.m_isLabelVisiblecxx . . $ PieSliceData#m_isLabelVisible. || |
| 82 | m_labelTextcxx . . $ PieSliceData#m_labelText. !=cxx . . $ `operator!=`(5bc2975d2d751687). other.m_labelTextcxx . . $ PieSliceData#m_labelText. || |
| 83 | m_labelFontcxx . . $ PieSliceData#m_labelFont. !=cxx . . $ Themed#`operator!=`(3fd2d82cdf892b20). other.m_labelFontcxx . . $ PieSliceData#m_labelFont. || |
| 84 | m_labelPositioncxx . . $ PieSliceData#m_labelPosition. != other.m_labelPositioncxx . . $ PieSliceData#m_labelPosition. || |
| 85 | !qFuzzyIsNullcxx . . $ qFuzzyIsNull(d04b8562ecc8724b).(m_labelArmLengthFactorcxx . . $ PieSliceData#m_labelArmLengthFactor. - other.m_labelArmLengthFactorcxx . . $ PieSliceData#m_labelArmLengthFactor.) || |
| 86 | m_labelBrushcxx . . $ PieSliceData#m_labelBrush. !=cxx . . $ Themed#`operator!=`(3fd2d82cdf892b20). other.m_labelBrushcxx . . $ PieSliceData#m_labelBrush.) |
| 87 | return true; |
| 88 | |
| 89 | if (!qFuzzyIsNullcxx . . $ qFuzzyIsNull(d04b8562ecc8724b).(m_percentagecxx . . $ PieSliceData#m_percentage. - other.m_percentagecxx . . $ PieSliceData#m_percentage.) || |
| 90 | m_centercxx . . $ PieSliceData#m_center. !=cxx . . $ `operator!=`(b8b12cdf2bf09e90). other.m_centercxx . . $ PieSliceData#m_center. || |
| 91 | !qFuzzyIsNullcxx . . $ qFuzzyIsNull(d04b8562ecc8724b).(m_radiuscxx . . $ PieSliceData#m_radius. - other.m_radiuscxx . . $ PieSliceData#m_radius.) || |
| 92 | !qFuzzyIsNullcxx . . $ qFuzzyIsNull(d04b8562ecc8724b).(m_startAnglecxx . . $ PieSliceData#m_startAngle. - other.m_startAnglecxx . . $ PieSliceData#m_startAngle.) || |
| 93 | !qFuzzyIsNullcxx . . $ qFuzzyIsNull(d04b8562ecc8724b).(m_angleSpancxx . . $ PieSliceData#m_angleSpan. - other.m_angleSpancxx . . $ PieSliceData#m_angleSpan.)) |
| 94 | return true; |
| 95 | |
| 96 | return false; |
| 97 | } |
| 98 | |
| 99 | qrealcxx . . $ qreal# m_valuecxx . . $ PieSliceData#m_value.; |
| 100 | |
| 101 | Themedcxx . . $ Themed#<QPencxx . . $ QPen#> m_slicePencxx . . $ PieSliceData#m_slicePen.; |
| 102 | Themedcxx . . $ Themed#<QBrushcxx . . $ QBrush#> m_sliceBrushcxx . . $ PieSliceData#m_sliceBrush.; |
| 103 | |
| 104 | bool m_isExplodedcxx . . $ PieSliceData#m_isExploded.; |
| 105 | qrealcxx . . $ qreal# m_explodeDistanceFactorcxx . . $ PieSliceData#m_explodeDistanceFactor.; |
| 106 | |
| 107 | bool m_isLabelVisiblecxx . . $ PieSliceData#m_isLabelVisible.; |
| 108 | QStringcxx . . $ QString# m_labelTextcxx . . $ PieSliceData#m_labelText.; |
| 109 | Themedcxx . . $ Themed#<QFontcxx . . $ QFont#> m_labelFontcxx . . $ PieSliceData#m_labelFont.; |
| 110 | QPieSlicecxx . . $ QPieSlice#::LabelPositioncxx . . $ QPieSlice#LabelPosition# m_labelPositioncxx . . $ PieSliceData#m_labelPosition.; |
| 111 | qrealcxx . . $ qreal# m_labelArmLengthFactorcxx . . $ PieSliceData#m_labelArmLengthFactor.; |
| 112 | Themedcxx . . $ Themed#<QBrushcxx . . $ QBrush#> m_labelBrushcxx . . $ PieSliceData#m_labelBrush.; |
| 113 | |
| 114 | qrealcxx . . $ qreal# m_percentagecxx . . $ PieSliceData#m_percentage.; |
| 115 | QPointFcxx . . $ QPointF# m_centercxx . . $ PieSliceData#m_center.; |
| 116 | qrealcxx . . $ qreal# m_radiuscxx . . $ PieSliceData#m_radius.; |
| 117 | qrealcxx . . $ qreal# m_startAnglecxx . . $ PieSliceData#m_startAngle.; |
| 118 | qrealcxx . . $ qreal# m_angleSpancxx . . $ PieSliceData#m_angleSpan.; |
| 119 | |
| 120 | qrealcxx . . $ qreal# m_holeRadiuscxx . . $ PieSliceData#m_holeRadius.; |
| 121 | }; |
| 122 | |
| 123 | QT_END_NAMESPACEcxx . . $ `<external>/7770798561591309169/qtconfigmacros.h:104:10`! |
| 124 | |
| 125 | #endif // PIESLICEDATA_P_H |