Skip to content

Geometry Ui

app.ui.qt.shared.geometry_ui

View source code

Module for geometry ui; implements the Qt presentation components.

See Also

Layer: Presentation. Context: Implements the qt presentation components at this architectural boundary.

get_handle_points_from_rect(rect: QRect) -> list[QPoint]

Return the eight corner and edge-midpoint handles of a rectangle.

PARAMETER DESCRIPTION
rect

Rectangle whose handle positions are calculated.

TYPE: QRect

RETURNS DESCRIPTION
list[QPoint]

Points ordered clockwise from the top-left corner, omitting the center.