[][src]Enum azul_css::CssProperty

pub enum CssProperty {
    TextColor(CssPropertyValue<StyleTextColor>),
    FontSize(CssPropertyValue<StyleFontSize>),
    FontFamily(CssPropertyValue<StyleFontFamily>),
    TextAlign(CssPropertyValue<StyleTextAlignmentHorz>),
    LetterSpacing(CssPropertyValue<StyleLetterSpacing>),
    LineHeight(CssPropertyValue<StyleLineHeight>),
    WordSpacing(CssPropertyValue<StyleWordSpacing>),
    TabWidth(CssPropertyValue<StyleTabWidth>),
    Cursor(CssPropertyValue<StyleCursor>),
    Display(CssPropertyValue<LayoutDisplay>),
    Float(CssPropertyValue<LayoutFloat>),
    BoxSizing(CssPropertyValue<LayoutBoxSizing>),
    Width(CssPropertyValue<LayoutWidth>),
    Height(CssPropertyValue<LayoutHeight>),
    MinWidth(CssPropertyValue<LayoutMinWidth>),
    MinHeight(CssPropertyValue<LayoutMinHeight>),
    MaxWidth(CssPropertyValue<LayoutMaxWidth>),
    MaxHeight(CssPropertyValue<LayoutMaxHeight>),
    Position(CssPropertyValue<LayoutPosition>),
    Top(CssPropertyValue<LayoutTop>),
    Right(CssPropertyValue<LayoutRight>),
    Left(CssPropertyValue<LayoutLeft>),
    Bottom(CssPropertyValue<LayoutBottom>),
    FlexWrap(CssPropertyValue<LayoutWrap>),
    FlexDirection(CssPropertyValue<LayoutDirection>),
    FlexGrow(CssPropertyValue<LayoutFlexGrow>),
    FlexShrink(CssPropertyValue<LayoutFlexShrink>),
    JustifyContent(CssPropertyValue<LayoutJustifyContent>),
    AlignItems(CssPropertyValue<LayoutAlignItems>),
    AlignContent(CssPropertyValue<LayoutAlignContent>),
    BackgroundContent(CssPropertyValue<StyleBackgroundContent>),
    BackgroundPosition(CssPropertyValue<StyleBackgroundPosition>),
    BackgroundSize(CssPropertyValue<StyleBackgroundSize>),
    BackgroundRepeat(CssPropertyValue<StyleBackgroundRepeat>),
    OverflowX(CssPropertyValue<Overflow>),
    OverflowY(CssPropertyValue<Overflow>),
    PaddingTop(CssPropertyValue<LayoutPaddingTop>),
    PaddingLeft(CssPropertyValue<LayoutPaddingLeft>),
    PaddingRight(CssPropertyValue<LayoutPaddingRight>),
    PaddingBottom(CssPropertyValue<LayoutPaddingBottom>),
    MarginTop(CssPropertyValue<LayoutMarginTop>),
    MarginLeft(CssPropertyValue<LayoutMarginLeft>),
    MarginRight(CssPropertyValue<LayoutMarginRight>),
    MarginBottom(CssPropertyValue<LayoutMarginBottom>),
    BorderTopLeftRadius(CssPropertyValue<StyleBorderTopLeftRadius>),
    BorderTopRightRadius(CssPropertyValue<StyleBorderTopRightRadius>),
    BorderBottomLeftRadius(CssPropertyValue<StyleBorderBottomLeftRadius>),
    BorderBottomRightRadius(CssPropertyValue<StyleBorderBottomRightRadius>),
    BorderTopColor(CssPropertyValue<StyleBorderTopColor>),
    BorderRightColor(CssPropertyValue<StyleBorderRightColor>),
    BorderLeftColor(CssPropertyValue<StyleBorderLeftColor>),
    BorderBottomColor(CssPropertyValue<StyleBorderBottomColor>),
    BorderTopStyle(CssPropertyValue<StyleBorderTopStyle>),
    BorderRightStyle(CssPropertyValue<StyleBorderRightStyle>),
    BorderLeftStyle(CssPropertyValue<StyleBorderLeftStyle>),
    BorderBottomStyle(CssPropertyValue<StyleBorderBottomStyle>),
    BorderTopWidth(CssPropertyValue<StyleBorderTopWidth>),
    BorderRightWidth(CssPropertyValue<StyleBorderRightWidth>),
    BorderLeftWidth(CssPropertyValue<StyleBorderLeftWidth>),
    BorderBottomWidth(CssPropertyValue<StyleBorderBottomWidth>),
    BoxShadowLeft(CssPropertyValue<BoxShadowPreDisplayItem>),
    BoxShadowRight(CssPropertyValue<BoxShadowPreDisplayItem>),
    BoxShadowTop(CssPropertyValue<BoxShadowPreDisplayItem>),
    BoxShadowBottom(CssPropertyValue<BoxShadowPreDisplayItem>),
}

