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: Insets,
panel_edge_clearance: Insets,
text_panel: TextPanelSpacing,
facet_gap: GridGap,
canvas_grid_gap: GridGap,
matrix_gap: GridGap,
marginal_gap: GridGap,
headers: HeaderSpacing,
facet_strip: FacetStripSpacing,
) -> Result<Self>
pub fn new( root_title_alignment: TextAlignment, root_subtitle_alignment: Option<TextAlignment>, root_caption_alignment: TextAlignment, root_title_block: RootTitleSpacing, root_padding: Insets, panel_edge_clearance: Insets, text_panel: TextPanelSpacing, facet_gap: GridGap, canvas_grid_gap: GridGap, matrix_gap: GridGap, marginal_gap: GridGap, headers: HeaderSpacing, facet_strip: FacetStripSpacing, ) -> Result<Self>
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<Self>
pub fn root_title_alignment(self, value: TextAlignment) -> Result<Self>
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<Self>
pub fn root_subtitle_alignment( self, value: Option<TextAlignment>, ) -> Result<Self>
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<Self>
pub fn root_caption_alignment(self, value: TextAlignment) -> Result<Self>
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<Self>
pub fn root_title_block(self, value: RootTitleSpacing) -> Result<Self>
Replace only root_title_block.
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<Self>
pub fn text_panel(self, value: TextPanelSpacing) -> Result<Self>
Replace only text_panel.
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<Self>
pub fn headers(self, value: HeaderSpacing) -> Result<Self>
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<Self>
pub fn facet_strip(self, value: FacetStripSpacing) -> Result<Self>
Replace only facet_strip.
Sourcepub fn get_root_padding(&self) -> &Insets
pub fn get_root_padding(&self) -> &Insets
Borrow the original root_padding.
Sourcepub fn root_padding(self, value: Insets) -> Result<Self>
pub fn root_padding(self, value: Insets) -> Result<Self>
Replace root_padding with owner-local em or CSS pixel lengths.
Sourcepub fn get_panel_edge_clearance(&self) -> &Insets
pub fn get_panel_edge_clearance(&self) -> &Insets
Borrow the original panel_edge_clearance.
Sourcepub fn panel_edge_clearance(self, value: Insets) -> Result<Self>
pub fn panel_edge_clearance(self, value: Insets) -> Result<Self>
Replace panel_edge_clearance with owner-local em or CSS pixel lengths.
Sourcepub fn get_facet_gap(&self) -> &GridGap
pub fn get_facet_gap(&self) -> &GridGap
Borrow the original facet_gap.
Sourcepub fn facet_gap(self, value: GridGap) -> Result<Self>
pub fn facet_gap(self, value: GridGap) -> Result<Self>
Replace facet_gap with owner-local em or CSS pixel lengths.
Sourcepub fn get_canvas_grid_gap(&self) -> &GridGap
pub fn get_canvas_grid_gap(&self) -> &GridGap
Borrow the original canvas_grid_gap.
Sourcepub fn canvas_grid_gap(self, value: GridGap) -> Result<Self>
pub fn canvas_grid_gap(self, value: GridGap) -> Result<Self>
Replace canvas_grid_gap with owner-local em or CSS pixel lengths.
Sourcepub fn get_matrix_gap(&self) -> &GridGap
pub fn get_matrix_gap(&self) -> &GridGap
Borrow the original matrix_gap.
Sourcepub fn matrix_gap(self, value: GridGap) -> Result<Self>
pub fn matrix_gap(self, value: GridGap) -> Result<Self>
Replace matrix_gap with owner-local em or CSS pixel lengths.
Sourcepub fn get_marginal_gap(&self) -> &GridGap
pub fn get_marginal_gap(&self) -> &GridGap
Borrow the original marginal_gap.
Sourcepub fn marginal_gap(self, value: GridGap) -> Result<Self>
pub fn marginal_gap(self, value: GridGap) -> Result<Self>
Replace marginal_gap with owner-local em or CSS pixel lengths.
Trait Implementations§
Source§impl Clone for CompositionTheme
impl Clone for CompositionTheme
Source§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 CompositionThemewhere
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
impl Move for CompositionTheme
impl RefUnwindSafe for CompositionTheme
impl Send for CompositionTheme
impl Sync for CompositionTheme
impl Unpin for CompositionTheme
impl UnsafeUnpin for CompositionThemewhere
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
impl UnwindSafe for CompositionThemewhere
Arc<SpacingPayload>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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.