mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
Add deprecated Window::set_cursor_icon() (#3329)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user