Represents one parsed CSS key-value pair, such as "width: 20px" => CssProperty::Width(LayoutWidth::px(20.0))

Variants

Implementations

impl CssProperty[src]

pub fn get_type(&self) -> CssPropertyType[src]

Return the type (key) of this property as a statically typed enum

pub fn none(prop_type: CssPropertyType) -> Self[src]

pub fn auto(prop_type: CssPropertyType) -> Self[src]

pub fn initial(prop_type: CssPropertyType) -> Self[src]

pub fn inherit(prop_type: CssPropertyType) -> Self[src]

pub const fn text_color(input: StyleTextColor) -> Self[src]

Creates a text_color CSS attribute

pub const fn font_size(input: StyleFontSize) -> Self[src]

Creates a font_size CSS attribute

pub const fn font_family(input: StyleFontFamily) -> Self[src]

Creates a font_family CSS attribute

pub const fn text_align(input: StyleTextAlignmentHorz) -> Self[src]

Creates a text_align CSS attribute

pub const fn letter_spacing(input: StyleLetterSpacing) -> Self[src]

Creates a letter_spacing CSS attribute

pub const fn line_height(input: StyleLineHeight) -> Self[src]

Creates a line_height CSS attribute

pub const fn word_spacing(input: StyleWordSpacing) -> Self[src]

Creates a word_spacing CSS attribute

pub const fn tab_width(input: StyleTabWidth) -> Self[src]

Creates a tab_width CSS attribute

pub const fn cursor(input: StyleCursor) -> Self[src]

Creates a cursor CSS attribute

pub const fn display(input: LayoutDisplay) -> Self[src]

Creates a display CSS attribute

pub const fn float(input: LayoutFloat) -> Self[src]

Creates a float CSS attribute

pub const fn box_sizing(input: LayoutBoxSizing) -> Self[src]

Creates a box_sizing CSS attribute

pub const fn width(input: LayoutWidth) -> Self[src]

Creates a width CSS attribute

pub const fn height(input: LayoutHeight) -> Self[src]

Creates a height CSS attribute

pub const fn min_width(input: LayoutMinWidth) -> Self[src]

Creates a min_width CSS attribute

pub const fn min_height(input: LayoutMinHeight) -> Self[src]

Creates a min_height CSS attribute

pub const fn max_width(input: LayoutMaxWidth) -> Self[src]

Creates a max_width CSS attribute

pub const fn max_height(input: LayoutMaxHeight) -> Self[src]

Creates a max_height CSS attribute

pub const fn position(input: LayoutPosition) -> Self[src]

Creates a position CSS attribute

pub const fn top(input: LayoutTop) -> Self[src]

Creates a top CSS attribute

pub const fn right(input: LayoutRight) -> Self[src]

Creates a right CSS attribute

pub const fn left(input: LayoutLeft) -> Self[src]

Creates a left CSS attribute

pub const fn bottom(input: LayoutBottom) -> Self[src]

Creates a bottom CSS attribute

pub const fn flex_wrap(input: LayoutWrap) -> Self[src]

Creates a flex_wrap CSS attribute

pub const fn flex_direction(input: LayoutDirection) -> Self[src]

Creates a flex_direction CSS attribute

pub const fn flex_grow(input: LayoutFlexGrow) -> Self[src]

Creates a flex_grow CSS attribute

pub const fn flex_shrink(input: LayoutFlexShrink) -> Self[src]

Creates a flex_shrink CSS attribute

pub const fn justify_content(input: LayoutJustifyContent) -> Self[src]

Creates a justify_content CSS attribute

pub const fn align_items(input: LayoutAlignItems) -> Self[src]

