pub struct Options {
pub scale_factor: f64,
pub collect_coalesced: bool,
pub collect_predicted: bool,
}Expand description
Controls how pointer events are converted.
Fields§
§scale_factor: f64Scale factor to convert CSS pixels to physical pixels.
collect_coalesced: boolWhether to collect coalesced move samples.
collect_predicted: boolWhether to collect predicted move samples.
Implementations§
Source§impl Options
impl Options
Sourcepub fn with_scale(self, scale: f64) -> Self
pub fn with_scale(self, scale: f64) -> Self
Set the scale factor (builder style).
Sourcepub fn with_coalesced(self, enabled: bool) -> Self
pub fn with_coalesced(self, enabled: bool) -> Self
Set whether to collect coalesced samples.
Sourcepub fn with_predicted(self, enabled: bool) -> Self
pub fn with_predicted(self, enabled: bool) -> Self
Set whether to collect predicted samples.
Trait Implementations§
impl Copy for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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