Bbox State
app.ui.qt.widgets.preview.layer_bbox.bbox_stateModule for bbox state; implements the Qt presentation components.
See Also
DragMode— identifies the active drag interactioninteraction— updates this state during pointer gestures
Layer: Presentation. Context: Implements the qt presentation components at this architectural boundary.
BBoxState
dataclass
Represent bbox state.
| ATTRIBUTE | DESCRIPTION |
|---|---|
rect |
Stored rect value.
TYPE:
|
drag_mode |
Stored drag mode value.
TYPE:
|
drag_origin |
Stored drag origin value.
TYPE:
|
rect_at_drag_start |
Stored rect at drag start value.
TYPE:
|
Layer: Presentation. Context: Supports user interaction and delegates application work through presentation contracts.
drag_mode: DragMode = DragMode.NONE
class-attribute
instance-attribute
drag_origin: QPoint = field(default_factory=QPoint)
class-attribute
instance-attribute
has_valid_rect: bool
property
Return whether the rectangle has positive width and height.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|