Class QAccelPlot::PlotDragRect¶
ClassList > QAccelPlot > PlotDragRect
Rectangle dragged out inside the plot area, shared by rectangle zoom and data selection.
#include <PlotDragRect.hpp>
Public Functions¶
| Type | Name |
|---|---|
| bool | active () const Returns true between begin() andend() . |
| void | begin (const QPointF & position) Starts a drag at position . |
| void | end () Ends the drag. |
| void | moveTo (const QPointF & position, const QRectF & bounds) Moves the free corner to position , clamped to__bounds . |
| QRectF | rect () const Returns the normalized rectangle between the pressed and the free corner. |
Public Static Functions¶
| Type | Name |
|---|---|
| bool | meetsMinimum (const QRectF & rect, qreal minimumSize, bool checkWidth=true, bool checkHeight=true) Returns true when rect is at least__minimumSize in every checked dimension. |
| bool | modifiersMatch (Qt::KeyboardModifiers pressed, Qt::KeyboardModifiers required) Returns true when the pressed modifiers are exactly the required ones. |
Public Functions Documentation¶
function active¶
Returns true between begin() andend() .
function begin¶
Starts a drag at position .
function end¶
Ends the drag.
function moveTo¶
Moves the free corner to position , clamped to__bounds .
function rect¶
Returns the normalized rectangle between the pressed and the free corner.
Public Static Functions Documentation¶
function meetsMinimum¶
Returns true when rect is at least__minimumSize in every checked dimension.
static bool QAccelPlot::PlotDragRect::meetsMinimum (
const QRectF & rect,
qreal minimumSize,
bool checkWidth=true,
bool checkHeight=true
)
function modifiersMatch¶
Returns true when the pressed modifiers are exactly the required ones.
static bool QAccelPlot::PlotDragRect::modifiersMatch (
Qt::KeyboardModifiers pressed,
Qt::KeyboardModifiers required
)
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/PlotDragRect.hpp