pub struct LongPress {
pub target: Target,
pub target_offset: Rect,
pub duration: i32,
pub contact: i32,
pub pressure: i32,
}Expand description
Long press action.
Performs a sustained press at the target position.
Fields§
§target: TargetPress target position. Default: recognized position.
target_offset: RectOffset applied to target.
duration: i32Press duration in milliseconds. Default: 1000.
contact: i32Touch contact/button index. Default: 0.
pressure: i32Touch pressure. Default: 1.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LongPress
impl<'de> Deserialize<'de> for LongPress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LongPress
impl RefUnwindSafe for LongPress
impl Send for LongPress
impl Sync for LongPress
impl Unpin for LongPress
impl UnwindSafe for LongPress
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