Creates a align_items CSS attribute

pub const fn align_content(input: LayoutAlignContent) -> Self[src]

Creates a align_content CSS attribute

pub const fn background_content(input: StyleBackgroundContent) -> Self[src]

Creates a background_content CSS attribute

pub const fn background_position(input: StyleBackgroundPosition) -> Self[src]

Creates a background_position CSS attribute

pub const fn background_size(input: StyleBackgroundSize) -> Self[src]

Creates a background_size CSS attribute

pub const fn background_repeat(input: StyleBackgroundRepeat) -> Self[src]

Creates a background_repeat CSS attribute

pub const fn overflow_x(input: Overflow) -> Self[src]

Creates a overflow_x CSS attribute

pub const fn overflow_y(input: Overflow) -> Self[src]

Creates a overflow_y CSS attribute

pub const fn padding_top(input: LayoutPaddingTop) -> Self[src]

Creates a padding_top CSS attribute

pub const fn padding_left(input: LayoutPaddingLeft) -> Self[src]

Creates a padding_left CSS attribute

pub const fn padding_right(input: LayoutPaddingRight) -> Self[src]

Creates a padding_right CSS attribute

pub const fn padding_bottom(input: LayoutPaddingBottom) -> Self[src]

Creates a padding_bottom CSS attribute

pub const fn margin_top(input: LayoutMarginTop) -> Self[src]

Creates a margin_top CSS attribute

pub const fn margin_left(input: LayoutMarginLeft) -> Self[src]

Creates a margin_left CSS attribute

pub const fn margin_right(input: LayoutMarginRight) -> Self[src]

Creates a margin_right CSS attribute

pub const fn margin_bottom(input: LayoutMarginBottom) -> Self[src]

Creates a margin_bottom CSS attribute

pub const fn border_top_left_radius(input: StyleBorderTopLeftRadius) -> Self[src]

Creates a border_top_left_radius CSS attribute

pub const fn border_top_right_radius(input: StyleBorderTopRightRadius) -> Self[src]

Creates a border_top_right_radius CSS attribute

pub const fn border_bottom_left_radius(
    input: StyleBorderBottomLeftRadius
) -> Self
[src]

Creates a border_bottom_left_radius CSS attribute

pub const fn border_bottom_right_radius(
    input: StyleBorderBottomRightRadius
) -> Self
[src]

Creates a border_bottom_right_radius CSS attribute

pub const fn border_top_color(input: StyleBorderTopColor) -> Self[src]

Creates a border_top_color CSS attribute

pub const fn border_right_color(input: StyleBorderRightColor) -> Self[src]

Creates a border_right_color CSS attribute

pub const fn border_left_color(input: StyleBorderLeftColor) -> Self[src]

Creates a border_left_color CSS attribute

pub const fn border_bottom_color(input: StyleBorderBottomColor) -> Self[src]

Creates a border_bottom_color CSS attribute

pub const fn border_top_style(input: StyleBorderTopStyle) -> Self[src]

Creates a border_top_style CSS attribute

pub const fn border_right_style(input: StyleBorderRightStyle) -> Self[src]

Creates a border_right_style CSS attribute

pub const fn border_left_style(input: StyleBorderLeftStyle) -> Self[src]

Creates a border_left_style CSS attribute

pub const fn border_bottom_style(input: StyleBorderBottomStyle) -> Self[src]

Creates a border_bottom_style CSS attribute

pub const fn border_top_width(input: StyleBorderTopWidth) -> Self[src]

Creates a border_top_width CSS attribute

pub const fn border_right_width(input: StyleBorderRightWidth) -> Self[src]

Creates a border_right_width CSS attribute

pub const fn border_left_width(input: StyleBorderLeftWidth) -> Self[src]

Creates a border_left_width CSS attribute

pub const fn border_bottom_width(input: StyleBorderBottomWidth) -> Self[src]

Creates a border_bottom_width CSS attribute

pub const fn box_shadow_left(input: BoxShadowPreDisplayItem) -> Self[src]

Creates a box_shadow_left CSS attribute

pub const fn box_shadow_right(input: BoxShadowPreDisplayItem) -> Self[src]

Creates a box_shadow_right CSS attribute

pub const fn box_shadow_top(input: BoxShadowPreDisplayItem) -> Self[src]

