From 2111a378e93022377ca7ab9d757437ab98bad045 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Tue, 26 Dec 2023 22:09:43 +0100 Subject: [PATCH] Add deprecated `Window::set_cursor_icon()` --- src/window.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/window.rs b/src/window.rs index 7257e16b23..bdede37ce5 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