KChart

KChartAbstractArea.h
1 /*
2  * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3  *
4  * This file is part of the KD Chart library.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef KCHARTABSTRACTAREA_H
21 #define KCHARTABSTRACTAREA_H
22 
23 #include <QObject>
24 
25 #include "KChartGlobal.h"
26 #include "KChartAbstractAreaBase.h"
27 #include "KChartLayoutItems.h"
28 
29 namespace KChart {
30 
31 
44 class KCHART_EXPORT AbstractArea : public QObject,
45  public AbstractAreaBase,
46  public AbstractLayoutItem
47 {
48  Q_OBJECT
49 
50  Q_DISABLE_COPY( AbstractArea )
51  KCHART_DECLARE_PRIVATE_DERIVED( AbstractArea )
52 
53 public:
54  virtual ~AbstractArea() ;
55 
62  virtual void paintIntoRect( QPainter& painter, const QRect& rect );
63 
68  void paintAll( QPainter& painter ) override;
69 
82  virtual int leftOverlap( bool doNotRecalculate=false ) const;
95  virtual int rightOverlap( bool doNotRecalculate=false ) const;
108  virtual int topOverlap( bool doNotRecalculate=false ) const;
121  virtual int bottomOverlap( bool doNotRecalculate=false ) const;
122 
123 protected:
124  AbstractArea();
125  QRect areaGeometry() const override;
126  void positionHasChanged() override;
127 
128 Q_SIGNALS:
129  void positionChanged( AbstractArea * );
130 }; // End of class AbstractArea
131 
132 }
133 #endif // KCHARTABSTRACTAREA_H
Class only listed here to document inheritance of some KChart classes.
Contains KChart macros.
Base class for AbstractArea and AbstractAreaWidget: An area in the chart with a background, a frame, etc.
Base class for all layout items of KChart.
An area in the chart with a background, a frame, etc.
Global namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Sep 17 2020 22:36:39 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.