pub struct SetTouchEmulationEnabledBuilder { /* private fields */ }Expand description
Builder for SetTouchEmulationEnabled.
Implementations§
Source§impl SetTouchEmulationEnabledBuilder
impl SetTouchEmulationEnabledBuilder
Sourcepub fn enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether the touch event emulation should be enabled.
Sourcepub fn max_touch_points<VALUE: Into<JsUInt>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn max_touch_points<VALUE: Into<JsUInt>>( &mut self, value: VALUE, ) -> &mut Self
Maximum touch points supported. Defaults to one.
Sourcepub fn build(
&self,
) -> Result<SetTouchEmulationEnabled, SetTouchEmulationEnabledBuilderError>
pub fn build( &self, ) -> Result<SetTouchEmulationEnabled, SetTouchEmulationEnabledBuilderError>
Trait Implementations§
Source§impl Clone for SetTouchEmulationEnabledBuilder
impl Clone for SetTouchEmulationEnabledBuilder
Source§fn clone(&self) -> SetTouchEmulationEnabledBuilder
fn clone(&self) -> SetTouchEmulationEnabledBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SetTouchEmulationEnabledBuilder
impl RefUnwindSafe for SetTouchEmulationEnabledBuilder
impl Send for SetTouchEmulationEnabledBuilder
impl Sync for SetTouchEmulationEnabledBuilder
impl Unpin for SetTouchEmulationEnabledBuilder
impl UnsafeUnpin for SetTouchEmulationEnabledBuilder
impl UnwindSafe for SetTouchEmulationEnabledBuilder
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