Home
last modified time | relevance | path

Searched refs:cursor_rect (Results 1 – 2 of 2) sorted by relevance

/StarryEngine/starry_server/src/core/
H A Dwindow_manager.rs207 let cursor_rect = self.cursor_rect(); in handle_mouse_relative_event() localVariable
212 cmp::min(max_x - cursor_rect.width(), self.cursor_x.get() + event.dx), in handle_mouse_relative_event()
216 cmp::min(max_y - cursor_rect.height(), self.cursor_y.get() - event.dy), in handle_mouse_relative_event()
255 let cursor_rect = self.cursor_rect(); in update_cursor() localVariable
256 compositor().unwrap().request_redraw(cursor_rect); in update_cursor()
262 let cursor_rect = self.cursor_rect(); in update_cursor() localVariable
263 compositor().unwrap().request_redraw(cursor_rect); in update_cursor()
269 pub fn cursor_rect(&self) -> Rect { in cursor_rect() method
H A Dcompositor.rs56 let cursor_rect = window_manager.cursor_rect(); in redraw_all() localVariable
94 let cursor_intersect = rect.intersection(&cursor_rect); in redraw_all()
102 &cursor_intersect.offset(-cursor_rect.left(), -cursor_rect.top()), in redraw_all()