QwtCachePanner provides panning of a widget.
More...
#include <qwt_cache_panner.h>
|
| void | panned (int dx, int dy) |
| | Signal emitted when panning is done.
|
| |
| void | moved (int dx, int dy) |
| | Signal emitted while the widget moved, but panning is not finished.
|
| |
|
| | QwtCachePanner (QWidget *parent) |
| | Creates a panner that is enabled for the left mouse button.
|
| |
| virtual | ~QwtCachePanner () |
| | Destructor .
|
| |
| void | setEnabled (bool) |
| | En/disable the panner.
|
| |
| bool | isEnabled () const |
| | Return whether the panner is enabled.
|
| |
| void | setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier) |
| | Change the mouse button and modifiers used for panning.
|
| |
| void | getMouseButton (Qt::MouseButton &button, Qt::KeyboardModifiers &) const |
| | Get mouse button and modifiers used for panning.
|
| |
| void | setAbortKey (int key, Qt::KeyboardModifiers=Qt::NoModifier) |
| | Change the abort key.
|
| |
| void | getAbortKey (int &key, Qt::KeyboardModifiers &) const |
| | Get the abort key and modifiers.
|
| |
| void | setCursor (const QCursor &) |
| | Change the cursor that is active while panning.
|
| |
| const QCursor | cursor () const |
| | Return the cursor that is active while panning.
|
| |
| void | setOrientations (Qt::Orientations) |
| | Set the orientations where panning is enabled.
|
| |
| Qt::Orientations | orientations () const |
| | Return the orientation where panning is enabled.
|
| |
| bool | isOrientationEnabled (Qt::Orientation) const |
| | Check if an orientation is enabled.
|
| |
| virtual bool | eventFilter (QObject *, QEvent *) override |
| | Event filter.
|
| |
|
| virtual void | widgetMousePressEvent (QMouseEvent *) |
| | Handle a mouse press event for the observed widget.
|
| |
| virtual void | widgetMouseReleaseEvent (QMouseEvent *) |
| | Handle a mouse release event for the observed widget.
|
| |
| virtual void | widgetMouseMoveEvent (QMouseEvent *) |
| | Handle a mouse move event for the observed widget.
|
| |
| virtual void | widgetKeyPressEvent (QKeyEvent *) |
| | Handle a key press event for the observed widget.
|
| |
| virtual void | widgetKeyReleaseEvent (QKeyEvent *) |
| | Handle a key release event for the observed widget.
|
| |
| virtual void | paintEvent (QPaintEvent *) override |
| | Paint event.
|
| |
| virtual QBitmap | contentsMask () const |
| | Calculate a mask for the contents of the panned widget.
|
| |
| virtual QPixmap | grab () const |
| | Grab the widget into a pixmap.
|
| |
QwtCachePanner provides panning of a widget.
◆ QwtCachePanner()
| QwtCachePanner::QwtCachePanner |
( |
QWidget * |
parent | ) |
|
|
explicit |
Creates a panner that is enabled for the left mouse button.
◆ ~QwtCachePanner()
| QwtCachePanner::~QwtCachePanner |
( |
| ) |
|
|
virtual |
◆ contentsMask()
| QBitmap QwtCachePanner::contentsMask |
( |
| ) |
const |
|
protectedvirtual |
Calculate a mask for the contents of the panned widget.
Reimplemented in QwtPlotCachePanner.
◆ cursor()
| const QCursor QwtCachePanner::cursor |
( |
| ) |
const |
Return the cursor that is active while panning.
◆ eventFilter()
| bool QwtCachePanner::eventFilter |
( |
QObject * |
object, |
|
|
QEvent * |
event |
|
) |
| |
|
overridevirtual |
◆ getAbortKey()
| void QwtCachePanner::getAbortKey |
( |
int & |
key, |
|
|
Qt::KeyboardModifiers & |
modifiers |
|
) |
| const |
Get the abort key and modifiers.
◆ getMouseButton()
| void QwtCachePanner::getMouseButton |
( |
Qt::MouseButton & |
button, |
|
|
Qt::KeyboardModifiers & |
modifiers |
|
) |
| const |
Get mouse button and modifiers used for panning.
◆ grab()
| QPixmap QwtCachePanner::grab |
( |
| ) |
const |
|
protectedvirtual |
◆ isEnabled()
| bool QwtCachePanner::isEnabled |
( |
| ) |
const |
Return whether the panner is enabled.
◆ isOrientationEnabled()
| bool QwtCachePanner::isOrientationEnabled |
( |
Qt::Orientation |
o | ) |
const |
Check if an orientation is enabled.
◆ moved
| void QwtCachePanner::moved |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
|
signal |
Signal emitted while the widget moved, but panning is not finished.
◆ orientations()
| Qt::Orientations QwtCachePanner::orientations |
( |
| ) |
const |
Return the orientation where panning is enabled.
◆ paintEvent()
| void QwtCachePanner::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ panned
| void QwtCachePanner::panned |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
|
signal |
Signal emitted when panning is done.
◆ setAbortKey()
| void QwtCachePanner::setAbortKey |
( |
int |
key, |
|
|
Qt::KeyboardModifiers |
modifiers = Qt::NoModifier |
|
) |
| |
◆ setCursor()
| void QwtCachePanner::setCursor |
( |
const QCursor & |
cursor | ) |
|
Change the cursor that is active while panning.
◆ setEnabled()
| void QwtCachePanner::setEnabled |
( |
bool |
on | ) |
|
◆ setMouseButton()
| void QwtCachePanner::setMouseButton |
( |
Qt::MouseButton |
button, |
|
|
Qt::KeyboardModifiers |
modifiers = Qt::NoModifier |
|
) |
| |
Change the mouse button and modifiers used for panning.
◆ setOrientations()
| void QwtCachePanner::setOrientations |
( |
Qt::Orientations |
o | ) |
|
Set the orientations where panning is enabled.
◆ widgetKeyPressEvent()
| void QwtCachePanner::widgetKeyPressEvent |
( |
QKeyEvent * |
keyEvent | ) |
|
|
protectedvirtual |
◆ widgetKeyReleaseEvent()
| void QwtCachePanner::widgetKeyReleaseEvent |
( |
QKeyEvent * |
keyEvent | ) |
|
|
protectedvirtual |
◆ widgetMouseMoveEvent()
| void QwtCachePanner::widgetMouseMoveEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
protectedvirtual |
◆ widgetMousePressEvent()
| void QwtCachePanner::widgetMousePressEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
protectedvirtual |
◆ widgetMouseReleaseEvent()
| void QwtCachePanner::widgetMouseReleaseEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/plot/qwt_cache_panner.h
- /home/runner/work/QWT/QWT/src/plot/qwt_cache_panner.cpp