#[non_exhaustive]pub struct ChartLayoutRects {
pub widget_rect: Rect,
pub price_rect: Rect,
pub volume_rect: Rect,
pub legend_rect: Rect,
}Expand description
Pre-computed layout rectangles for the chart’s sub-regions.
Use Chart::calculate_layout_rects to obtain these rects for a given
widget area. They are useful for external hit-testing (e.g., determining
whether a click landed on the price area, volume area, or legend).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.widget_rect: RectThe overall widget rect (entire chart area including axes and padding).
price_rect: RectThe main price/candle area where OHLC data is rendered.
volume_rect: RectThe volume area inside the price pane (empty if volume is hidden).
legend_rect: RectThe legend/OHLC info area at the top of the chart.
Trait Implementations§
Source§impl Clone for ChartLayoutRects
impl Clone for ChartLayoutRects
Source§fn clone(&self) -> ChartLayoutRects
fn clone(&self) -> ChartLayoutRects
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChartLayoutRects
Source§impl Debug for ChartLayoutRects
impl Debug for ChartLayoutRects
Auto Trait Implementations§
impl Freeze for ChartLayoutRects
impl RefUnwindSafe for ChartLayoutRects
impl Send for ChartLayoutRects
impl Sync for ChartLayoutRects
impl Unpin for ChartLayoutRects
impl UnsafeUnpin for ChartLayoutRects
impl UnwindSafe for ChartLayoutRects
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> 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> ⓘ
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