MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / rect

Method rect

src/__init__.py:8572–8581  ·  view source on GitHub ↗

Rectangle ('hot area').

(self)

Source from the content-addressed store, hash-verified

8570
8571 @property
8572 def rect(self):
8573 """Rectangle ('hot area')."""
8574 CheckParent(self)
8575 # utils.py:getLinkDict() appears to expect exceptions from us, so we
8576 # ensure that we raise on error.
8577 if self.this is None or not self.this.m_internal:
8578 raise Exception( 'self.this.m_internal not available')
8579 val = JM_py_from_rect( self.this.rect())
8580 val = Rect(val)
8581 return val
8582
8583 def set_border(self, border=None, width=0, dashes=None, style=None):
8584 if type(border) is not dict:

Callers

nothing calls this directly

Calls 3

CheckParentFunction · 0.85
JM_py_from_rectFunction · 0.85
RectClass · 0.85

Tested by

no test coverage detected