KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartRulerAttributes.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 KDCHARTRULERATTRIBUTES_H
12#define KDCHARTRULERATTRIBUTES_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 RulerAttributes
28{
29public:
32 RulerAttributes &operator=(const RulerAttributes &);
33
35
39 void setTickMarkPen(const QPen &pen);
40 QPen tickMarkPen() const;
41
45 void setMajorTickMarkPen(const QPen &pen);
46 bool majorTickMarkPenIsSet() const;
47 QPen majorTickMarkPen() const;
48
52 void setMinorTickMarkPen(const QPen &pen);
53 bool minorTickMarkPenIsSet() const;
54 QPen minorTickMarkPen() const;
55
62 void setTickMarkPen(qreal value, const QPen &pen);
63 QPen tickMarkPen(qreal value) const;
65 TickMarkerPensMap tickMarkPens() const;
66
67 bool hasTickMarkPenAt(qreal value) const;
68
72 void setTickMarkColor(const QColor &color);
73 QColor tickMarkColor() const;
74
78 void setShowMinorTickMarks(bool show);
79 bool showMinorTickMarks() const;
80
81 void setShowRulerLine(bool show);
82 bool showRulerLine() const;
83
87 void setShowMajorTickMarks(bool show);
88 bool showMajorTickMarks() const;
89
93 void setMajorTickMarkLength(int length);
94 int majorTickMarkLength() const;
95 bool majorTickMarkLengthIsSet() const;
96
100 void setMinorTickMarkLength(int length);
101 int minorTickMarkLength() const;
102 bool minorTickMarkLengthIsSet() const;
103
109 void setLabelMargin(int margin);
110 int labelMargin() const;
111
116 void setShowFirstTick(bool show);
117 bool showFirstTick() const;
118
119 bool operator==(const RulerAttributes &) const;
120 inline bool operator!=(const RulerAttributes &other) const
121 {
122 return !operator==(other);
123 }
124
125private:
127}; // End of class RulerAttributes
128}
129
130#if !defined(QT_NO_DEBUG_STREAM)
131KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::RulerAttributes &);
132#endif /* QT_NO_DEBUG_STREAM */
133
135
136QT_BEGIN_NAMESPACE
138QT_END_NAMESPACE
139
140Q_DECLARE_METATYPE(KDChart::RulerAttributes)
141
142#endif // KDCHARTRULERATTRIBUTES_H
Definition of global enums.
Contains KDChart macros.
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::RulerAttributes &)
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(KDChart::RulerAttributes, Q_MOVABLE_TYPE)
A set of attributes controlling the appearance of axis rulers.
QMap< qreal, QPen > TickMarkerPensMap
bool operator!=(const RulerAttributes &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