KD Chart API Documentation  3.1
KDChartLeveyJenningsGridAttributes.h
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 
11 #ifndef KDCHARTLEVEYJENNINGSGRIDATTRIBUTES_H
12 #define KDCHARTLEVEYJENNINGSGRIDATTRIBUTES_H
13 
14 #include "KDChartEnums.h"
15 #include "KDChartGlobal.h"
16 #include <QMetaType>
17 
18 QT_BEGIN_NAMESPACE
19 class QPen;
20 QT_END_NAMESPACE
21 
22 namespace KDChart {
23 
27 class KDCHART_EXPORT LeveyJenningsGridAttributes
28 {
29 public:
33 
35 
36  enum GridType
37  {
39  Calculated
40  };
41 
42  enum Range
43  {
46  OutOfRange
47  };
48 
49  void setGridVisible(GridType type, bool visible);
50  bool isGridVisible(GridType type) const;
51 
52  void setGridPen(GridType type, const QPen &pen);
53  QPen gridPen(GridType type) const;
54 
55  void setRangeBrush(Range range, const QBrush &brush);
56  QBrush rangeBrush(Range range) const;
57 
58  bool operator==(const LeveyJenningsGridAttributes &) const;
59  inline bool operator!=(const LeveyJenningsGridAttributes &other) const
60  {
61  return !operator==(other);
62  }
63 
64 private:
66 }; // End of class GridAttributes
67 }
68 
70 
71 QT_BEGIN_NAMESPACE
73 QT_END_NAMESPACE
74 
75 Q_DECLARE_METATYPE(KDChart::LeveyJenningsGridAttributes)
76 
77 #endif // KDCHARTLEVEYJENNINGSGRIDATTRIBUTES_H
Definition of global enums.
Contains KDChart macros.
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
Definition: KDChartGlobal.h:65
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(KDChart::LeveyJenningsGridAttributes, Q_MOVABLE_TYPE)
A set of attributes controlling the appearance of grids.
bool operator!=(const LeveyJenningsGridAttributes &other) const
bool operator==(const TickInfo &, const TickInfo &)

© 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 by doxygen 1.9.1