pub struct ChartLayout {
pub main_panel: Rect,
pub volume_panel: Rect,
pub price_axis_panel: Rect,
pub time_axis_panel: Rect,
pub full_rect: Rect,
}Expand description
Defines the layout of the different chart panels
Fields§
§main_panel: Rect§volume_panel: Rect§price_axis_panel: Rect§time_axis_panel: Rect§full_rect: RectImplementations§
Source§impl ChartLayout
impl ChartLayout
Sourcepub fn new(full_rect: Rect, style: &LayoutStyle) -> Self
pub fn new(full_rect: Rect, style: &LayoutStyle) -> Self
Calculate the layout based on the full viewport rectangle and style parameters
Trait Implementations§
Source§impl Clone for ChartLayout
impl Clone for ChartLayout
Source§fn clone(&self) -> ChartLayout
fn clone(&self) -> ChartLayout
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 moreAuto Trait Implementations§
impl Freeze for ChartLayout
impl RefUnwindSafe for ChartLayout
impl Send for ChartLayout
impl Sync for ChartLayout
impl Unpin for ChartLayout
impl UnsafeUnpin for ChartLayout
impl UnwindSafe for ChartLayout
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