pub struct CanvasEvent {
pub kind: CanvasEventKind,
pub x: f32,
pub y: f32,
pub delta_x: Option<f32>,
pub delta_y: Option<f32>,
}Expand description
Canvas event data passed to handlers
Fields§
§kind: CanvasEventKind§x: f32§y: f32§delta_x: Option<f32>§delta_y: Option<f32>Trait Implementations§
Source§impl Clone for CanvasEvent
impl Clone for CanvasEvent
Source§fn clone(&self) -> CanvasEvent
fn clone(&self) -> CanvasEvent
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 Debug for CanvasEvent
impl Debug for CanvasEvent
Source§impl<'de> Deserialize<'de> for CanvasEvent
impl<'de> Deserialize<'de> for CanvasEvent
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
Source§impl PartialEq for CanvasEvent
impl PartialEq for CanvasEvent
Source§impl Serialize for CanvasEvent
impl Serialize for CanvasEvent
impl StructuralPartialEq for CanvasEvent
Auto Trait Implementations§
impl Freeze for CanvasEvent
impl RefUnwindSafe for CanvasEvent
impl Send for CanvasEvent
impl Sync for CanvasEvent
impl Unpin for CanvasEvent
impl UnwindSafe for CanvasEvent
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