#[non_exhaustive]pub struct MousePointerInfo {
pub sensor_resolution: u16,
pub pointer_acceleration: PointerAcceleration,
pub suggest_os_ballistics: bool,
pub suggest_vertical_tuning: bool,
}Expand description
Mouse-pointer information returned by
MousePointerFeature::get_mouse_pointer_info.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sensor_resolution: u16Typical sensor resolution on a standard surface, in 1-DPI steps.
Real-world resolution may differ from this value by up to ±20% depending on the surface.
pointer_acceleration: PointerAccelerationThe acceleration curve the device suggests.
suggest_os_ballistics: boolWhether the device suggests using the OS-native ballistics.
false means the host may override the OS ballistics if it can; true
means the device suggests keeping the OS-native ballistics.
suggest_vertical_tuning: boolWhether the device suggests offering vertical-orientation tuning.
true for devices such as trackballs, where the host can let the user
fine-tune X/Y movement relative to cursor movement.
Trait Implementations§
Source§impl Clone for MousePointerInfo
impl Clone for MousePointerInfo
Source§fn clone(&self) -> MousePointerInfo
fn clone(&self) -> MousePointerInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MousePointerInfo
Source§impl Debug for MousePointerInfo
impl Debug for MousePointerInfo
impl Eq for MousePointerInfo
Source§impl Hash for MousePointerInfo
impl Hash for MousePointerInfo
Source§impl PartialEq for MousePointerInfo
impl PartialEq for MousePointerInfo
impl StructuralPartialEq for MousePointerInfo
Auto Trait Implementations§
impl Freeze for MousePointerInfo
impl RefUnwindSafe for MousePointerInfo
impl Send for MousePointerInfo
impl Sync for MousePointerInfo
impl Unpin for MousePointerInfo
impl UnsafeUnpin for MousePointerInfo
impl UnwindSafe for MousePointerInfo
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