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§
§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 sub-area below the price chart (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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChartLayoutRects
impl Debug for ChartLayoutRects
Source§impl Default for ChartLayoutRects
impl Default for ChartLayoutRects
impl Copy 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