MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / get

Method get

source/binding/Python/maa/buffer.py:561–572  ·  view source on GitHub ↗

获取矩形数据 / Get rectangle data Returns: Rect: 矩形对象 (x, y, width, height) / Rectangle object (x, y, width, height)

(self)

Source from the content-addressed store, hash-verified

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

Callers 5

get_action_detailMethod · 0.95
getMethod · 0.45
getMethod · 0.45

Calls 2

RectClass · 0.85
frameworkMethod · 0.80

Tested by

no test coverage detected