KChart

KChartPaintContext.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 PAINTCONTEXT_H
10#define PAINTCONTEXT_H
11
12#include <QRectF>
13#include "KChartGlobal.h"
14
15QT_BEGIN_NAMESPACE
16class QPainter;
17QT_END_NAMESPACE
18
19namespace KChart {
20
21 class AbstractCoordinatePlane;
22
23 /**
24 * @brief Stores information about painting diagrams
25 * \internal
26 */
27 class KCHART_EXPORT PaintContext
28 {
29 public:
32
33 const QRectF rectangle () const;
34 void setRectangle( const QRectF& rect );
35
36 QPainter* painter() const;
37 void setPainter( QPainter* painter );
38
39 AbstractCoordinatePlane* coordinatePlane() const;
40 void setCoordinatePlane( AbstractCoordinatePlane* plane );
41
42 private:
43 class Private;
44 Private * _d;
45 Private * d_func() { return _d; }
46 const Private * d_func() const { return _d; }
47 };
48
49}
50
51#endif /* PAINTCONTEXT_H */
52
Contains KChart macros.
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Stores information about painting diagrams.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:48:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.