Gets the coords of the View @return: A tuple containing the View's coordinates ((L, T), (R, B))
(self)
| 790 | return x + hx + wvx + pwx, y + hy + wvy - statusBarOffset + pwy |
| 791 | |
| 792 | def getCoords(self): |
| 793 | """ |
| 794 | Gets the coords of the View |
| 795 | |
| 796 | @return: A tuple containing the View's coordinates ((L, T), (R, B)) |
| 797 | """ |
| 798 | |
| 799 | if DEBUG_COORDS: |
| 800 | print("getCoords(%s %s ## %s)" % (self.getClass(), self.getId(), self.getUniqueId()), file=sys.stderr) |
| 801 | |
| 802 | (x, y) = self.getXY() |
| 803 | w = self.getWidth() |
| 804 | h = self.getHeight() |
| 805 | return (x, y), (x + w, y + h) |
| 806 | |
| 807 | def getPositionAndSize(self): |
| 808 | """ |