Searched refs:top (Results 1 – 5 of 5) sorted by relevance
/StarryEngine/starry_server/src/base/ |
H A D | rect.rs | 42 pub fn top(&self) -> i32 { in top() method 65 let top = min(self.top(), other.top()); in container() localVariable 69 assert!(top <= bottom); in container() 71 Rect::new(left, top, right - left, bottom - top) in container() 78 let top = max(self.top(), other.top()); in intersection() localVariable 81 Rect::new(left, top, max(0, right - left), max(0, bottom - top)) in intersection() 86 self.left() <= x && self.right() >= x && self.top() <= y && self.bottom() >= y in contains()
|
H A D | display.rs | 37 rect.top() - self.y, in rect() 56 rect.top() - self.y, in roi()
|
H A D | image.rs | 31 let start = (self.rect.top() + self.i) * self.w + self.rect.left(); in next() 63 .split_at_mut(self.rect.top() as usize * self.w as usize) in next() 99 &mut data[rect.top() as usize * w as usize..][..rect.height() as usize * w as usize]; in into_iter()
|
H A D | window.rs | 101 .roi(&intersect.offset(-self_rect.left(), -self_rect.top())), in draw() 109 .roi(&intersect.offset(-self_rect.left(), -self_rect.top())), in draw()
|
/StarryEngine/starry_server/src/core/ |
H A D | compositor.rs | 102 &cursor_intersect.offset(-cursor_rect.left(), -cursor_rect.top()), in redraw_all() 122 y + display_redraw.top() - display.y, in redraw_all() 124 let offset = (((y + display_redraw.top()) * SCREEN_WIDTH as i32) in redraw_all()
|