KD Chart 2  [rev.2.7]
KDChartValueTrackerAttributes.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 KDCHARTVALUETRACKERATTRIBUTES_H
24 #define KDCHARTVALUETRACKERATTRIBUTES_H
25 
26 #include <QDebug>
27 #include <QMetaType>
28 #include "KDChartGlobal.h"
29 
30 namespace KDChart {
31 
42  class KDCHART_EXPORT ValueTrackerAttributes
43  {
44  public:
47  ValueTrackerAttributes &operator= ( const ValueTrackerAttributes& );
48 
50 
54  void setPen( const QPen& pen );
55 
59  QPen pen() const;
60 
61  void setLinePen( const QPen &pen );
62  QPen linePen() const;
63 
64  void setMarkerPen( const QPen &pen );
65  QPen markerPen() const;
66 
67  void setMarkerBrush( const QBrush &brush );
68  QBrush markerBrush() const;
69 
70  void setArrowBrush( const QBrush &brush );
71  QBrush arrowBrush() const;
72 
78  void setAreaBrush( const QBrush& brush );
79 
83  QBrush areaBrush() const;
84 
89  void setMarkerSize( const QSizeF& size );
90 
94  QSizeF markerSize() const;
95 
100  Qt::Orientations orientations() const;
101 
105  void setOrientations( Qt::Orientations orientations );
106 
111  void setEnabled( bool enabled );
112 
116  bool isEnabled() const;
117 
118  bool operator==( const ValueTrackerAttributes& ) const;
119  inline bool operator!=( const ValueTrackerAttributes& other ) const { return !operator==(other); }
120 
121  private:
123  }; // End of class ValueTrackerAttributes
124 
125 }
126 
127 #if !defined(QT_NO_DEBUG_STREAM)
128 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::ValueTrackerAttributes& );
129 #endif /* QT_NO_DEBUG_STREAM */
130 
132 
133 QT_BEGIN_NAMESPACE
135 QT_END_NAMESPACE
136 
137 Q_DECLARE_METATYPE( KDChart::ValueTrackerAttributes )
138 
139 #endif // KDCHARTVALUETRACKERATTRIBUTES_H
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(KDChart::ValueTrackerAttributes, Q_MOVABLE_TYPE)
bool operator==(const Span &s1, const Span &s2)
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
Definition: KDChartGlobal.h:71
bool operator!=(const ValueTrackerAttributes &other) const
Cell-specific attributes regarding value tracking.
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
QDebug operator<<(QDebug stream, const DataDimension &r)

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/