def invalidate_rect(self, r): self._ns_inner_view.setNeedsDisplayInRect_(rect_to_ns_rect(r))
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)