pub enum SyntheticInput {
Key(Key),
Scroll {
dx: f32,
dy: f32,
},
Click(Point),
}Expand description
Raw input for Backend::synthesize.
Variants§
Key(Key)
Scroll
Scroll-wheel / trackpad scroll over a ScrollView, in logical units
(positive = towards the end of the content).
Click(Point)
A primary-button click (down, then up) at this point, in the node’s coordinates. Backends support it on drawn custom widgets, whose pointer handling is ours.
Trait Implementations§
Source§impl Clone for SyntheticInput
impl Clone for SyntheticInput
Source§impl Debug for SyntheticInput
impl Debug for SyntheticInput
Source§impl PartialEq for SyntheticInput
impl PartialEq for SyntheticInput
impl StructuralPartialEq for SyntheticInput
Auto Trait Implementations§
impl Freeze for SyntheticInput
impl RefUnwindSafe for SyntheticInput
impl Send for SyntheticInput
impl Sync for SyntheticInput
impl Unpin for SyntheticInput
impl UnsafeUnpin for SyntheticInput
impl UnwindSafe for SyntheticInput
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