Skip to content

Bbox Drag

app.ui.qt.widgets.preview.layer_bbox.bbox_drag

View source code

Module for bbox drag; implements the Qt presentation components.

See Also

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.

BOTTOM = auto() class-attribute instance-attribute

BOT_LEFT = auto() class-attribute instance-attribute

BOT_RIGHT = auto() class-attribute instance-attribute

DRAW = auto() class-attribute instance-attribute

LEFT = auto() class-attribute instance-attribute

MOVE = auto() class-attribute instance-attribute

NONE = auto() class-attribute instance-attribute

RIGHT = auto() class-attribute instance-attribute

TOP = auto() class-attribute instance-attribute

TOP_LEFT = auto() class-attribute instance-attribute

TOP_RIGHT = auto() class-attribute instance-attribute