pub struct WearableCrownInput { /* private fields */ }Expand description
Normalized rotary crown or rotating bezel rotation event payload.
Implementations§
Source§impl WearableCrownInput
impl WearableCrownInput
pub fn get_detents(&self) -> f32
pub fn get_mut_detents(&mut self) -> &mut f32
pub fn set_detents(&mut self, val: f32) -> &mut Self
pub fn get_velocity(&self) -> f32
pub fn get_mut_velocity(&mut self) -> &mut f32
pub fn set_velocity(&mut self, val: f32) -> &mut Self
pub fn get_mode(&self) -> WearableCrownMode
pub fn get_mut_mode(&mut self) -> &mut WearableCrownMode
pub fn set_mode(&mut self, val: WearableCrownMode) -> &mut Self
pub fn get_haptic_detent(&self) -> bool
pub fn get_mut_haptic_detent(&mut self) -> &mut bool
pub fn set_haptic_detent(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for WearableCrownInput
impl Clone for WearableCrownInput
impl Copy for WearableCrownInput
Source§impl Debug for WearableCrownInput
impl Debug for WearableCrownInput
Source§impl PartialEq for WearableCrownInput
impl PartialEq for WearableCrownInput
impl StructuralPartialEq for WearableCrownInput
Auto Trait Implementations§
impl Forget for WearableCrownInput
impl Freeze for WearableCrownInput
impl Move for WearableCrownInput
impl RefUnwindSafe for WearableCrownInput
impl Send for WearableCrownInput
impl Sync for WearableCrownInput
impl Unpin for WearableCrownInput
impl UnsafeUnpin for WearableCrownInput
impl UnwindSafe for WearableCrownInput
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