KD Chart API Documentation  3.1
KDChartAbstractArea.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 KDCHARTABSTRACTAREA_H
12 #define KDCHARTABSTRACTAREA_H
13 
14 #include <QObject>
15 
17 #include "KDChartGlobal.h"
18 #include "KDChartLayoutItems.h"
19 
20 namespace KDChart {
21 
34 class KDCHART_EXPORT AbstractArea : public QObject,
35  public AbstractAreaBase,
36  public AbstractLayoutItem
37 {
38  Q_OBJECT
39 
40  Q_DISABLE_COPY(AbstractArea)
42 
43 public:
44  ~AbstractArea() override;
45 
52  virtual void paintIntoRect(QPainter &painter, const QRect &rect);
53 
58  void paintAll(QPainter &painter) override;
59 
72  virtual int leftOverlap(bool doNotRecalculate = false) const;
85  virtual int rightOverlap(bool doNotRecalculate = false) const;
98  virtual int topOverlap(bool doNotRecalculate = false) const;
111  virtual int bottomOverlap(bool doNotRecalculate = false) const;
112 
113 protected:
114  AbstractArea();
115  QRect areaGeometry() const override;
116  void positionHasChanged() override;
117 
118 Q_SIGNALS:
120 }; // End of class AbstractArea
121 }
122 #endif // KDCHARTABSTRACTAREA_H
Contains KDChart macros.
#define KDCHART_DECLARE_PRIVATE_DERIVED(X)
Definition: KDChartGlobal.h:38
Base class for AbstractArea and AbstractAreaWidget: An area in the chart with a background,...
An area in the chart with a background, a frame, etc.
void positionChanged(AbstractArea *)

© 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