Module implementing a grabber widget for a rectangular snapshot region.
None |
SnapshotRegionGrabber | Class implementing a grabber widget for a rectangular snapshot region. |
drawRect | Module function to draw a rectangle with the given parameters. |
Class implementing a grabber widget for a rectangular snapshot region.
Ellipse |
FillMask |
Rectangle |
StrokeMask |
None |
SnapshotRegionGrabber | Constructor |
__grabRect | Private method to grab the selected rectangle (i.e. |
__handleMask | Private method to calculate the handle mask. |
__initialize | Private slot to initialize the rest of the widget. |
__limitPointToRect | Private method to limit the given point to the given rectangle. |
__normalizeSelection | Private method to normalize the given selection. |
__updateHandles | Private method to update the handles. |
keyPressEvent | Protected method to handle key presses. |
mouseDoubleClickEvent | Protected method to handle mouse double clicks. |
mouseMoveEvent | Protected method to handle mouse movements. |
mousePressEvent | Protected method to handle mouse button presses. |
mouseReleaseEvent | Protected method to handle mouse button releases. |
paintEvent | Protected method handling paint events. |
resizeEvent | Protected method to handle resize events. |
None |
Constructor
Private method to grab the selected rectangle (i.e. do the snapshot).
Private method to calculate the handle mask.
Private slot to initialize the rest of the widget.
Private method to limit the given point to the given rectangle.
Private method to normalize the given selection.
Private method to update the handles.
Protected method to handle key presses.
Protected method to handle mouse double clicks.
Protected method to handle mouse movements.
Protected method to handle mouse button presses.
Protected method to handle mouse button releases.
Protected method handling paint events.
Protected method to handle resize events.
Module function to draw a rectangle with the given parameters.