KD Chart API Documentation  3.1
KDChartBackgroundAttributes.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 KDCHARTBACKGROUNDATTRIBUTES_H
12 #define KDCHARTBACKGROUNDATTRIBUTES_H
13 
14 #include "KDChartGlobal.h"
15 #include <QBrush>
16 #include <QDebug>
17 #include <QMetaType>
18 
19 namespace KDChart {
20 
24 class KDCHART_EXPORT BackgroundAttributes
25 {
26 public:
29  BackgroundAttributes &operator=(const BackgroundAttributes &);
30 
32 
34  {
38  BackgroundPixmapModeStretched
39  };
40 
41  void setVisible(bool visible);
42  bool isVisible() const;
43 
44  void setBrush(const QBrush &brush);
45  QBrush brush() const;
46 
47  void setPixmapMode(BackgroundPixmapMode mode);
48  BackgroundPixmapMode pixmapMode() const;
49 
50  void setPixmap(const QPixmap &backPixmap);
51  QPixmap pixmap() const;
52 
53  bool operator==(const BackgroundAttributes &) const;
54  inline bool operator!=(const BackgroundAttributes &other) const
55  {
56  return !operator==(other);
57  }
58 
59  bool isEqualTo(const BackgroundAttributes &other, bool ignorePixmap = false) const;
60 
61 private:
63 }; // End of class BackgroundAttributes
64 }
65 
66 #if !defined(QT_NO_DEBUG_STREAM)
67 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::BackgroundAttributes &);
68 #endif /* QT_NO_DEBUG_STREAM */
69 
71 
72 QT_BEGIN_NAMESPACE
74 QT_END_NAMESPACE
75 
76 Q_DECLARE_METATYPE(KDChart::BackgroundAttributes)
77 
78 #endif // KDCHARTBACKGROUNDATTRIBUTES_H
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(KDChart::BackgroundAttributes, Q_MOVABLE_TYPE)
KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::BackgroundAttributes &)
Contains KDChart macros.
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
Definition: KDChartGlobal.h:65
bool operator!=(const BackgroundAttributes &other) const
bool operator==(const TickInfo &, const TickInfo &)

© 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