KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
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
20namespace KDChart {
21
34class KDCHART_EXPORT AbstractArea : public QObject,
35 public AbstractAreaBase,
37{
38 Q_OBJECT
39
40 Q_DISABLE_COPY(AbstractArea)
42
43public:
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
113protected:
114 AbstractArea();
115 QRect areaGeometry() const override;
116 void positionHasChanged() override;
117
118Q_SIGNALS:
120}; // End of class AbstractArea
121}
122#endif // KDCHARTABSTRACTAREA_H
Contains KDChart macros.
#define KDCHART_DECLARE_PRIVATE_DERIVED(X)
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 on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8