Lines Matching refs:rect
12 use super::rect::Rect;
17 rect: Rect, field
30 if self.i < self.rect.height() { in next()
31 let start = (self.rect.top() + self.i) * self.w + self.rect.left(); in next()
32 let end = start + self.rect.width(); in next()
44 rect: Rect, field
57 if self.i < self.rect.height() { in next()
63 .split_at_mut(self.rect.top() as usize * self.w as usize) in next()
70 let start = self.rect.left() as usize; in next()
71 let end = self.rect.left() as usize + self.rect.width() as usize; in next()
83 rect: Rect, field
96 let Self { rect, w, data } = self; in into_iter()
99 &mut data[rect.top() as usize * w as usize..][..rect.height() as usize * w as usize]; in into_iter()
101 rect, in into_iter()
113 rect: self.rect, in rows()
123 rect: self.rect, in rows_mut()
195 pub fn roi(&mut self, rect: &Rect) -> ImageRoi { in roi()
197 rect: *rect, in roi()
328 pub fn roi(&mut self, rect: &Rect) -> ImageRoi { in roi()
330 rect: *rect, in roi()