获取矩形数据 / Get rectangle data Returns: Rect: 矩形对象 (x, y, width, height) / Rectangle object (x, y, width, height)
(self)
| 559 | Library.framework().MaaRectDestroy(self._handle) |
| 560 | |
| 561 | def get(self) -> Rect: |
| 562 | """获取矩形数据 / Get rectangle data |
| 563 | |
| 564 | Returns: |
| 565 | Rect: 矩形对象 (x, y, width, height) / Rectangle object (x, y, width, height) |
| 566 | """ |
| 567 | x = Library.framework().MaaRectGetX(self._handle) |
| 568 | y = Library.framework().MaaRectGetY(self._handle) |
| 569 | w = Library.framework().MaaRectGetW(self._handle) |
| 570 | h = Library.framework().MaaRectGetH(self._handle) |
| 571 | |
| 572 | return Rect(x, y, w, h) |
| 573 | |
| 574 | def set(self, value: RectType) -> bool: |
| 575 | """设置矩形数据 / Set rectangle data |
no test coverage detected