#[non_exhaustive]pub struct RenderedIndicatorPane {
pub indicator_idx: usize,
pub panel_rect: Rect,
pub chart_rect: Rect,
pub y_min: f64,
pub y_max: f64,
pub coords: IndicatorCoordParams,
pub mapping: ChartMapping,
}Expand description
Information about a rendered indicator pane, used for hit testing and coordinate mapping.
After calling Chart::show, each visible separate-pane indicator
(RSI, MACD, etc.) produces a RenderedIndicatorPane entry stored in the chart.
Platform code can use these to implement click-on-indicator-line selection,
tooltip display, or other interactive features.
Retrieve with Chart::get_rendered_indicator_panes.
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.indicator_idx: usizePosition of the study in Chart::indicators when the pane was drawn. After a pane’s
close button removed its study, that pane stays in the list until the next frame, and it
and the panes after it point one position too far.
panel_rect: RectFull panel rect (including y-axis labels)
chart_rect: RectChart drawing area rect (excluding y-axis labels)
y_min: f64Y-axis minimum value
y_max: f64Y-axis maximum value
coords: IndicatorCoordParamsCoordinate parameters for x-axis calculation
mapping: ChartMappingFull mapping, including manual ranges, scale modes and inversion.
Trait Implementations§
Source§impl Clone for RenderedIndicatorPane
impl Clone for RenderedIndicatorPane
Source§fn clone(&self) -> RenderedIndicatorPane
fn clone(&self) -> RenderedIndicatorPane
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RenderedIndicatorPane
impl RefUnwindSafe for RenderedIndicatorPane
impl Send for RenderedIndicatorPane
impl Sync for RenderedIndicatorPane
impl Unpin for RenderedIndicatorPane
impl UnsafeUnpin for RenderedIndicatorPane
impl UnwindSafe for RenderedIndicatorPane
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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