123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.20"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Qwt User's Guide: QwtPanner Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Qwt User's Guide
-  <span id="projectnumber">6.1.6</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.20 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('class_qwt_panner.html',''); initResizable(); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#signals">Signals</a> |
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pro-methods">Protected Member Functions</a> |
- <a href="class_qwt_panner-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtPanner Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p><a class="el" href="class_qwt_panner.html" title="QwtPanner provides panning of a widget.">QwtPanner</a> provides panning of a widget.
- <a href="class_qwt_panner.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__panner_8h_source.html">qwt_panner.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtPanner:</div>
- <div class="dyncontent">
- <div class="center"><img src="class_qwt_panner__inherit__graph.png" border="0" usemap="#a_qwt_panner_inherit__map" alt="Inheritance graph"/></div>
- <map name="_qwt_panner_inherit__map" id="a_qwt_panner_inherit__map">
- <area shape="rect" title="QwtPanner provides panning of a widget." alt="" coords="17,80,104,107"/>
- <area shape="rect" href="class_qwt_plot_panner.html" title="QwtPlotPanner provides panning of a plot canvas." alt="" coords="5,155,116,181"/>
- <area shape="rect" title=" " alt="" coords="24,5,97,32"/>
- </map>
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
- Signals</h2></td></tr>
- <tr class="memitem:ae9ce78e6f9ae73317af29b2dc5df7372"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#ae9ce78e6f9ae73317af29b2dc5df7372">panned</a> (int dx, int dy)</td></tr>
- <tr class="separator:ae9ce78e6f9ae73317af29b2dc5df7372"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa45ae2f4d6d20a83783898dd86d0b595"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#aa45ae2f4d6d20a83783898dd86d0b595">moved</a> (int dx, int dy)</td></tr>
- <tr class="separator:aa45ae2f4d6d20a83783898dd86d0b595"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:af5482be26d69a64c3880653265240736"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#af5482be26d69a64c3880653265240736">QwtPanner</a> (QWidget *parent)</td></tr>
- <tr class="separator:af5482be26d69a64c3880653265240736"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a19c9b9a08da05649f6d2ef5bf6fb391c"><td class="memItemLeft" align="right" valign="top"><a id="a19c9b9a08da05649f6d2ef5bf6fb391c"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a19c9b9a08da05649f6d2ef5bf6fb391c">~QwtPanner</a> ()</td></tr>
- <tr class="memdesc:a19c9b9a08da05649f6d2ef5bf6fb391c"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:a19c9b9a08da05649f6d2ef5bf6fb391c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a43e06c262c945fc7faeb729539bbde58"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a43e06c262c945fc7faeb729539bbde58">setEnabled</a> (bool)</td></tr>
- <tr class="memdesc:a43e06c262c945fc7faeb729539bbde58"><td class="mdescLeft"> </td><td class="mdescRight">En/disable the panner. <a href="class_qwt_panner.html#a43e06c262c945fc7faeb729539bbde58">More...</a><br /></td></tr>
- <tr class="separator:a43e06c262c945fc7faeb729539bbde58"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a19439f534fc9fa254693948eb4f4bb5f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a19439f534fc9fa254693948eb4f4bb5f">isEnabled</a> () const</td></tr>
- <tr class="separator:a19439f534fc9fa254693948eb4f4bb5f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6f138454b2c1d7e814ae1975d6a7b8be"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a6f138454b2c1d7e814ae1975d6a7b8be">setMouseButton</a> (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)</td></tr>
- <tr class="separator:a6f138454b2c1d7e814ae1975d6a7b8be"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8a74f8e2f4d424f85fa5a9da11c075d2"><td class="memItemLeft" align="right" valign="top"><a id="a8a74f8e2f4d424f85fa5a9da11c075d2"></a>
- void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a8a74f8e2f4d424f85fa5a9da11c075d2">getMouseButton</a> (Qt::MouseButton &button, Qt::KeyboardModifiers &) const</td></tr>
- <tr class="memdesc:a8a74f8e2f4d424f85fa5a9da11c075d2"><td class="mdescLeft"> </td><td class="mdescRight">Get mouse button and modifiers used for panning. <br /></td></tr>
- <tr class="separator:a8a74f8e2f4d424f85fa5a9da11c075d2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acbb1b9e30214354708e1d75db6b78289"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#acbb1b9e30214354708e1d75db6b78289">setAbortKey</a> (int key, Qt::KeyboardModifiers=Qt::NoModifier)</td></tr>
- <tr class="separator:acbb1b9e30214354708e1d75db6b78289"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:abdfca52ea5a6a11a533dcbbbddbb3bf6"><td class="memItemLeft" align="right" valign="top"><a id="abdfca52ea5a6a11a533dcbbbddbb3bf6"></a>
- void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#abdfca52ea5a6a11a533dcbbbddbb3bf6">getAbortKey</a> (int &key, Qt::KeyboardModifiers &) const</td></tr>
- <tr class="memdesc:abdfca52ea5a6a11a533dcbbbddbb3bf6"><td class="mdescLeft"> </td><td class="mdescRight">Get the abort key and modifiers. <br /></td></tr>
- <tr class="separator:abdfca52ea5a6a11a533dcbbbddbb3bf6"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac8b0625fe155fff0132df85727f54a3e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#ac8b0625fe155fff0132df85727f54a3e">setCursor</a> (const QCursor &)</td></tr>
- <tr class="separator:ac8b0625fe155fff0132df85727f54a3e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1ebb1cc406fa3d30df0e7dd7a541667d"><td class="memItemLeft" align="right" valign="top">const QCursor </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a1ebb1cc406fa3d30df0e7dd7a541667d">cursor</a> () const</td></tr>
- <tr class="separator:a1ebb1cc406fa3d30df0e7dd7a541667d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aaa71a8b6f7f46ae8f5a8084094d7bd9a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#aaa71a8b6f7f46ae8f5a8084094d7bd9a">setOrientations</a> (Qt::Orientations)</td></tr>
- <tr class="separator:aaa71a8b6f7f46ae8f5a8084094d7bd9a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0df413d3d5a6bc4f002e87f3b269214e"><td class="memItemLeft" align="right" valign="top"><a id="a0df413d3d5a6bc4f002e87f3b269214e"></a>
- Qt::Orientations </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a0df413d3d5a6bc4f002e87f3b269214e">orientations</a> () const</td></tr>
- <tr class="memdesc:a0df413d3d5a6bc4f002e87f3b269214e"><td class="mdescLeft"> </td><td class="mdescRight">Return the orientation, where paning is enabled. <br /></td></tr>
- <tr class="separator:a0df413d3d5a6bc4f002e87f3b269214e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa69c32aae501021f01cb7c833172986c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#aa69c32aae501021f01cb7c833172986c">isOrientationEnabled</a> (Qt::Orientation) const</td></tr>
- <tr class="separator:aa69c32aae501021f01cb7c833172986c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a06b8eea86d4dcbe361c4af41a263f2cb"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a06b8eea86d4dcbe361c4af41a263f2cb">eventFilter</a> (QObject *, QEvent *)</td></tr>
- <tr class="memdesc:a06b8eea86d4dcbe361c4af41a263f2cb"><td class="mdescLeft"> </td><td class="mdescRight">Event filter. <a href="class_qwt_panner.html#a06b8eea86d4dcbe361c4af41a263f2cb">More...</a><br /></td></tr>
- <tr class="separator:a06b8eea86d4dcbe361c4af41a263f2cb"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
- Protected Member Functions</h2></td></tr>
- <tr class="memitem:ae002958978dcc751f9edda24e5858dd9"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#ae002958978dcc751f9edda24e5858dd9">widgetMousePressEvent</a> (QMouseEvent *)</td></tr>
- <tr class="separator:ae002958978dcc751f9edda24e5858dd9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab2da1e24b1456b223eaa826d8e0a3a81"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#ab2da1e24b1456b223eaa826d8e0a3a81">widgetMouseReleaseEvent</a> (QMouseEvent *)</td></tr>
- <tr class="separator:ab2da1e24b1456b223eaa826d8e0a3a81"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6545bc6e25018253c59fc27a48eb948f"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a6545bc6e25018253c59fc27a48eb948f">widgetMouseMoveEvent</a> (QMouseEvent *)</td></tr>
- <tr class="separator:a6545bc6e25018253c59fc27a48eb948f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7ed4e89f6c52b841e20ad497af4b4ebc"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a7ed4e89f6c52b841e20ad497af4b4ebc">widgetKeyPressEvent</a> (QKeyEvent *)</td></tr>
- <tr class="separator:a7ed4e89f6c52b841e20ad497af4b4ebc"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8bd447df4a30299bbc8e6b6d3e2e2f9f"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#a8bd447df4a30299bbc8e6b6d3e2e2f9f">widgetKeyReleaseEvent</a> (QKeyEvent *)</td></tr>
- <tr class="separator:a8bd447df4a30299bbc8e6b6d3e2e2f9f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acd76ea518bd9267a45115d2c6ce19353"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#acd76ea518bd9267a45115d2c6ce19353">paintEvent</a> (QPaintEvent *)</td></tr>
- <tr class="memdesc:acd76ea518bd9267a45115d2c6ce19353"><td class="mdescLeft"> </td><td class="mdescRight">Paint event. <a href="class_qwt_panner.html#acd76ea518bd9267a45115d2c6ce19353">More...</a><br /></td></tr>
- <tr class="separator:acd76ea518bd9267a45115d2c6ce19353"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aac1d7537025f41d2d0dfc261c56dac8e"><td class="memItemLeft" align="right" valign="top">virtual QBitmap </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#aac1d7537025f41d2d0dfc261c56dac8e">contentsMask</a> () const</td></tr>
- <tr class="memdesc:aac1d7537025f41d2d0dfc261c56dac8e"><td class="mdescLeft"> </td><td class="mdescRight">Calculate a mask for the contents of the panned widget. <a href="class_qwt_panner.html#aac1d7537025f41d2d0dfc261c56dac8e">More...</a><br /></td></tr>
- <tr class="separator:aac1d7537025f41d2d0dfc261c56dac8e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac5ac83293f33b7b71ae9f49217d53fec"><td class="memItemLeft" align="right" valign="top">virtual QPixmap </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_panner.html#ac5ac83293f33b7b71ae9f49217d53fec">grab</a> () const</td></tr>
- <tr class="separator:ac5ac83293f33b7b71ae9f49217d53fec"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p><a class="el" href="class_qwt_panner.html" title="QwtPanner provides panning of a widget.">QwtPanner</a> provides panning of a widget. </p>
- <p><a class="el" href="class_qwt_panner.html" title="QwtPanner provides panning of a widget.">QwtPanner</a> grabs the contents of a widget, that can be dragged in all directions. The offset between the start and the end position is emitted by the panned signal.</p>
- <p><a class="el" href="class_qwt_panner.html" title="QwtPanner provides panning of a widget.">QwtPanner</a> grabs the content of the widget into a pixmap and moves the pixmap around, without initiating any repaint events for the widget. Areas, that are not part of content are not painted while panning. This makes panning fast enough for widgets, where repaints are too slow for mouse movements.</p>
- <p>For widgets, where repaints are very fast it might be better to implement panning manually by mapping mouse events into paint events. </p>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="af5482be26d69a64c3880653265240736"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af5482be26d69a64c3880653265240736">◆ </a></span>QwtPanner()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QwtPanner::QwtPanner </td>
- <td>(</td>
- <td class="paramtype">QWidget * </td>
- <td class="paramname"><em>parent</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Creates an panner that is enabled for the left mouse button.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">parent</td><td>Parent widget to be panned </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="aac1d7537025f41d2d0dfc261c56dac8e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aac1d7537025f41d2d0dfc261c56dac8e">◆ </a></span>contentsMask()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QBitmap QwtPanner::contentsMask </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Calculate a mask for the contents of the panned widget. </p>
- <p>Sometimes only parts of the contents of a widget should be panned. F.e. for a widget with a styled background with rounded borders only the area inside of the border should be panned.</p>
- <dl class="section return"><dt>Returns</dt><dd>An empty bitmap, indicating no mask </dd></dl>
- <p>Reimplemented in <a class="el" href="class_qwt_plot_panner.html#aed84a9594d3b1539a4378b3026a8d431">QwtPlotPanner</a>.</p>
- </div>
- </div>
- <a id="a1ebb1cc406fa3d30df0e7dd7a541667d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1ebb1cc406fa3d30df0e7dd7a541667d">◆ </a></span>cursor()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const QCursor QwtPanner::cursor </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Cursor that is active while panning </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#ac8b0625fe155fff0132df85727f54a3e">setCursor()</a> </dd></dl>
- </div>
- </div>
- <a id="a06b8eea86d4dcbe361c4af41a263f2cb"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a06b8eea86d4dcbe361c4af41a263f2cb">◆ </a></span>eventFilter()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtPanner::eventFilter </td>
- <td>(</td>
- <td class="paramtype">QObject * </td>
- <td class="paramname"><em>object</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">QEvent * </td>
- <td class="paramname"><em>event</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Event filter. </p>
- <p>When <a class="el" href="class_qwt_panner.html#a19439f534fc9fa254693948eb4f4bb5f">isEnabled()</a> is true mouse events of the observed widget are filtered.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">object</td><td>Object to be filtered </td></tr>
- <tr><td class="paramname">event</td><td>Event</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Always false, beside for paint events for the parent widget.</dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#ae002958978dcc751f9edda24e5858dd9">widgetMousePressEvent()</a>, <a class="el" href="class_qwt_panner.html#ab2da1e24b1456b223eaa826d8e0a3a81">widgetMouseReleaseEvent()</a>, <a class="el" href="class_qwt_panner.html#a6545bc6e25018253c59fc27a48eb948f">widgetMouseMoveEvent()</a> </dd></dl>
- </div>
- </div>
- <a id="ac5ac83293f33b7b71ae9f49217d53fec"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ac5ac83293f33b7b71ae9f49217d53fec">◆ </a></span>grab()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QPixmap QwtPanner::grab </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Grab the widget into a pixmap. </p><dl class="section return"><dt>Returns</dt><dd>Grabbed pixmap </dd></dl>
- <p>Reimplemented in <a class="el" href="class_qwt_plot_panner.html#abb38281cf067c76703b5f557f14bfcf5">QwtPlotPanner</a>.</p>
- </div>
- </div>
- <a id="a19439f534fc9fa254693948eb4f4bb5f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a19439f534fc9fa254693948eb4f4bb5f">◆ </a></span>isEnabled()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtPanner::isEnabled </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>true when enabled, false otherwise </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#a43e06c262c945fc7faeb729539bbde58" title="En/disable the panner.">setEnabled</a>, <a class="el" href="class_qwt_panner.html#a06b8eea86d4dcbe361c4af41a263f2cb" title="Event filter.">eventFilter()</a> </dd></dl>
- </div>
- </div>
- <a id="aa69c32aae501021f01cb7c833172986c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa69c32aae501021f01cb7c833172986c">◆ </a></span>isOrientationEnabled()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtPanner::isOrientationEnabled </td>
- <td>(</td>
- <td class="paramtype">Qt::Orientation </td>
- <td class="paramname"><em>o</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>True if an orientation is enabled </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#a0df413d3d5a6bc4f002e87f3b269214e" title="Return the orientation, where paning is enabled.">orientations()</a>, <a class="el" href="class_qwt_panner.html#aaa71a8b6f7f46ae8f5a8084094d7bd9a">setOrientations()</a> </dd></dl>
- </div>
- </div>
- <a id="aa45ae2f4d6d20a83783898dd86d0b595"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa45ae2f4d6d20a83783898dd86d0b595">◆ </a></span>moved</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::moved </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>dx</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>dy</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">signal</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Signal emitted, while the widget moved, but panning is not finished.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">dx</td><td>Offset in horizontal direction </td></tr>
- <tr><td class="paramname">dy</td><td>Offset in vertical direction </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="acd76ea518bd9267a45115d2c6ce19353"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#acd76ea518bd9267a45115d2c6ce19353">◆ </a></span>paintEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::paintEvent </td>
- <td>(</td>
- <td class="paramtype">QPaintEvent * </td>
- <td class="paramname"><em>event</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Paint event. </p>
- <p>Repaint the grabbed pixmap on its current position and fill the empty spaces by the background of the parent widget.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">event</td><td>Paint event </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="ae9ce78e6f9ae73317af29b2dc5df7372"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae9ce78e6f9ae73317af29b2dc5df7372">◆ </a></span>panned</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::panned </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>dx</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>dy</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">signal</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Signal emitted, when panning is done</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">dx</td><td>Offset in horizontal direction </td></tr>
- <tr><td class="paramname">dy</td><td>Offset in vertical direction </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="acbb1b9e30214354708e1d75db6b78289"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#acbb1b9e30214354708e1d75db6b78289">◆ </a></span>setAbortKey()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::setAbortKey </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>key</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">Qt::KeyboardModifiers </td>
- <td class="paramname"><em>modifiers</em> = <code>Qt::NoModifier</code> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Change the abort key The defaults are Qt::Key_Escape and Qt::NoModifiers</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">key</td><td>Key ( See Qt::Keycode ) </td></tr>
- <tr><td class="paramname">modifiers</td><td>Keyboard modifiers </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="ac8b0625fe155fff0132df85727f54a3e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ac8b0625fe155fff0132df85727f54a3e">◆ </a></span>setCursor()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::setCursor </td>
- <td>(</td>
- <td class="paramtype">const QCursor & </td>
- <td class="paramname"><em>cursor</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Change the cursor, that is active while panning The default is the cursor of the parent widget.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">cursor</td><td>New cursor</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#ac8b0625fe155fff0132df85727f54a3e">setCursor()</a> </dd></dl>
- </div>
- </div>
- <a id="a43e06c262c945fc7faeb729539bbde58"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a43e06c262c945fc7faeb729539bbde58">◆ </a></span>setEnabled()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::setEnabled </td>
- <td>(</td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>on</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>En/disable the panner. </p>
- <p>When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">on</td><td>true or false </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#a19439f534fc9fa254693948eb4f4bb5f">isEnabled()</a>, <a class="el" href="class_qwt_panner.html#a06b8eea86d4dcbe361c4af41a263f2cb" title="Event filter.">eventFilter()</a> </dd></dl>
- </div>
- </div>
- <a id="a6f138454b2c1d7e814ae1975d6a7b8be"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6f138454b2c1d7e814ae1975d6a7b8be">◆ </a></span>setMouseButton()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::setMouseButton </td>
- <td>(</td>
- <td class="paramtype">Qt::MouseButton </td>
- <td class="paramname"><em>button</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">Qt::KeyboardModifiers </td>
- <td class="paramname"><em>modifiers</em> = <code>Qt::NoModifier</code> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Change the mouse button and modifiers used for panning The defaults are Qt::LeftButton and Qt::NoModifier </p>
- </div>
- </div>
- <a id="aaa71a8b6f7f46ae8f5a8084094d7bd9a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aaa71a8b6f7f46ae8f5a8084094d7bd9a">◆ </a></span>setOrientations()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::setOrientations </td>
- <td>(</td>
- <td class="paramtype">Qt::Orientations </td>
- <td class="paramname"><em>o</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the orientations, where panning is enabled The default value is in both directions: Qt::Horizontal | Qt::Vertical</p>
- <p>/param o Orientation </p>
- </div>
- </div>
- <a id="a7ed4e89f6c52b841e20ad497af4b4ebc"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a7ed4e89f6c52b841e20ad497af4b4ebc">◆ </a></span>widgetKeyPressEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::widgetKeyPressEvent </td>
- <td>(</td>
- <td class="paramtype">QKeyEvent * </td>
- <td class="paramname"><em>keyEvent</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handle a key press event for the observed widget.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">keyEvent</td><td>Key event </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#a06b8eea86d4dcbe361c4af41a263f2cb" title="Event filter.">eventFilter()</a>, <a class="el" href="class_qwt_panner.html#a8bd447df4a30299bbc8e6b6d3e2e2f9f">widgetKeyReleaseEvent()</a> </dd></dl>
- </div>
- </div>
- <a id="a8bd447df4a30299bbc8e6b6d3e2e2f9f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8bd447df4a30299bbc8e6b6d3e2e2f9f">◆ </a></span>widgetKeyReleaseEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::widgetKeyReleaseEvent </td>
- <td>(</td>
- <td class="paramtype">QKeyEvent * </td>
- <td class="paramname"><em>keyEvent</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handle a key release event for the observed widget.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">keyEvent</td><td>Key event </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#a06b8eea86d4dcbe361c4af41a263f2cb" title="Event filter.">eventFilter()</a>, <a class="el" href="class_qwt_panner.html#a8bd447df4a30299bbc8e6b6d3e2e2f9f">widgetKeyReleaseEvent()</a> </dd></dl>
- </div>
- </div>
- <a id="a6545bc6e25018253c59fc27a48eb948f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6545bc6e25018253c59fc27a48eb948f">◆ </a></span>widgetMouseMoveEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::widgetMouseMoveEvent </td>
- <td>(</td>
- <td class="paramtype">QMouseEvent * </td>
- <td class="paramname"><em>mouseEvent</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handle a mouse move event for the observed widget.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">mouseEvent</td><td>Mouse event </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#a06b8eea86d4dcbe361c4af41a263f2cb" title="Event filter.">eventFilter()</a>, <a class="el" href="class_qwt_panner.html#ae002958978dcc751f9edda24e5858dd9">widgetMousePressEvent()</a>, <a class="el" href="class_qwt_panner.html#ab2da1e24b1456b223eaa826d8e0a3a81">widgetMouseReleaseEvent()</a> </dd></dl>
- </div>
- </div>
- <a id="ae002958978dcc751f9edda24e5858dd9"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae002958978dcc751f9edda24e5858dd9">◆ </a></span>widgetMousePressEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::widgetMousePressEvent </td>
- <td>(</td>
- <td class="paramtype">QMouseEvent * </td>
- <td class="paramname"><em>mouseEvent</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handle a mouse press event for the observed widget.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">mouseEvent</td><td>Mouse event </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#a06b8eea86d4dcbe361c4af41a263f2cb" title="Event filter.">eventFilter()</a>, <a class="el" href="class_qwt_panner.html#ab2da1e24b1456b223eaa826d8e0a3a81">widgetMouseReleaseEvent()</a>, <a class="el" href="class_qwt_panner.html#a6545bc6e25018253c59fc27a48eb948f">widgetMouseMoveEvent()</a>, </dd></dl>
- </div>
- </div>
- <a id="ab2da1e24b1456b223eaa826d8e0a3a81"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab2da1e24b1456b223eaa826d8e0a3a81">◆ </a></span>widgetMouseReleaseEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPanner::widgetMouseReleaseEvent </td>
- <td>(</td>
- <td class="paramtype">QMouseEvent * </td>
- <td class="paramname"><em>mouseEvent</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handle a mouse release event for the observed widget.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">mouseEvent</td><td>Mouse event </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_panner.html#a06b8eea86d4dcbe361c4af41a263f2cb" title="Event filter.">eventFilter()</a>, <a class="el" href="class_qwt_panner.html#ae002958978dcc751f9edda24e5858dd9">widgetMousePressEvent()</a>, <a class="el" href="class_qwt_panner.html#a6545bc6e25018253c59fc27a48eb948f">widgetMouseMoveEvent()</a>, </dd></dl>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="class_qwt_panner.html">QwtPanner</a></li>
- <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
- </ul>
- </div>
- </body>
- </html>
|