pub struct AnnotationTheme { /* private fields */ }Expand description
Complete immutable AnnotationTheme appearance component.
Implementations§
Source§impl AnnotationTheme
impl AnnotationTheme
Sourcepub fn new(
significance: SignificanceGeometry,
cells: CellAnnotationGeometry,
estimates: EstimateAnnotationGeometry,
point_label_gap: RelativeSpacing,
panel_text_padding: Insets,
waterfall_shelf: ValueShelfSpacing,
planning_backdrop: OpaqueColor,
) -> Result<AnnotationTheme, Error>
pub fn new( significance: SignificanceGeometry, cells: CellAnnotationGeometry, estimates: EstimateAnnotationGeometry, point_label_gap: RelativeSpacing, panel_text_padding: Insets, waterfall_shelf: ValueShelfSpacing, planning_backdrop: OpaqueColor, ) -> Result<AnnotationTheme, Error>
Construct a complete component, validating all fields and sibling constraints.
Sourcepub fn get_significance(&self) -> &SignificanceGeometry
pub fn get_significance(&self) -> &SignificanceGeometry
Borrow the complete significance value.
Sourcepub fn significance(
self,
value: SignificanceGeometry,
) -> Result<AnnotationTheme, Error>
pub fn significance( self, value: SignificanceGeometry, ) -> Result<AnnotationTheme, Error>
Replace only significance, validating the complete resulting component.
Sourcepub fn get_cells(&self) -> &CellAnnotationGeometry
pub fn get_cells(&self) -> &CellAnnotationGeometry
Borrow the complete cells value.
Sourcepub fn cells(
self,
value: CellAnnotationGeometry,
) -> Result<AnnotationTheme, Error>
pub fn cells( self, value: CellAnnotationGeometry, ) -> Result<AnnotationTheme, Error>
Replace only cells, validating the complete resulting component.
Sourcepub fn get_estimates(&self) -> &EstimateAnnotationGeometry
pub fn get_estimates(&self) -> &EstimateAnnotationGeometry
Borrow the complete estimates value.
Sourcepub fn estimates(
self,
value: EstimateAnnotationGeometry,
) -> Result<AnnotationTheme, Error>
pub fn estimates( self, value: EstimateAnnotationGeometry, ) -> Result<AnnotationTheme, Error>
Replace only estimates, validating the complete resulting component.
Sourcepub fn get_point_label_gap(&self) -> &RelativeSpacing
pub fn get_point_label_gap(&self) -> &RelativeSpacing
Borrow the complete point_label_gap value.
Sourcepub fn point_label_gap(
self,
value: RelativeSpacing,
) -> Result<AnnotationTheme, Error>
pub fn point_label_gap( self, value: RelativeSpacing, ) -> Result<AnnotationTheme, Error>
Replace only point_label_gap, validating the complete resulting component.
Sourcepub fn get_panel_text_padding(&self) -> &Insets
pub fn get_panel_text_padding(&self) -> &Insets
Borrow the complete panel_text_padding value.
Sourcepub fn panel_text_padding(self, value: Insets) -> Result<AnnotationTheme, Error>
pub fn panel_text_padding(self, value: Insets) -> Result<AnnotationTheme, Error>
Replace only panel_text_padding, validating the complete resulting component.
Sourcepub fn get_waterfall_shelf(&self) -> &ValueShelfSpacing
pub fn get_waterfall_shelf(&self) -> &ValueShelfSpacing
Borrow the complete waterfall_shelf value.
Sourcepub fn waterfall_shelf(
self,
value: ValueShelfSpacing,
) -> Result<AnnotationTheme, Error>
pub fn waterfall_shelf( self, value: ValueShelfSpacing, ) -> Result<AnnotationTheme, Error>
Replace only waterfall_shelf, validating the complete resulting component.
Sourcepub fn get_planning_backdrop(&self) -> OpaqueColor
pub fn get_planning_backdrop(&self) -> OpaqueColor
Inspect planning_backdrop.
Sourcepub fn planning_backdrop(
self,
value: OpaqueColor,
) -> Result<AnnotationTheme, Error>
pub fn planning_backdrop( self, value: OpaqueColor, ) -> Result<AnnotationTheme, Error>
Replace only planning_backdrop, validating the complete resulting component.
Trait Implementations§
Source§impl Clone for AnnotationTheme
impl Clone for AnnotationTheme
Source§fn clone(&self) -> AnnotationTheme
fn clone(&self) -> AnnotationTheme
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnnotationTheme
impl Debug for AnnotationTheme
Source§impl PartialEq for AnnotationTheme
impl PartialEq for AnnotationTheme
impl StructuralPartialEq for AnnotationTheme
Auto Trait Implementations§
impl Forget for AnnotationTheme
impl Freeze for AnnotationThemewhere
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
impl Move for AnnotationTheme
impl RefUnwindSafe for AnnotationTheme
impl Send for AnnotationTheme
impl Sync for AnnotationTheme
impl Unpin for AnnotationTheme
impl UnsafeUnpin for AnnotationThemewhere
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
impl UnwindSafe for AnnotationThemewhere
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
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.