pub enum ChartEvent {
Pan {
dx: f32,
dy: f32,
},
Zoom {
factor: f32,
center_x: f32,
center_y: f32,
},
MouseMove {
x: f32,
y: f32,
},
Resize {
width: u32,
height: u32,
},
DataUpdated,
}Expand description
High-level user-interaction events that the chart core understands.
Variants§
Pan
Pan by screen-space pixel delta.
Zoom
Zoom by factor around a screen-space centre.
MouseMove
Mouse move in screen-space.
Resize
Resize the output surface.
DataUpdated
Signal that data has been updated (frontend manages the actual data).
Trait Implementations§
Source§impl Clone for ChartEvent
impl Clone for ChartEvent
Source§fn clone(&self) -> ChartEvent
fn clone(&self) -> ChartEvent
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 moreAuto Trait Implementations§
impl Freeze for ChartEvent
impl RefUnwindSafe for ChartEvent
impl Send for ChartEvent
impl Sync for ChartEvent
impl Unpin for ChartEvent
impl UnsafeUnpin for ChartEvent
impl UnwindSafe for ChartEvent
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