pub struct DispatchTouchEventBuilder { /* private fields */ }Implementations§
Source§impl DispatchTouchEventBuilder
impl DispatchTouchEventBuilder
pub fn type(self, type: impl Into<DispatchTouchEventType>) -> Self
pub fn touch_point(self, touch_point: impl Into<TouchPoint>) -> Self
pub fn touch_points<I, S>(self, touch_points: I) -> Self
pub fn modifiers(self, modifiers: impl Into<i64>) -> Self
pub fn timestamp(self, timestamp: impl Into<TimeSinceEpoch>) -> Self
pub fn build(self) -> Result<DispatchTouchEvent, String>
Trait Implementations§
Source§impl Clone for DispatchTouchEventBuilder
impl Clone for DispatchTouchEventBuilder
Source§fn clone(&self) -> DispatchTouchEventBuilder
fn clone(&self) -> DispatchTouchEventBuilder
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 moreSource§impl Default for DispatchTouchEventBuilder
impl Default for DispatchTouchEventBuilder
Source§fn default() -> DispatchTouchEventBuilder
fn default() -> DispatchTouchEventBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DispatchTouchEventBuilder
impl RefUnwindSafe for DispatchTouchEventBuilder
impl Send for DispatchTouchEventBuilder
impl Sync for DispatchTouchEventBuilder
impl Unpin for DispatchTouchEventBuilder
impl UnsafeUnpin for DispatchTouchEventBuilder
impl UnwindSafe for DispatchTouchEventBuilder
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