#[non_exhaustive]pub struct PaneInteraction {
pub panel_rect: Rect,
pub chart_rect: Rect,
pub y_min: f64,
pub y_max: f64,
pub response: Response,
pub close_response: Option<Response>,
pub visibility_response: Option<Response>,
pub settings_response: Option<Response>,
pub menu: Option<Pos2>,
}Expand description
Layout and interaction results from rendering one interactive indicator pane.
Returned by super::IndicatorPane::show_aligned_interactive. Besides the rects
and y-axis range used for click hit-testing, it carries the [Response] for
the legend’s close “x” so the host can offer one-click pane removal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.panel_rect: RectFull panel rect, including the y-axis label gutter.
chart_rect: RectChart drawing area rect, excluding the y-axis label gutter.
y_min: f64Y-axis minimum value used for this frame.
y_max: f64Y-axis maximum value used for this frame.
response: ResponseInteraction response for the whole pane (line selection, hover).
close_response: Option<Response>Interaction response for the legend’s close “x”, or None when the pane
shows no legend and therefore exposes no remove affordance.
visibility_response: Option<Response>Visibility button response, when the legend is shown.
settings_response: Option<Response>Settings button response, when the legend is shown.
Corner of the study menu, when the legend’s more-actions button was clicked or its row secondary-clicked this frame.
Auto Trait Implementations§
impl !RefUnwindSafe for PaneInteraction
impl !UnwindSafe for PaneInteraction
impl Freeze for PaneInteraction
impl Send for PaneInteraction
impl Sync for PaneInteraction
impl Unpin for PaneInteraction
impl UnsafeUnpin for PaneInteraction
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
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> ⓘ
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> ⓘ
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