Bbox Drag
app.ui.qt.widgets.preview.layer_bbox.bbox_dragModule for bbox drag; implements the Qt presentation components.
See Also
get_drag_mode_for_rect_at_pos— determines the active handle modeBBoxState— stores drag state for an overlay
Layer: Presentation. Context: Implements the qt presentation components at this architectural boundary.
CORNER_CURSOR = {DragMode.TOP_LEFT: Qt.CursorShape.SizeFDiagCursor, DragMode.TOP_RIGHT: Qt.CursorShape.SizeBDiagCursor, DragMode.BOT_LEFT: Qt.CursorShape.SizeBDiagCursor, DragMode.BOT_RIGHT: Qt.CursorShape.SizeFDiagCursor, DragMode.TOP: Qt.CursorShape.SizeVerCursor, DragMode.BOTTOM: Qt.CursorShape.SizeVerCursor, DragMode.LEFT: Qt.CursorShape.SizeHorCursor, DragMode.RIGHT: Qt.CursorShape.SizeHorCursor, DragMode.MOVE: Qt.CursorShape.SizeAllCursor}
module-attribute
DragMode
Bases: Enum
Represent drag mode.
Layer: Presentation. Context: Supports user interaction and delegates application work through presentation contracts.