KChart

KChartPaintContext.h
1 /*
2  * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3  *
4  * This file is part of the KD Chart library.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef PAINTCONTEXT_H
21 #define PAINTCONTEXT_H
22 
23 #include <QRectF>
24 #include "KChartGlobal.h"
25 
26 QT_BEGIN_NAMESPACE
27 class QPainter;
28 QT_END_NAMESPACE
29 
30 namespace KChart {
31 
32  class AbstractCoordinatePlane;
33 
38  class KCHART_EXPORT PaintContext
39  {
40  public:
41  PaintContext();
42  ~PaintContext();
43 
44  const QRectF rectangle () const;
45  void setRectangle( const QRectF& rect );
46 
47  QPainter* painter() const;
48  void setPainter( QPainter* painter );
49 
50  AbstractCoordinatePlane* coordinatePlane() const;
51  void setCoordinatePlane( AbstractCoordinatePlane* plane );
52 
53  private:
54  class Private;
55  Private * _d;
56  Private * d_func() { return _d; }
57  const Private * d_func() const { return _d; }
58  };
59 
60 }
61 
62 #endif /* PAINTCONTEXT_H */
63 
Stores information about painting diagrams.
Contains KChart macros.
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane, TernaryCoordinatePlane.
Global namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Nov 30 2020 22:37:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.