Add deprecated Window::set_cursor_icon() (#3329)
This commit is contained in:
parent
658f49b014
commit
4f295e0c94
1 changed files with 7 additions and 0 deletions
|
|
@ -1374,6 +1374,13 @@ impl Window {
|
||||||
.maybe_queue_on_main(move |w| w.set_cursor(cursor))
|
.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.
|
/// Changes the position of the cursor in window coordinates.
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue