pub struct PlotResponse {
pub response: Response,
pub pointer: Option<[f64; 2]>,
pub hovered: Option<PlotHover>,
pub clicked: Option<PlotHover>,
pub selection_changed: bool,
pub view: Bounds,
pub y2_view: Option<[f64; 2]>,
pub frame: Rect,
pub settings_requested: bool,
pub export_requested: Option<ExportFormat>,
/* private fields */
}Expand description
What happened in the plot this frame.
Fields§
§response: ResponseThe response of the whole plot area.
pointer: Option<[f64; 2]>The pointer position in data coordinates, while over the frame.
hovered: Option<PlotHover>The nearest point within 12 pt of the pointer.
clicked: Option<PlotHover>A point that was clicked.
selection_changed: boolThe selection changed (drawn, or cleared with a click).
view: BoundsThe visible range in data coordinates (x and the left y axis).
y2_view: Option<[f64; 2]>The visible range of the right y axis in data coordinates, when it is shown.
frame: RectThe data area on screen (inside the axes).
settings_requested: boolThe toolbar’s settings button was clicked: open your settings dialog.
export_requested: Option<ExportFormat>The toolbar’s export menu chose a format: call super::Plot::to_svg or
super::Plot::to_png and save the result.
Implementations§
Source§impl PlotResponse
impl PlotResponse
Auto Trait Implementations§
impl !RefUnwindSafe for PlotResponse
impl !UnwindSafe for PlotResponse
impl Forget for PlotResponse
impl Freeze for PlotResponse
impl Move for PlotResponse
impl Send for PlotResponse
impl Sync for PlotResponse
impl Unpin for PlotResponse
impl UnsafeUnpin for PlotResponsewhere
*const ArcInner<RwLock<ContextImpl>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ContextImpl>>>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more