KChart

KChartBarAttributes.h
1 /*
2  * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3  *
4  * This file is part of the KD Chart library.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef KCHARTBARATTRIBUTES_H
21 #define KCHARTBARATTRIBUTES_H
22 
23 #include <QMetaType>
24 #include "KChartGlobal.h"
25 
26 namespace KChart {
27 
31 class KCHART_EXPORT BarAttributes
32 {
33 public:
34  BarAttributes();
35  BarAttributes( const BarAttributes& );
36  BarAttributes &operator= ( const BarAttributes& );
37 
38  ~BarAttributes();
39 
40  void setFixedDataValueGap( qreal gap );
41  qreal fixedDataValueGap() const;
42 
43  void setUseFixedDataValueGap( bool gapIsFixed );
44  bool useFixedDataValueGap() const;
45 
46  void setFixedValueBlockGap( qreal gap );
47  qreal fixedValueBlockGap() const;
48 
49  void setUseFixedValueBlockGap( bool gapIsFixed );
50  bool useFixedValueBlockGap() const;
51 
52  void setFixedBarWidth( qreal width );
53  qreal fixedBarWidth() const;
54 
55  void setUseFixedBarWidth( bool useFixedBarWidth );
56  bool useFixedBarWidth() const;
57 
58  void setGroupGapFactor ( qreal gapFactor );
59  qreal groupGapFactor() const;
60 
61  void setBarGapFactor( qreal gapFactor );
62  qreal barGapFactor() const;
63 
64  void setDrawSolidExcessArrows( bool solidArrows );
65  bool drawSolidExcessArrows() const;
66 
67  bool operator==( const BarAttributes& ) const;
68  inline bool operator!=( const BarAttributes& other ) const { return !operator==(other); }
69 
70 private:
71  class Private;
72  Private * _d;
73  Private * d_func() { return _d; }
74  const Private * d_func() const { return _d; }
75 }; // End of class BarAttributes
76 
77 }
78 
79 Q_DECLARE_METATYPE( KChart::BarAttributes )
80 
81 #endif // KCHARTBARATTRIBUTES_H
Set of attributes for changing the appearance of bar charts.
Contains KChart macros.
Global namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Sep 29 2020 22:42:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.