KChart

KChartFrameAttributes.h
1 /*
2  * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3  *
4  * This file is part of the KD Chart library.
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 
9 #ifndef KCHARTFRAMEATTRIBUTES_H
10 #define KCHARTFRAMEATTRIBUTES_H
11 
12 #include <QDebug>
13 #include <QMetaType>
14 #include <QPen>
15 #include "KChartGlobal.h"
16 
17 namespace KChart {
18 
19 /**
20  * @brief A set of attributes for frames around items
21  */
22 class KCHART_EXPORT FrameAttributes
23 {
24 public:
27  FrameAttributes &operator= ( const FrameAttributes& );
28 
29  ~FrameAttributes();
30 
31  void setVisible( bool visible );
32  bool isVisible() const;
33 
34  void setPen( const QPen & pen );
35  QPen pen() const;
36 
37  void setCornerRadius( qreal radius );
38  qreal cornerRadius() const;
39 
40  void setPadding( int padding );
41  int padding() const;
42 
43  bool operator==( const FrameAttributes& ) const;
44  inline bool operator!=( const FrameAttributes& other ) const { return !operator==(other); }
45 
46 private:
47 
48  KCHART_DECLARE_PRIVATE_BASE_VALUE( FrameAttributes )
49 }; // End of class FrameAttributes
50 
51 }
52 
53 #if !defined(QT_NO_DEBUG_STREAM)
54 KCHART_EXPORT QDebug operator<<(QDebug, const KChart::FrameAttributes& );
55 #endif /* QT_NO_DEBUG_STREAM */
56 
57 KCHART_DECLARE_SWAP_SPECIALISATION( KChart::FrameAttributes )
58 
59 QT_BEGIN_NAMESPACE
60 Q_DECLARE_TYPEINFO( KChart::FrameAttributes, Q_MOVABLE_TYPE );
61 QT_END_NAMESPACE
62 
63 Q_DECLARE_METATYPE( KChart::FrameAttributes )
64 
65 #endif // KCHARTFRAMEATTRIBUTES_H
A set of attributes for frames around items.
QDataStream & operator<<(QDataStream &out, const KDateTime &dateTime)
Contains KChart macros.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:05:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.