MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / boundingRect

Method boundingRect

SLiCAP/schematic/model_item.py:75–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 # ── geometry ──────────────────────────────────────────────────────────────
74
75 def boundingRect(self) -> QRectF:
76 if self._renderer is not None:
77 return QRectF(0, 0, self.display_width, self.display_height)
78 return self._natural_text_rect()
79
80 def shape(self) -> QPainterPath:
81 path = QPainterPath()

Callers 2

shapeMethod · 0.95
paintMethod · 0.95

Calls 1

_natural_text_rectMethod · 0.95

Tested by

no test coverage detected