KD Chart API Documentation  3.1
KDChartBarAttributes.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 KDCHARTBARATTRIBUTES_H
12 #define KDCHARTBARATTRIBUTES_H
13 
14 #include "KDChartGlobal.h"
15 #include <QMetaType>
16 
17 namespace KDChart {
18 
22 class KDCHART_EXPORT BarAttributes
23 {
24 public:
25  BarAttributes();
27  BarAttributes &operator=(const BarAttributes &);
28 
29  ~BarAttributes();
30 
31  void setFixedDataValueGap(qreal gap);
32  qreal fixedDataValueGap() const;
33 
34  void setUseFixedDataValueGap(bool gapIsFixed);
35  bool useFixedDataValueGap() const;
36 
37  void setFixedValueBlockGap(qreal gap);
38  qreal fixedValueBlockGap() const;
39 
40  void setUseFixedValueBlockGap(bool gapIsFixed);
41  bool useFixedValueBlockGap() const;
42 
43  void setFixedBarWidth(qreal width);
44  qreal fixedBarWidth() const;
45 
46  void setUseFixedBarWidth(bool useFixedBarWidth);
47  bool useFixedBarWidth() const;
48 
49  void setGroupGapFactor(qreal gapFactor);
50  qreal groupGapFactor() const;
51 
52  void setBarGapFactor(qreal gapFactor);
53  qreal barGapFactor() const;
54 
55  void setDrawSolidExcessArrows(bool solidArrows);
56  bool drawSolidExcessArrows() const;
57 
58  bool operator==(const BarAttributes &) const;
59  inline bool operator!=(const BarAttributes &other) const
60  {
61  return !operator==(other);
62  }
63 
64 private:
65  class Private;
66  Private *_d;
67  Private *d_func()
68  {
69  return _d;
70  }
71  const Private *d_func() const
72  {
73  return _d;
74  }
75 }; // End of class BarAttributes
76 }
77 
78 Q_DECLARE_METATYPE(KDChart::BarAttributes)
79 
80 #endif // KDCHARTBARATTRIBUTES_H
Contains KDChart macros.
Set of attributes for changing the appearance of bar charts.
bool operator!=(const BarAttributes &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