qwt_plot_panner.h
Go to the documentation of this file.
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
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 1
12 
13 #include "qwt_global.h"
14 #include "qwt_panner.h"
15 
16 class QwtPlot;
17 
32 {
33  Q_OBJECT
34 
35 public:
36  explicit QwtPlotPanner( QWidget * );
37  virtual ~QwtPlotPanner();
38 
39  QWidget *canvas();
40  const QWidget *canvas() const;
41 
42  QwtPlot *plot();
43  const QwtPlot *plot() const;
44 
45  void setAxisEnabled( int axis, bool on );
46  bool isAxisEnabled( int axis ) const;
47 
48 protected Q_SLOTS:
49  virtual void moveCanvas( int dx, int dy );
50 
51 protected:
52  virtual QBitmap contentsMask() const;
53  virtual QPixmap grab() const;
54 
55 private:
56  class PrivateData;
58 };
59 
60 #endif
virtual QBitmap contentsMask() const
Calculate a mask for the contents of the panned widget.
Definition: qwt_panner.cpp:295
#define QWT_EXPORT
Definition: qwt_global.h:38
QwtPanner provides panning of a widget.
Definition: qwt_panner.h:35
A 2-D plotting widget.
Definition: qwt_plot.h:74
virtual QPixmap grab() const
Definition: qwt_panner.cpp:304
QwtPlotPanner provides panning of a plot canvas.
PrivateData * d_data


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17