pub struct CompositionTheme { /* private fields */ }Expand description
Complete owner-local composition, header, facet and root-prose appearance.
Implementations§
Source§impl CompositionTheme
impl CompositionTheme
Sourcepub fn new(
root_title_alignment: TextAlignment,
root_subtitle_alignment: Option<TextAlignment>,
root_caption_alignment: TextAlignment,
root_title_block: RootTitleSpacing,
root_padding: RootPadding,
panel_edge_clearance: RelativeSpacing,
text_panel: TextPanelSpacing,
facet_gap: RelativeSpacing,
canvas_grid_gap: RelativeSpacing,
headers: HeaderSpacing,
facet_strip: FacetStripSpacing,
) -> Result<CompositionTheme, Error>
pub fn new( root_title_alignment: TextAlignment, root_subtitle_alignment: Option<TextAlignment>, root_caption_alignment: TextAlignment, root_title_block: RootTitleSpacing, root_padding: RootPadding, panel_edge_clearance: RelativeSpacing, text_panel: TextPanelSpacing, facet_gap: RelativeSpacing, canvas_grid_gap: RelativeSpacing, headers: HeaderSpacing, facet_strip: FacetStripSpacing, ) -> Result<CompositionTheme, Error>
Construct all root alignments and independently owned local relationships.
Sourcepub fn get_root_title_alignment(&self) -> TextAlignment
pub fn get_root_title_alignment(&self) -> TextAlignment
Inspect root_title_alignment.
Sourcepub fn root_title_alignment(
self,
value: TextAlignment,
) -> Result<CompositionTheme, Error>
pub fn root_title_alignment( self, value: TextAlignment, ) -> Result<CompositionTheme, Error>
Replace only root_title_alignment.
Sourcepub fn get_root_subtitle_alignment(&self) -> Option<TextAlignment>
pub fn get_root_subtitle_alignment(&self) -> Option<TextAlignment>
Inspect root_subtitle_alignment.
Sourcepub fn root_subtitle_alignment(
self,
value: Option<TextAlignment>,
) -> Result<CompositionTheme, Error>
pub fn root_subtitle_alignment( self, value: Option<TextAlignment>, ) -> Result<CompositionTheme, Error>
Replace only root_subtitle_alignment.
Sourcepub fn get_root_caption_alignment(&self) -> TextAlignment
pub fn get_root_caption_alignment(&self) -> TextAlignment
Inspect root_caption_alignment.
Sourcepub fn root_caption_alignment(
self,
value: TextAlignment,
) -> Result<CompositionTheme, Error>
pub fn root_caption_alignment( self, value: TextAlignment, ) -> Result<CompositionTheme, Error>
Replace only root_caption_alignment.
Sourcepub fn get_root_title_block(&self) -> &RootTitleSpacing
pub fn get_root_title_block(&self) -> &RootTitleSpacing
Borrow the complete root_title_block relationship value.
Sourcepub fn root_title_block(
self,
value: RootTitleSpacing,
) -> Result<CompositionTheme, Error>
pub fn root_title_block( self, value: RootTitleSpacing, ) -> Result<CompositionTheme, Error>
Replace only root_title_block.
Sourcepub fn get_root_padding(&self) -> &RootPadding
pub fn get_root_padding(&self) -> &RootPadding
Borrow the complete root_padding relationship value.
Sourcepub fn root_padding(self, value: RootPadding) -> Result<CompositionTheme, Error>
pub fn root_padding(self, value: RootPadding) -> Result<CompositionTheme, Error>
Replace only root_padding.
Sourcepub fn get_panel_edge_clearance(&self) -> &RelativeSpacing
pub fn get_panel_edge_clearance(&self) -> &RelativeSpacing
Borrow the complete panel_edge_clearance relationship value.
Sourcepub fn panel_edge_clearance(
self,
value: RelativeSpacing,
) -> Result<CompositionTheme, Error>
pub fn panel_edge_clearance( self, value: RelativeSpacing, ) -> Result<CompositionTheme, Error>
Replace only panel_edge_clearance.
Sourcepub fn get_text_panel(&self) -> &TextPanelSpacing
pub fn get_text_panel(&self) -> &TextPanelSpacing
Borrow the complete text_panel relationship value.
Sourcepub fn text_panel(
self,
value: TextPanelSpacing,
) -> Result<CompositionTheme, Error>
pub fn text_panel( self, value: TextPanelSpacing, ) -> Result<CompositionTheme, Error>
Replace only text_panel.
Sourcepub fn get_facet_gap(&self) -> &RelativeSpacing
pub fn get_facet_gap(&self) -> &RelativeSpacing
Borrow the complete facet_gap relationship value.
Sourcepub fn facet_gap(
self,
value: RelativeSpacing,
) -> Result<CompositionTheme, Error>
pub fn facet_gap( self, value: RelativeSpacing, ) -> Result<CompositionTheme, Error>
Replace only facet_gap.
Sourcepub fn get_canvas_grid_gap(&self) -> &RelativeSpacing
pub fn get_canvas_grid_gap(&self) -> &RelativeSpacing
Borrow the complete canvas_grid_gap relationship value.
Sourcepub fn canvas_grid_gap(
self,
value: RelativeSpacing,
) -> Result<CompositionTheme, Error>
pub fn canvas_grid_gap( self, value: RelativeSpacing, ) -> Result<CompositionTheme, Error>
Replace only canvas_grid_gap.
Sourcepub fn get_headers(&self) -> &HeaderSpacing
pub fn get_headers(&self) -> &HeaderSpacing
Borrow the complete headers relationship value.
Sourcepub fn headers(self, value: HeaderSpacing) -> Result<CompositionTheme, Error>
pub fn headers(self, value: HeaderSpacing) -> Result<CompositionTheme, Error>
Replace only headers.
Sourcepub fn get_facet_strip(&self) -> &FacetStripSpacing
pub fn get_facet_strip(&self) -> &FacetStripSpacing
Borrow the complete facet_strip relationship value.
Sourcepub fn facet_strip(
self,
value: FacetStripSpacing,
) -> Result<CompositionTheme, Error>
pub fn facet_strip( self, value: FacetStripSpacing, ) -> Result<CompositionTheme, Error>
Replace only facet_strip.
Trait Implementations§
Source§impl Clone for CompositionTheme
impl Clone for CompositionTheme
Source§fn clone(&self) -> CompositionTheme
fn clone(&self) -> CompositionTheme
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 CompositionTheme
impl Debug for CompositionTheme
impl Eq for CompositionTheme
Source§impl PartialEq for CompositionTheme
impl PartialEq for CompositionTheme
impl StructuralPartialEq for CompositionTheme
Auto Trait Implementations§
impl Forget for CompositionTheme
impl Freeze for CompositionTheme
impl Move for CompositionTheme
impl RefUnwindSafe for CompositionTheme
impl Send for CompositionTheme
impl Sync for CompositionTheme
impl Unpin for CompositionTheme
impl UnsafeUnpin for CompositionTheme
impl UnwindSafe for CompositionTheme
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.