KD Chart API Documentation  3.1
KDChartPaintContext.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 PAINTCONTEXT_H
12 #define PAINTCONTEXT_H
13 
14 #include "KDChartGlobal.h"
15 #include <QRectF>
16 
17 QT_BEGIN_NAMESPACE
18 class QPainter;
19 QT_END_NAMESPACE
20 
21 namespace KDChart {
22 
23 class AbstractCoordinatePlane;
24 
29 class KDCHART_EXPORT PaintContext
30 {
31 public:
32  PaintContext();
33  ~PaintContext();
34 
35  const QRectF rectangle() const;
36  void setRectangle(const QRectF &rect);
37 
38  QPainter *painter() const;
39  void setPainter(QPainter *painter);
40 
41  AbstractCoordinatePlane *coordinatePlane() const;
42  void setCoordinatePlane(AbstractCoordinatePlane *plane);
43 
44 private:
45  class Private;
46  Private *_d;
47  Private *d_func()
48  {
49  return _d;
50  }
51  const Private *d_func() const
52  {
53  return _d;
54  }
55 };
56 }
57 
58 #endif /* PAINTCONTEXT_H */
Contains KDChart macros.
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Stores information about painting diagrams.

© 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