From 4f295e0c94c52de69cf1c9a80fbe5fff970bff12 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Tue, 26 Dec 2023 22:40:43 +0100 Subject: [PATCH] Add deprecated `Window::set_cursor_icon()` (#3329) --- src/window.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/window.rs b/src/window.rs index 7257e16b..bdede37c 100644 --- a/src/window.rs +++ b/src/window.rs @@ -1374,6 +1374,13 @@ impl Window { .maybe_queue_on_main(move |w| w.set_cursor(cursor)) } + /// Deprecated! Use [`Window::set_cursor()`] instead. + #[deprecated = "Renamed to `set_cursor`"] + #[inline] + pub fn set_cursor_icon(&self, icon: CursorIcon) { + self.set_cursor(icon) + } + /// Changes the position of the cursor in window coordinates. /// /// ```no_run