Qwt User's Guide 6.2.0

qwt_plot_panner.h
1 /******************************************************************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10 #ifndef QWT_PLOT_PANNER_H
11 #define QWT_PLOT_PANNER_H
12
13 #include "qwt_global.h"
14 #include "qwt_panner.h"
15 #include "qwt_axis_id.h"
16
17 class QwtPlot;
18
32 class QWT_EXPORT QwtPlotPanner : public QwtPanner
33 {
34 Q_OBJECT
35
36 public:
37 explicit QwtPlotPanner( QWidget* );
38 virtual ~QwtPlotPanner();
39
40 QWidget* canvas();
41 const QWidget* canvas() const;
42
43 QwtPlot* plot();
44 const QwtPlot* plot() const;
45
46 void setAxisEnabled( QwtAxisId axisId, bool on );
47 bool isAxisEnabled( QwtAxisId ) const;
48
49 public Q_SLOTS:
50 virtual void moveCanvas( int dx, int dy );
51
52 protected:
53 virtual QBitmap contentsMask() const QWT_OVERRIDE;
54 virtual QPixmap grab() const QWT_OVERRIDE;
55
56 private:
57 class PrivateData;
58 PrivateData* m_data;
59 };
60
61 #endif
QwtPanner
QwtPanner provides panning of a widget.
Definition: qwt_panner.h:36
QwtPanner::contentsMask
virtual QBitmap contentsMask() const
Calculate a mask for the contents of the panned widget.
Definition: qwt_panner.cpp:297
QwtPanner::grab
virtual QPixmap grab() const
Definition: qwt_panner.cpp:306
QwtPlot
A 2-D plotting widget.
Definition: qwt_plot.h:79
QwtPlotPanner
QwtPlotPanner provides panning of a plot canvas.
Definition: qwt_plot_panner.h:33