Creates a box_shadow_top CSS attribute

pub const fn box_shadow_bottom(input: BoxShadowPreDisplayItem) -> Self[src]

Creates a box_shadow_bottom CSS attribute

Trait Implementations

impl Clone for CssProperty[src]

impl Debug for CssProperty[src]

impl Eq for CssProperty[src]

impl From<LayoutAlignContent> for CssProperty[src]

impl From<LayoutAlignItems> for CssProperty[src]

impl From<LayoutBottom> for CssProperty[src]

impl From<LayoutBoxSizing> for CssProperty[src]

impl From<LayoutDirection> for CssProperty[src]

impl From<LayoutDisplay> for CssProperty[src]

impl From<LayoutFlexGrow> for CssProperty[src]

impl From<LayoutFlexShrink> for CssProperty[src]

impl From<LayoutFloat> for CssProperty[src]

impl From<LayoutHeight> for CssProperty[src]

impl From<LayoutJustifyContent> for CssProperty[src]

impl From<LayoutLeft> for CssProperty[src]

impl From<LayoutMarginBottom> for CssProperty[src]

impl From<LayoutMarginLeft> for CssProperty[src]

impl From<LayoutMarginRight> for CssProperty[src]

impl From<LayoutMarginTop> for CssProperty[src]

impl From<LayoutMaxHeight> for CssProperty[src]

impl From<LayoutMaxWidth> for CssProperty[src]

impl From<LayoutMinHeight> for CssProperty[src]

impl From<LayoutMinWidth> for CssProperty[src]

impl From<LayoutPaddingBottom> for CssProperty[src]

impl From<LayoutPaddingLeft> for CssProperty[src]

impl From<LayoutPaddingRight> for CssProperty[src]

impl From<LayoutPaddingTop> for CssProperty[src]

impl From<LayoutPosition> for CssProperty[src]

impl From<LayoutRight> for CssProperty[src]

impl From<LayoutTop> for CssProperty[src]

impl From<LayoutWidth> for CssProperty[src]

impl From<LayoutWrap> for CssProperty[src]

impl From<StyleBackgroundContent> for CssProperty[src]

impl From<StyleBackgroundPosition> for CssProperty[src]

impl From<StyleBackgroundRepeat> for CssProperty[src]

impl From<StyleBackgroundSize> for CssProperty[src]

impl From<StyleBorderBottomColor> for CssProperty[src]

impl From<StyleBorderBottomLeftRadius> for CssProperty[src]

impl From<StyleBorderBottomRightRadius> for CssProperty[src]

impl From<StyleBorderBottomStyle> for CssProperty[src]

impl From<StyleBorderBottomWidth> for CssProperty[src]

impl From<StyleBorderLeftColor> for CssProperty[src]

impl From<StyleBorderLeftStyle> for CssProperty[src]

impl From<StyleBorderLeftWidth> for CssProperty[src]

impl From<StyleBorderRightColor> for CssProperty[src]

impl From<StyleBorderRightStyle> for CssProperty[src]

impl From<StyleBorderRightWidth> for CssProperty[src]

impl From<StyleBorderTopColor> for CssProperty[src]

impl From<StyleBorderTopLeftRadius> for CssProperty[src]

impl From<StyleBorderTopRightRadius> for CssProperty[src]

impl From<StyleBorderTopStyle> for CssProperty[src]

impl From<StyleBorderTopWidth> for CssProperty[src]

impl From<StyleCursor> for CssProperty[src]

impl From<StyleFontFamily> for CssProperty[src]

impl From<StyleFontSize> for CssProperty[src]

impl From<StyleLetterSpacing> for CssProperty[src]

impl From<StyleLineHeight> for CssProperty[src]

impl From<StyleTabWidth> for CssProperty[src]

impl From<StyleTextAlignmentHorz> for CssProperty[src]

impl From<StyleTextColor> for CssProperty[src]

impl From<StyleWordSpacing> for CssProperty[src]

impl Hash for CssProperty[src]

impl Ord for CssProperty[src]

impl PartialEq<CssProperty> for CssProperty[src]

impl PartialOrd<CssProperty> for CssProperty[src]

impl StructuralEq for CssProperty[src]

impl StructuralPartialEq for CssProperty[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.