pub struct PaneOptions {
pub resizable: bool,
pub separator_color: Option<Color32>,
pub separator_hover_color: Option<Color32>,
}Expand description
Behaviour and colours of the separators between panes, set with
Chart::with_pane_options or Chart::pane_options_mut.
Fields§
§resizable: boolDragging a separator resizes the panes on either side of it, and a double click returns
both to their default stretch factors. true by default.
separator_color: Option<Color32>Separator colour; None uses the theme’s grid line colour.
separator_hover_color: Option<Color32>Colour of a separator under the pointer or being dragged; None uses the selection
colour. Unused when the panes are not resizable.
Trait Implementations§
Source§impl Clone for PaneOptions
impl Clone for PaneOptions
Source§fn clone(&self) -> PaneOptions
fn clone(&self) -> PaneOptions
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 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 Freeze 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
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