Add deprecated Window::set_cursor_icon() (#3329)

This commit is contained in:
daxpedda 2023-12-26 22:40:43 +01:00 committed by GitHub
parent 658f49b014
commit 4f295e0c94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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