fn invalidate_rect(&self, rect: kurbo::Rect) {
        tracing::trace!("invalidate_rect initiated {:?}", rect);
        // Quick check to see if we can skip the rect entirely (if it is outside the visible
        // screen).
        if rect.intersect(self.logical_size.get().to_rect()).is_empty() {
            return;
        }
        /* this would be useful for debugging over-keen invalidation by clients.
        println!(
            "{:?} {:?}",
            rect,
            self.with_data(|data| data.logical_size.to_rect())
        );
        */
        self.damaged_region.borrow_mut().add_rect(rect);
        self.schedule_deferred_task(DeferredTask::Paint);
    }
/// Request invalidation of one rectangle, which is given in display points relative to the
/// drawing area.
Request invalidation of one rectangle, which is given in display points relative to the
drawing area.
Request invalidation of one rectangle which is given in display points relative to the drawing area .
fn invalidate_rect(&self, rect: kurbo::Rect) {
        tracing::trace!("invalidate_rect initiated {:?}", rect);
        // Quick check to see if we can skip the rect entirely (if it is outside the visible
        // screen).
        if rect.intersect(self.logical_size.get().to_rect()).is_empty() {
            return;
        }
        /* this would be useful for debugging over-keen invalidation by clients.
        println!(
            "{:?} {:?}",
            rect,
            self.with_data(|data| data.logical_size.to_rect())
        );
        */
        self.damaged_region.borrow_mut().add_rect(rect);
        self.schedule_deferred_task(DeferredTask::Paint);
    }
fn invalidate_rect ( & self , rect : kurbo :: Rect ) { tracing :: trace ! ( " " rect ) ; // Quick check to see if we can skip the rect entirely (if it is outside the visible // screen). if rect . intersect ( self . logical_size . get ( ) . to_rect ( ) ) . is_empty ( ) { return ; } /* this would be useful for debugging over-keen invalidation by clients.
        println!(
            "{:?} {:?}",
            rect,
            self.with_data(|data| data.logical_size.to_rect())
        );
        */ self . damaged_region . borrow_mut ( ) . add_rect ( rect ) ; self . schedule_deferred_task ( DeferredTask :: Paint ) ; }
Request invalidation of one rectangle, which is given in display points relative to the
drawing area.
Request invalidation of one rectangle which is given in display points relative to the drawing area .
&self
rect
kurbo::Rect
&self
rect
kurbo::Rect