コード例 #1
0
ファイル: window.py プロジェクト: fans656/eos-gui-prototype
 def close_rect(self):
     border = self.border_width()
     rc = Rect(border, border, self.width(), self.caption_height())
     margin = self.system_control_margin()
     side = rc.height() - 2 * margin
     rc.set_top(rc.top() + margin)
     rc.set_bottom(rc.bottom() - margin)
     rc.set_left(rc.right() - side)
     rc.translate(-margin, 0)
     return rc