コード例 #1
0
 def invalidate_rect(self, r):
     self._ns_inner_view.setNeedsDisplayInRect_(rect_to_ns_rect(r))
コード例 #2
0
 def draw(self, canvas, src_rect, dst_rect):
     ns_src_rect = rect_to_ns_rect(src_rect)
     ns_dst_rect = rect_to_ns_rect(dst_rect)
     self._ns_image.drawInRect_fromRect_operation_fraction_(
         ns_dst_rect, ns_src_rect, NSCompositeSourceOver, 1.0)
コード例 #3
0
 def invalidate_rect(self, r):
     self._ns_inner_view.setNeedsDisplayInRect_(rect_to_ns_rect(r))
コード例 #4
0
ファイル: ImageBase.py プロジェクト: mnabeelp/PyGUI
 def draw(self, canvas, src_rect, dst_rect):
     ns_src_rect = rect_to_ns_rect(src_rect)
     ns_dst_rect = rect_to_ns_rect(dst_rect)
     self._ns_image.drawInRect_fromRect_operation_fraction_(
         ns_dst_rect, ns_src_rect, NSCompositeSourceOver, 1.0)