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
17namespace KChart {
18
19/**
20 * @brief A set of attributes for frames around items
21 */
22class KCHART_EXPORT FrameAttributes
23{
24public:
27 FrameAttributes &operator= ( const FrameAttributes& );
28
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
46private:
47
48 KCHART_DECLARE_PRIVATE_BASE_VALUE( FrameAttributes )
49}; // End of class FrameAttributes
50
51}
52
53#if !defined(QT_NO_DEBUG_STREAM)
54KCHART_EXPORT QDebug operator<<(QDebug, const KChart::FrameAttributes& );
55#endif /* QT_NO_DEBUG_STREAM */
56
57KCHART_DECLARE_SWAP_SPECIALISATION( KChart::FrameAttributes )
58
59QT_BEGIN_NAMESPACE
60Q_DECLARE_TYPEINFO( KChart::FrameAttributes, Q_MOVABLE_TYPE );
61QT_END_NAMESPACE
62
63Q_DECLARE_METATYPE( KChart::FrameAttributes )
64
65#endif // KCHARTFRAMEATTRIBUTES_H
Contains KChart macros.
A set of attributes for frames around items.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.