MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / getPositionAndSize

Method getPositionAndSize

src/com/dtmilano/android/viewclient.py:807–817  ·  view source on GitHub ↗

Gets the position and size (X,Y, W, H) @return: A tuple containing the View's coordinates (X, Y, W, H)

(self)

Source from the content-addressed store, hash-verified

805 return (x, y), (x + w, y + h)
806
807 def getPositionAndSize(self):
808 """
809 Gets the position and size (X,Y, W, H)
810
811 @return: A tuple containing the View's coordinates (X, Y, W, H)
812 """
813
814 (x, y) = self.getXY()
815 w = self.getWidth()
816 h = self.getHeight()
817 return x, y, w, h
818
819 def getBounds(self):
820 """

Callers 7

containsPointMethod · 0.95
__init__Method · 0.80
flingBackwardMethod · 0.80
flingForwardMethod · 0.80

Calls 3

getXYMethod · 0.95
getWidthMethod · 0.95
getHeightMethod · 0.95

Tested by 2