1// qxyseries.sip generated by MetaSIP
2//
3// This file is part of the QtChart Python extension module.
4//
5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
6//
7// This file is part of PyQtChart.
8//
9// This file may be used under the terms of the GNU General Public License
10// version 3.0 as published by the Free Software Foundation and appearing in
11// the file LICENSE included in the packaging of this file.  Please review the
12// following information to ensure the GNU General Public License version 3.0
13// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14//
15// If you do not wish to use this file under the terms of the GPL version 3.0
16// then you may purchase a commercial license.  For more information contact
17// info@riverbankcomputing.com.
18//
19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
22
23namespace QtCharts
24{
25%TypeHeaderCode
26#include <qxyseries.h>
27%End
28
29    class QXYSeries : QtCharts::QAbstractSeries /NoDefaultCtors/
30    {
31%TypeHeaderCode
32#include <qxyseries.h>
33%End
34
35    public:
36        virtual ~QXYSeries();
37        void append(qreal x, qreal y);
38        void append(const QPointF &point);
39        void append(const QList<QPointF> &points);
40        void replace(qreal oldX, qreal oldY, qreal newX, qreal newY);
41        void replace(const QPointF &oldPoint, const QPointF &newPoint);
42%If (QtChart_1_1_0 -)
43        void replace(QList<QPointF> points);
44%End
45%If (QtChart_1_3_0 -)
46        void replace(int index, qreal newX, qreal newY);
47%End
48%If (QtChart_1_3_0 -)
49        void replace(int index, const QPointF &newPoint);
50%End
51        void remove(qreal x, qreal y);
52        void remove(const QPointF &point);
53%If (QtChart_1_3_0 -)
54        void remove(int index);
55%End
56        void insert(int index, const QPointF &point);
57        void clear();
58        int count() const /__len__/;
59        QtCharts::QXYSeries &operator<<(const QPointF &point);
60        QtCharts::QXYSeries &operator<<(const QList<QPointF> &points);
61        virtual void setPen(const QPen &pen);
62        QPen pen() const;
63        virtual void setBrush(const QBrush &brush);
64        QBrush brush() const;
65        virtual void setColor(const QColor &color);
66        virtual QColor color() const;
67        void setPointsVisible(bool visible = true);
68        bool pointsVisible() const;
69%If (QtChart_1_3_0 -)
70        const QPointF &at(int index) const;
71%End
72
73    signals:
74        void clicked(const QPointF &point);
75        void colorChanged(QColor color);
76        void pointReplaced(int index);
77        void pointRemoved(int index);
78        void pointAdded(int index);
79%If (QtChart_1_1_0 -)
80        void pointsReplaced();
81%End
82%If (QtChart_1_2_0 -)
83        void hovered(const QPointF &point, bool state);
84%End
85
86    public:
87%If (QtChart_1_4_0 -)
88        void setPointLabelsFormat(const QString &format);
89%End
90%If (QtChart_1_4_0 -)
91        QString pointLabelsFormat() const;
92%End
93%If (QtChart_1_4_0 -)
94        void setPointLabelsVisible(bool visible = true);
95%End
96%If (QtChart_1_4_0 -)
97        bool pointLabelsVisible() const;
98%End
99%If (QtChart_1_4_0 -)
100        void setPointLabelsFont(const QFont &font);
101%End
102%If (QtChart_1_4_0 -)
103        QFont pointLabelsFont() const;
104%End
105%If (QtChart_1_4_0 -)
106        void setPointLabelsColor(const QColor &color);
107%End
108%If (QtChart_1_4_0 -)
109        QColor pointLabelsColor() const;
110%End
111
112    signals:
113%If (QtChart_1_4_0 -)
114        void pointLabelsFormatChanged(const QString &format);
115%End
116%If (QtChart_1_4_0 -)
117        void pointLabelsVisibilityChanged(bool visible);
118%End
119%If (QtChart_1_4_0 -)
120        void pointLabelsFontChanged(const QFont &font);
121%End
122%If (QtChart_1_4_0 -)
123        void pointLabelsColorChanged(const QColor &color);
124%End
125%If (QtChart_2_0_0 -)
126        void pressed(const QPointF &point);
127%End
128%If (QtChart_2_0_0 -)
129        void released(const QPointF &point);
130%End
131%If (QtChart_2_0_0 -)
132        void doubleClicked(const QPointF &point);
133%End
134
135    public:
136%If (QtChart_2_1_0 -)
137        void removePoints(int index, int count);
138%End
139%If (QtChart_2_1_0 -)
140        QVector<QPointF> pointsVector() const;
141%End
142%If (QtChart_2_1_0 -)
143        void setPointLabelsClipping(bool enable = true);
144%End
145%If (QtChart_2_1_0 -)
146        bool pointLabelsClipping() const;
147%End
148
149    signals:
150%If (QtChart_2_1_0 -)
151        void pointLabelsClippingChanged(bool clipping);
152%End
153%If (QtChart_2_1_0 -)
154        void pointsRemoved(int index, int count);
155%End
156%If (QtChart_2_1_0 -)
157        void penChanged(const QPen &pen);
158%End
159    };
160};
161