KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
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
18QT_BEGIN_NAMESPACE
19class QPen;
20QT_END_NAMESPACE
21
22namespace KDChart {
23
27class KDCHART_EXPORT LeveyJenningsGridAttributes
28{
29public:
33
35
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
64private:
66}; // End of class GridAttributes
67}
68
70
71QT_BEGIN_NAMESPACE
73QT_END_NAMESPACE
74
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)
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 on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8