KChart

KChartBarAttributes.h
1/*
2 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3 *
4 * This file is part of the KD Chart library.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KCHARTBARATTRIBUTES_H
10#define KCHARTBARATTRIBUTES_H
11
12#include <QMetaType>
13#include "KChartGlobal.h"
14
15namespace KChart {
16
17/**
18 * @brief Set of attributes for changing the appearance of bar charts
19 */
20class KCHART_EXPORT BarAttributes
21{
22public:
25 BarAttributes &operator= ( const BarAttributes& );
26
28
29 void setFixedDataValueGap( qreal gap );
30 qreal fixedDataValueGap() const;
31
32 void setUseFixedDataValueGap( bool gapIsFixed );
33 bool useFixedDataValueGap() const;
34
35 void setFixedValueBlockGap( qreal gap );
36 qreal fixedValueBlockGap() const;
37
38 void setUseFixedValueBlockGap( bool gapIsFixed );
39 bool useFixedValueBlockGap() const;
40
41 void setFixedBarWidth( qreal width );
42 qreal fixedBarWidth() const;
43
44 void setUseFixedBarWidth( bool useFixedBarWidth );
45 bool useFixedBarWidth() const;
46
47 void setGroupGapFactor ( qreal gapFactor );
48 qreal groupGapFactor() const;
49
50 void setBarGapFactor( qreal gapFactor );
51 qreal barGapFactor() const;
52
53 void setDrawSolidExcessArrows( bool solidArrows );
54 bool drawSolidExcessArrows() const;
55
56 bool operator==( const BarAttributes& ) const;
57 inline bool operator!=( const BarAttributes& other ) const { return !operator==(other); }
58
59private:
60 class Private;
61 Private * _d;
62 Private * d_func() { return _d; }
63 const Private * d_func() const { return _d; }
64}; // End of class BarAttributes
65
66}
67
68Q_DECLARE_METATYPE( KChart::BarAttributes )
69
70#endif // KCHARTBARATTRIBUTES_H
Contains KChart macros.
Set of attributes for changing the appearance of bar charts.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:59:20 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.