pub struct TouchClickEvent {
pub position: Point<Pixels>,
pub tap_count: usize,
pub long_press: bool,
}Expand description
重导出交互系统相关类型(Focusable、ClickArea 等) 由触摸屏上识别的轻触手势生成的点击事件。
Fields§
§position: Point<Pixels>轻触在窗口坐标中的位置。
tap_count: usize该位置连续轻触的次数(双击 = 2),
类似于鼠标的 click_count。
long_press: bool是否是长按而非轻触。长按是触摸的次要激活方式: 它们与右键点击一起发送到辅助点击监听器, 而非主点击监听器。
Trait Implementations§
Source§impl Clone for TouchClickEvent
impl Clone for TouchClickEvent
Source§impl Debug for TouchClickEvent
impl Debug for TouchClickEvent
Auto Trait Implementations§
impl Forget for TouchClickEvent
impl Freeze for TouchClickEvent
impl Move for TouchClickEvent
impl RefUnwindSafe for TouchClickEvent
impl Send for TouchClickEvent
impl Sync for TouchClickEvent
impl Unpin for TouchClickEvent
impl UnsafeUnpin for TouchClickEvent
impl UnwindSafe for TouchClickEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more