From c141d8fe8bb9115ccb953ed6ea5b0b04bc828125 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sun, 4 Aug 2024 16:18:24 +1200 Subject: Unify is_cursor_visible and cursor_icon callbacks It makes sense to handle all cursor icon state at once. --- src/window_controller.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/window_controller.rs') diff --git a/src/window_controller.rs b/src/window_controller.rs index fe23f53..848730d 100644 --- a/src/window_controller.rs +++ b/src/window_controller.rs @@ -13,11 +13,10 @@ pub trait WindowController { fn fullscreen(&self) -> bool { false } fn pixel_scale(&self) -> NonZeroU32 { NON_ZERO_ONE } - fn cursor_icon(&mut self) -> Option { None } + fn cursor(&mut self) -> Option { Some(CursorIcon::Default) } fn render_request(&mut self) -> RenderRequest { RenderRequest::None } fn is_visible(&self) -> bool { true } - fn is_cursor_visible(&self) -> bool { true } fn on_init(&mut self) {} fn on_resize(&mut self, _size: Dimensions) {} -- cgit v1.2.3-70-g09d2