diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-08-04 16:18:24 +1200 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-08-04 16:18:24 +1200 |
commit | c141d8fe8bb9115ccb953ed6ea5b0b04bc828125 (patch) | |
tree | 01a9967c607a75141a915d340185b2952a08e9f8 /src/window_controller.rs | |
parent | e85f41bdf72b31f6d9224cb0d9f71986cc12a15e (diff) | |
download | phosphor-c141d8fe8bb9115ccb953ed6ea5b0b04bc828125.zip |
Unify is_cursor_visible and cursor_icon callbacks
It makes sense to handle all cursor icon state at once.
Diffstat (limited to 'src/window_controller.rs')
-rw-r--r-- | src/window_controller.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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<CursorIcon> { None } + fn cursor(&mut self) -> Option<CursorIcon> { 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) {} |