pub struct DispatchTouchEventCommandBuilder { /* private fields */ }Available on crate feature
Input only.Implementations§
Source§impl DispatchTouchEventCommandBuilder
impl DispatchTouchEventCommandBuilder
Sourcepub fn type(&mut self, v: DispatchTouchEventCommandType) -> &mut Self
pub fn type(&mut self, v: DispatchTouchEventCommandType) -> &mut Self
Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one.
Sourcepub fn touch_points(&mut self, v: Vec<TouchPoint>) -> &mut Self
pub fn touch_points(&mut self, v: Vec<TouchPoint>) -> &mut Self
Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one.
Sourcepub fn modifiers(&mut self, v: u32) -> &mut Self
pub fn modifiers(&mut self, v: u32) -> &mut Self
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Sourcepub fn timestamp(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn timestamp(&mut self, v: TimeSinceEpoch) -> &mut Self
Time at which the event occurred.
pub fn build(&mut self) -> Result<DispatchTouchEventCommand, &'static str>
Trait Implementations§
Source§impl Clone for DispatchTouchEventCommandBuilder
impl Clone for DispatchTouchEventCommandBuilder
Source§fn clone(&self) -> DispatchTouchEventCommandBuilder
fn clone(&self) -> DispatchTouchEventCommandBuilder
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 DispatchTouchEventCommandBuilder
impl RefUnwindSafe for DispatchTouchEventCommandBuilder
impl Send for DispatchTouchEventCommandBuilder
impl Sync for DispatchTouchEventCommandBuilder
impl Unpin for DispatchTouchEventCommandBuilder
impl UnwindSafe for DispatchTouchEventCommandBuilder
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