[−][src]Struct seed_style_preview::Theme
Fields
name: String
anymap: Map<dyn Any>
spaces_scale: Vec<CssSpace>
font_sizes_scale: Vec<CssFontSize>
fonts_scale: Vec<CssFont>
font_weights_scale: Vec<CssFontWeight>
line_heights_scale: Vec<CssLineHeight>
letter_spacings_scale: Vec<CssLetterSpacing>
sizes_scale: Vec<CssSize>
borders_scale: Vec<CssBorder>
border_styles_scale: Vec<CssBorderStyle>
border_widths_scale: Vec<CssBorderWidth>
breakpoints_scale: Vec<u32>
media_bp_scale: Vec<CssMedia>
media_bp_pairs: Vec<(u32, Option<u32>)>
radii_scale: Vec<CssBorderRadius>
colors_scale: Vec<CssColor>
shadows_scale: Vec<CssShadow>
Implementations
impl Theme
[src]
pub fn new(name: &str) -> Theme
[src]
pub fn space_scale<S>(self, scale: &[S]) -> Theme where
S: Into<CssSpace> + Clone,
[src]
S: Into<CssSpace> + Clone,
pub fn border_width_scale<S>(self, scale: &[S]) -> Theme where
S: Into<CssBorderWidth> + Clone,
[src]
S: Into<CssBorderWidth> + Clone,
pub fn font_size_scale<S>(self, scale: &[S]) -> Theme where
S: Into<CssFontSize> + Clone,
[src]
S: Into<CssFontSize> + Clone,
pub fn font_weight_scale<S>(self, scale: &[S]) -> Theme where
S: Into<CssFontWeight> + Clone,
[src]
S: Into<CssFontWeight> + Clone,
pub fn size_scale<S>(self, scale: &[S]) -> Theme where
S: Into<CssSize> + Clone,
[src]
S: Into<CssSize> + Clone,
pub fn line_height_scale<S>(self, scale: &[S]) -> Theme where
S: Into<CssLineHeight> + Clone,
[src]
S: Into<CssLineHeight> + Clone,
pub fn letter_spacing_scale<S>(self, scale: &[S]) -> Theme where
S: Into<CssLetterSpacing> + Clone,
[src]
S: Into<CssLetterSpacing> + Clone,
pub fn border_scale<S>(self, scale: &[S]) -> Theme where
S: Into<CssBorder> + Clone,
[src]
S: Into<CssBorder> + Clone,
pub fn breakpoint_scale<S: Into<Vec<u32>>>(self, scale: S) -> Theme
[src]
pub fn general_get<T, R>(&self, alias: T) -> Option<R> where
Self: OverloadedGeneralStyleLookUp<T, R>,
T: Clone,
[src]
Self: OverloadedGeneralStyleLookUp<T, R>,
T: Clone,
pub fn get<T, R>(&self, alias: T) -> Option<R> where
Self: OverloadedStyleLookUp<T, R>,
T: Clone,
[src]
Self: OverloadedStyleLookUp<T, R>,
T: Clone,
pub fn set_size<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssSize>,
Q: 'static + SizeTheme,
[src]
T: Into<CssSize>,
Q: 'static + SizeTheme,
pub fn set_shadow<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssShadow>,
Q: 'static + ShadowTheme,
[src]
T: Into<CssShadow>,
Q: 'static + ShadowTheme,
pub fn set_color<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssColor>,
Q: 'static + ColorTheme,
[src]
T: Into<CssColor>,
Q: 'static + ColorTheme,
pub fn set_space<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssSpace>,
Q: 'static + SpaceTheme,
[src]
T: Into<CssSpace>,
Q: 'static + SpaceTheme,
pub fn set_font_size<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssFontSize>,
Q: 'static + FontSizeTheme,
[src]
T: Into<CssFontSize>,
Q: 'static + FontSizeTheme,
pub fn set_border<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssBorder>,
Q: 'static + BorderTheme,
[src]
T: Into<CssBorder>,
Q: 'static + BorderTheme,
pub fn set_border_width<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssBorderWidth>,
Q: 'static + BorderWidthTheme,
[src]
T: Into<CssBorderWidth>,
Q: 'static + BorderWidthTheme,
pub fn set_border_style<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssBorderStyle>,
Q: 'static + BorderStyleTheme,
[src]
T: Into<CssBorderStyle>,
Q: 'static + BorderStyleTheme,
pub fn set_border_radius<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssBorderRadius>,
Q: 'static + BorderRadiusTheme,
[src]
T: Into<CssBorderRadius>,
Q: 'static + BorderRadiusTheme,
pub fn set_transition<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssTransition>,
Q: 'static + TransitionTheme,
[src]
T: Into<CssTransition>,
Q: 'static + TransitionTheme,
pub fn set_style<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<Style>,
Q: 'static + StyleTheme,
[src]
T: Into<Style>,
Q: 'static + StyleTheme,
pub fn set_breakpoint<Q>(self, alias: Q, value: (u32, Option<u32>)) -> Theme where
Q: 'static + BreakpointTheme,
[src]
Q: 'static + BreakpointTheme,
pub fn set_line_height<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssLineHeight>,
Q: 'static + LineHeightTheme,
[src]
T: Into<CssLineHeight>,
Q: 'static + LineHeightTheme,
pub fn set_letter_spacing<T, Q>(self, alias: Q, value: T) -> Theme where
T: Into<CssLetterSpacing>,
Q: 'static + LetterSpacingTheme,
[src]
T: Into<CssLetterSpacing>,
Q: 'static + LetterSpacingTheme,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Theme
impl !Send for Theme
impl !Sync for Theme
impl Unpin for Theme
impl !UnwindSafe for Theme
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,