Loading...
Searching...
No Matches
score::InfiniteScroller Struct Reference
Static Public Member Functions | |
| static void | start (QGraphicsItem &self, double orig) |
| static void | move_free (QGraphicsSceneMouseEvent *event) |
| static double | move (QGraphicsSceneMouseEvent *event) |
| static void | stop (QGraphicsItem &self, QGraphicsSceneMouseEvent *event) |
| static void | abort (QGraphicsItem &self) |
| static QPointF | relativeMotion (QGraphicsSceneMouseEvent *event) |
| static bool | holdsPointer () |
| static void | cancel () |
| Ends any relative-motion session in progress, without touching the cursor. | |
Static Public Attributes | |
| static QRectF | currentGeometry {} |
| static double | origValue {} |
| static double | currentSpeed {} |
| static double | currentDelta {} |
Member Function Documentation
◆ abort()
|
static |
stop() for a drag that ends without a release event to end it on: undoes what start() did to the cursor, but cannot put it back where the press was, there being no press position to read. A no-op for an item that is not the one currently dragging, so a control cleaning up after itself cannot tear down someone else's session.
◆ holdsPointer()
|
static |
Whether the platform is holding the pointer on the press point, so that a caller keeping its own cursor knows whether hiding it is safe.
◆ relativeMotion()
|
static |
Motion for a drag that is not a vertical value scroll: the platform's relative delta while it holds the pointer, the change in pointer position otherwise. Both axes, since the caller decides what they mean.
The documentation for this struct was generated from the following files:
- InfiniteScroller.hpp
- InfiniteScroller.cpp