pub struct PaneOptions {
pub stretch_factor: f32,
}Expand description
Options of a new pane.
§Examples
use ferrochart_core::{Chart, ChartOptions};
use ferrochart_core::pane::PaneOptions;
let mut chart = Chart::new(ChartOptions::default());
// An indicator pane a third as tall as the main pane.
let pane = chart.add_pane(PaneOptions { stretch_factor: 1.0 / 3.0 });
assert_eq!(chart.panes().count(), 2);
assert_eq!(chart.pane_stretch(pane), Some(1.0 / 3.0));Fields§
§stretch_factor: f32Share of the height relative to the other panes’ factors. Values that are not finite and positive are replaced by 1.
Trait Implementations§
Source§impl Clone for PaneOptions
impl Clone for PaneOptions
impl Copy for PaneOptions
Source§impl Debug for PaneOptions
impl Debug for PaneOptions
Source§impl Default for PaneOptions
impl Default for PaneOptions
Source§impl PartialEq for PaneOptions
impl PartialEq for PaneOptions
impl StructuralPartialEq for PaneOptions
Auto Trait Implementations§
impl Forget for PaneOptions
impl Freeze for PaneOptions
impl Move for PaneOptions
impl RefUnwindSafe for PaneOptions
impl Send for PaneOptions
impl Sync for PaneOptions
impl Unpin for PaneOptions
impl UnsafeUnpin for PaneOptions
impl UnwindSafe for PaneOptions
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