KD Chart API Documentation  3.1
KDChartTextArea.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 KDCHART_TEXT_AREA_H
12 #define KDCHART_TEXT_AREA_H
13 
14 #include <QObject>
15 
17 #include "KDChartGlobal.h"
18 #include "KDChartLayoutItems.h"
19 
20 namespace KDChart {
21 
34 class KDCHART_EXPORT TextArea : public QObject, public AbstractAreaBase, public TextLayoutItem
35 {
36  Q_OBJECT
37 
38  Q_DISABLE_COPY(TextArea)
40 
41 public:
42  ~TextArea() override;
43 
44  // virtual TextArea * clone() const = 0;
51  virtual void paintIntoRect(QPainter &painter, const QRect &rect);
52 
57  void paintAll(QPainter &painter) override;
58 
59 protected:
60  TextArea();
61  QRect areaGeometry() const override;
62  void positionHasChanged() override;
63 
64 Q_SIGNALS:
66 
67  // KDCHART_DECLARE_PRIVATE_DERIVED(TextArea)
68 }; // End of class TextArea
69 }
70 #endif // KDCHART_TEXT_AREA_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,...
A text area in the chart with a background, a frame, etc.
void positionChanged(TextArea *)

© 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