KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartPalette.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 __KDCHART_PALETTE_H__
12#define __KDCHART_PALETTE_H__
13
14#include "KDChartGlobal.h"
15#include <QBrush>
16#include <QObject>
17
18namespace KDChart {
19
37class KDCHART_EXPORT Palette : public QObject
38{
39 Q_OBJECT
40public:
41 explicit Palette(QObject *parent = nullptr);
42 Palette(const Palette &);
43 Palette &operator=(const Palette &);
44
45 ~Palette() override;
46
49 static const Palette &defaultPalette();
50 static const Palette &subduedPalette();
51 static const Palette &rainbowPalette();
52
55 bool isValid() const;
56
58 int size() const;
59
63 void addBrush(const QBrush &brush, int position = -1);
64
69 QBrush getBrush(int position) const;
70
72 void removeBrush(int position);
73
74Q_SIGNALS:
77 void changed();
78
79private:
81};
82}
83
85
86#endif
Contains KDChart macros.
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
A Palette is a set of brushes (or colors) to be used for painting data sets.

© 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