#[non_exhaustive]pub enum PresentationCursor {
Default,
Pointer,
Text,
ResizeX,
ResizeY,
}Expand description
Provider-neutral cursor intent retained while a presentation is unavailable.
Hosts map these roles to their platform cursor set. The enum is non-exhaustive for downstream consumers.
§Examples
use ailloli_ui_runtime::app::PresentationCursor;
assert_ne!(PresentationCursor::Default, PresentationCursor::Pointer);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
Platform default arrow/pointer.
Pointer
Clickable-link or button pointer.
Text
Text insertion cursor.
ResizeX
Horizontal resize cursor.
ResizeY
Vertical resize cursor.
Trait Implementations§
Source§impl Clone for PresentationCursor
impl Clone for PresentationCursor
Source§fn clone(&self) -> PresentationCursor
fn clone(&self) -> PresentationCursor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresentationCursor
impl Debug for PresentationCursor
Source§impl PartialEq for PresentationCursor
impl PartialEq for PresentationCursor
impl Copy for PresentationCursor
impl Eq for PresentationCursor
impl StructuralPartialEq for PresentationCursor
Auto Trait Implementations§
impl Freeze for PresentationCursor
impl RefUnwindSafe for PresentationCursor
impl Send for PresentationCursor
impl Sync for PresentationCursor
impl Unpin for PresentationCursor
impl UnwindSafe for PresentationCursor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.