KChart

KChartStockBarAttributes.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 KCHARTSTOCKBARATTRIBUTES_H
10#define KCHARTSTOCKBARATTRIBUTES_H
11
12#include <QMetaType>
13#include "KChartGlobal.h"
14
15namespace KChart {
16
17/**
18 * @brief Attributes to customize the appearance of a column in a stock chart
19 */
20class KCHART_EXPORT StockBarAttributes
21{
22public:
25 StockBarAttributes &operator= ( const StockBarAttributes& );
26
28
29
30 /**
31 * Sets the width of a candlestick
32 *
33 * @param width The width of a candlestick
34 */
35 void setCandlestickWidth( qreal width );
36
37 /**
38 * @return the width of a candlestick
39 */
40 qreal candlestickWidth() const;
41
42 /**
43 * Sets the tick length of both the open and close marker
44 *
45 * @param length the tick length
46 */
47 void setTickLength( qreal length );
48
49 /**
50 * @return the tick length used for both the open and close marker
51 */
52 qreal tickLength() const;
53
54 bool operator==( const StockBarAttributes& ) const;
55 inline bool operator!=( const StockBarAttributes& other ) const { return !operator==(other); }
56
57private:
58 class Private;
59 Private * _d;
60 Private * d_func() { return _d; }
61 const Private * d_func() const { return _d; }
62};
63
64}
65
66Q_DECLARE_METATYPE( KChart::StockBarAttributes )
67
68#endif // KCHARTSTOCKBARATTRIBUTES_H
Contains KChart macros.
Attributes to customize the appearance of a column in a stock chart.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.