pub enum HoldInput {
PointerDown {
x: f32,
y: f32,
},
PointerMove {
x: f32,
y: f32,
},
PointerUp {
x: f32,
y: f32,
},
PointerCancel,
KeyDown {
key: String,
repeat: bool,
},
KeyUp {
key: String,
},
Blur,
}Expand description
One input to a hold. Coordinates are px relative to the button’s
top-left; width/height = its laid-out box.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HoldInput
impl<'de> Deserialize<'de> for HoldInput
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
impl StructuralPartialEq for HoldInput
Auto Trait Implementations§
impl Freeze for HoldInput
impl RefUnwindSafe for HoldInput
impl Send for HoldInput
impl Sync for HoldInput
impl Unpin for HoldInput
impl UnsafeUnpin for HoldInput
impl UnwindSafe for HoldInput
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