pub struct LegendFrameTheme { /* private fields */ }Expand description
Complete guide-container paint, optional independent outline and local corner radius.
Implementations§
Source§impl LegendFrameTheme
impl LegendFrameTheme
Sourcepub fn new(
fill: Color,
outline: Option<OutlineTheme>,
radius: RelativeSpacing,
) -> Result<Self>
pub fn new( fill: Color, outline: Option<OutlineTheme>, radius: RelativeSpacing, ) -> Result<Self>
Construct a complete container with a nonnegative local corner radius.
Sourcepub fn get_outline(&self) -> Option<&OutlineTheme>
pub fn get_outline(&self) -> Option<&OutlineTheme>
Borrow the optional independent outline.
Sourcepub fn get_radius(&self) -> &RelativeSpacing
pub fn get_radius(&self) -> &RelativeSpacing
Borrow the nonnegative legend-label-em corner-radius relationship.
Sourcepub fn outline(self, outline: Option<OutlineTheme>) -> Result<Self>
pub fn outline(self, outline: Option<OutlineTheme>) -> Result<Self>
Replace only the optional independent outline.
Sourcepub fn radius(self, radius: RelativeSpacing) -> Result<Self>
pub fn radius(self, radius: RelativeSpacing) -> Result<Self>
Replace only the nonnegative local corner-radius relationship.
Trait Implementations§
Source§impl Clone for LegendFrameTheme
impl Clone for LegendFrameTheme
Source§impl Debug for LegendFrameTheme
impl Debug for LegendFrameTheme
Source§impl PartialEq for LegendFrameTheme
impl PartialEq for LegendFrameTheme
impl StructuralPartialEq for LegendFrameTheme
Auto Trait Implementations§
impl Forget for LegendFrameTheme
impl Freeze for LegendFrameTheme
impl Move for LegendFrameTheme
impl RefUnwindSafe for LegendFrameTheme
impl Send for LegendFrameTheme
impl Sync for LegendFrameTheme
impl Unpin for LegendFrameTheme
impl UnsafeUnpin for LegendFrameTheme
impl UnwindSafe for LegendFrameTheme
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.