pub struct PointerIconState { /* private fields */ }Expand description
The icon one window’s pointer shows, with the change its platform has not applied yet. The app context keeps one for callers of the free functions below; a shell keeps one per surface, because the OS owns cursors per window.
Implementations§
Source§impl PointerIconState
impl PointerIconState
Sourcepub fn set(&self, icon: PointerIcon)
pub fn set(&self, icon: PointerIcon)
Requests icon; a request for the icon already held changes nothing.
Sourcepub fn take_change(&self) -> Option<PointerIcon>
pub fn take_change(&self) -> Option<PointerIcon>
The change the platform has not applied yet, taken.
Sourcepub fn current(&self) -> PointerIcon
pub fn current(&self) -> PointerIcon
The icon currently requested, applied or not.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PointerIconState
impl !RefUnwindSafe for PointerIconState
impl !Sync for PointerIconState
impl Send for PointerIconState
impl Unpin for PointerIconState
impl UnsafeUnpin for PointerIconState
impl UnwindSafe for PointerIconState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more