def get_invalid_rectangles(self): """Returns a list of rectangles requiring redrawing""" rects = [] r = _gem.wind_get(self.id,WF_FIRSTXYWH) while r[2] > 0 or r[3] > 0: rects.append(r) r = _gem.wind_get(self.id,WF_NEXTXYWH) return rects
def get_work_rect(self): """Returns this window's current work area rectangle""" return _gem.wind_get(self.id,WF_WORKXYWH)
def get_size(self): """Returns the window position and size""" return _gem.wind_get(self.id,WF_CURRXYWH)