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 
15 QT_BEGIN_NAMESPACE
16 class QPainter;
17 QT_END_NAMESPACE
18 
19 namespace 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:
30  PaintContext();
31  ~PaintContext();
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 
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Stores information about painting diagrams.
Contains KChart macros.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 03:54:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.