KD Chart API Documentation
3.1
src
KDChart
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
18
namespace
KDChart
{
19
37
class
KDCHART_EXPORT
Palette
:
public
QObject
38
{
39
Q_OBJECT
40
public
:
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
74
Q_SIGNALS:
77
void
changed
();
78
79
private
:
80
KDCHART_DECLARE_PRIVATE_BASE_VALUE
(
Palette
)
81
};
82
}
83
84
KDCHART_DECLARE_SWAP_SPECIALISATION
(
KDChart::Palette
)
85
86
#endif
KDChartGlobal.h
Contains KDChart macros.
KDCHART_DECLARE_SWAP_SPECIALISATION
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
Definition:
KDChartGlobal.h:192
KDCHART_DECLARE_PRIVATE_BASE_VALUE
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
Definition:
KDChartGlobal.h:65
KDChart::Palette
A Palette is a set of brushes (or colors) to be used for painting data sets.
Definition:
KDChartPalette.h:38
KDChart::Palette::changed
void changed()
KDChart
Definition:
CartesianCoordinateTransformation.h:23
© 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