-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathselectionrect.sip
38 lines (33 loc) · 933 Bytes
/
selectionrect.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/** PyQt5 binding for QCustomPlot v2.0.0
*
* Authors: Dmitry Voronin, Giuseppe Corbelli
* License: MIT
*
* QCustomPlot author: Emanuel Eichhammer
* QCustomPlot Website/Contact: http://www.qcustomplot.com
*/
class QCPSelectionRect : public QCPLayerable
{
%TypeHeaderCode
#include <QCustomPlot/src/selectionrect.h>
%End
public:
QCPSelectionRect(QCustomPlot *parentPlot /TransferThis/);
virtual ~QCPSelectionRect();
// getters:
QRect rect() const;
QCPRange range(const QCPAxis *axis) const;
QPen pen() const;
QBrush brush() const;
bool isActive() const;
// setters:
void setPen(const QPen &pen);
void setBrush(const QBrush &brush);
// non-property methods:
Q_SLOT void cancel();
signals:
void started(QMouseEvent *event);
void changed(const QRect &rect, QMouseEvent *event);
void canceled(const QRect &rect, QInputEvent *event);
void accepted(const QRect &rect, QMouseEvent *event);
};