pub struct LegendTheme { /* private fields */ }Expand description
Complete measured guide chrome, independent of guide content or placement policy.
Implementations§
Source§impl LegendTheme
impl LegendTheme
Sourcepub fn new(
spacing: LegendSpacing,
gradient_lengths: GradientLengths,
frame: Option<LegendFrameTheme>,
) -> Result<Self>
pub fn new( spacing: LegendSpacing, gradient_lengths: GradientLengths, frame: Option<LegendFrameTheme>, ) -> Result<Self>
Construct complete spacing, continuous lengths and an optional container frame.
Sourcepub fn get_spacing(&self) -> &LegendSpacing
pub fn get_spacing(&self) -> &LegendSpacing
Borrow all complete exact guide relationships.
Sourcepub fn get_gradient_lengths(&self) -> &GradientLengths
pub fn get_gradient_lengths(&self) -> &GradientLengths
Borrow the continuous-guide minimum and preference.
Sourcepub fn get_frame(&self) -> Option<&LegendFrameTheme>
pub fn get_frame(&self) -> Option<&LegendFrameTheme>
Borrow the optional guide-container appearance.
Borrow the Canvas-owned shared-guide gap relationship.
Sourcepub fn spacing(self, spacing: LegendSpacing) -> Result<Self>
pub fn spacing(self, spacing: LegendSpacing) -> Result<Self>
Replace the complete guide-spacing value.
Sourcepub fn gradient_lengths(self, value: GradientLengths) -> Result<Self>
pub fn gradient_lengths(self, value: GradientLengths) -> Result<Self>
Replace the complete continuous-guide length value.
Sourcepub fn frame(self, frame: Option<LegendFrameTheme>) -> Result<Self>
pub fn frame(self, frame: Option<LegendFrameTheme>) -> Result<Self>
Replace only the optional guide-container appearance.
Replace only the Canvas-owned shared-guide gap relationship.
Trait Implementations§
Source§impl Clone for LegendTheme
impl Clone for LegendTheme
Source§impl Debug for LegendTheme
impl Debug for LegendTheme
Source§impl PartialEq for LegendTheme
impl PartialEq for LegendTheme
impl StructuralPartialEq for LegendTheme
Auto Trait Implementations§
impl Forget for LegendTheme
impl Freeze for LegendThemewhere
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
impl Move for LegendTheme
impl RefUnwindSafe for LegendTheme
impl Send for LegendTheme
impl Sync for LegendTheme
impl Unpin for LegendTheme
impl UnsafeUnpin for LegendThemewhere
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
impl UnwindSafe for LegendThemewhere
Arc<SpacingPayload>: UnwindSafe,
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.