[−][src]Enum azul_css::CssProperty
Represents one parsed CSS key-value pair, such as "width: 20px"
=> CssProperty::Width(LayoutWidth::px(20.0))
Variants
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>)
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]
input: StyleBorderBottomLeftRadius
) -> Self
Creates a border_bottom_left_radius
CSS attribute
pub const fn border_bottom_right_radius(
input: StyleBorderBottomRightRadius
) -> Self
[src]
input: StyleBorderBottomRightRadius
) -> Self
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]
fn clone(&self) -> CssProperty
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CssProperty
[src]
impl Eq for CssProperty
[src]
impl From<LayoutAlignContent> for CssProperty
[src]
fn from(e: LayoutAlignContent) -> Self
[src]
impl From<LayoutAlignItems> for CssProperty
[src]
fn from(e: LayoutAlignItems) -> Self
[src]
impl From<LayoutBottom> for CssProperty
[src]
fn from(e: LayoutBottom) -> Self
[src]
impl From<LayoutBoxSizing> for CssProperty
[src]
fn from(e: LayoutBoxSizing) -> Self
[src]
impl From<LayoutDirection> for CssProperty
[src]
fn from(e: LayoutDirection) -> Self
[src]
impl From<LayoutDisplay> for CssProperty
[src]
fn from(e: LayoutDisplay) -> Self
[src]
impl From<LayoutFlexGrow> for CssProperty
[src]
fn from(e: LayoutFlexGrow) -> Self
[src]
impl From<LayoutFlexShrink> for CssProperty
[src]
fn from(e: LayoutFlexShrink) -> Self
[src]
impl From<LayoutFloat> for CssProperty
[src]
fn from(e: LayoutFloat) -> Self
[src]
impl From<LayoutHeight> for CssProperty
[src]
fn from(e: LayoutHeight) -> Self
[src]
impl From<LayoutJustifyContent> for CssProperty
[src]
fn from(e: LayoutJustifyContent) -> Self
[src]
impl From<LayoutLeft> for CssProperty
[src]
fn from(e: LayoutLeft) -> Self
[src]
impl From<LayoutMarginBottom> for CssProperty
[src]
fn from(e: LayoutMarginBottom) -> Self
[src]
impl From<LayoutMarginLeft> for CssProperty
[src]
fn from(e: LayoutMarginLeft) -> Self
[src]
impl From<LayoutMarginRight> for CssProperty
[src]
fn from(e: LayoutMarginRight) -> Self
[src]
impl From<LayoutMarginTop> for CssProperty
[src]
fn from(e: LayoutMarginTop) -> Self
[src]
impl From<LayoutMaxHeight> for CssProperty
[src]
fn from(e: LayoutMaxHeight) -> Self
[src]
impl From<LayoutMaxWidth> for CssProperty
[src]
fn from(e: LayoutMaxWidth) -> Self
[src]
impl From<LayoutMinHeight> for CssProperty
[src]
fn from(e: LayoutMinHeight) -> Self
[src]
impl From<LayoutMinWidth> for CssProperty
[src]
fn from(e: LayoutMinWidth) -> Self
[src]
impl From<LayoutPaddingBottom> for CssProperty
[src]
fn from(e: LayoutPaddingBottom) -> Self
[src]
impl From<LayoutPaddingLeft> for CssProperty
[src]
fn from(e: LayoutPaddingLeft) -> Self
[src]
impl From<LayoutPaddingRight> for CssProperty
[src]
fn from(e: LayoutPaddingRight) -> Self
[src]
impl From<LayoutPaddingTop> for CssProperty
[src]
fn from(e: LayoutPaddingTop) -> Self
[src]
impl From<LayoutPosition> for CssProperty
[src]
fn from(e: LayoutPosition) -> Self
[src]
impl From<LayoutRight> for CssProperty
[src]
fn from(e: LayoutRight) -> Self
[src]
impl From<LayoutTop> for CssProperty
[src]
impl From<LayoutWidth> for CssProperty
[src]
fn from(e: LayoutWidth) -> Self
[src]
impl From<LayoutWrap> for CssProperty
[src]
fn from(e: LayoutWrap) -> Self
[src]
impl From<StyleBackgroundContent> for CssProperty
[src]
fn from(e: StyleBackgroundContent) -> Self
[src]
impl From<StyleBackgroundPosition> for CssProperty
[src]
fn from(e: StyleBackgroundPosition) -> Self
[src]
impl From<StyleBackgroundRepeat> for CssProperty
[src]
fn from(e: StyleBackgroundRepeat) -> Self
[src]
impl From<StyleBackgroundSize> for CssProperty
[src]
fn from(e: StyleBackgroundSize) -> Self
[src]
impl From<StyleBorderBottomColor> for CssProperty
[src]
fn from(e: StyleBorderBottomColor) -> Self
[src]
impl From<StyleBorderBottomLeftRadius> for CssProperty
[src]
fn from(e: StyleBorderBottomLeftRadius) -> Self
[src]
impl From<StyleBorderBottomRightRadius> for CssProperty
[src]
fn from(e: StyleBorderBottomRightRadius) -> Self
[src]
impl From<StyleBorderBottomStyle> for CssProperty
[src]
fn from(e: StyleBorderBottomStyle) -> Self
[src]
impl From<StyleBorderBottomWidth> for CssProperty
[src]
fn from(e: StyleBorderBottomWidth) -> Self
[src]
impl From<StyleBorderLeftColor> for CssProperty
[src]
fn from(e: StyleBorderLeftColor) -> Self
[src]
impl From<StyleBorderLeftStyle> for CssProperty
[src]
fn from(e: StyleBorderLeftStyle) -> Self
[src]
impl From<StyleBorderLeftWidth> for CssProperty
[src]
fn from(e: StyleBorderLeftWidth) -> Self
[src]
impl From<StyleBorderRightColor> for CssProperty
[src]
fn from(e: StyleBorderRightColor) -> Self
[src]
impl From<StyleBorderRightStyle> for CssProperty
[src]
fn from(e: StyleBorderRightStyle) -> Self
[src]
impl From<StyleBorderRightWidth> for CssProperty
[src]
fn from(e: StyleBorderRightWidth) -> Self
[src]
impl From<StyleBorderTopColor> for CssProperty
[src]
fn from(e: StyleBorderTopColor) -> Self
[src]
impl From<StyleBorderTopLeftRadius> for CssProperty
[src]
fn from(e: StyleBorderTopLeftRadius) -> Self
[src]
impl From<StyleBorderTopRightRadius> for CssProperty
[src]
fn from(e: StyleBorderTopRightRadius) -> Self
[src]
impl From<StyleBorderTopStyle> for CssProperty
[src]
fn from(e: StyleBorderTopStyle) -> Self
[src]
impl From<StyleBorderTopWidth> for CssProperty
[src]
fn from(e: StyleBorderTopWidth) -> Self
[src]
impl From<StyleCursor> for CssProperty
[src]
fn from(e: StyleCursor) -> Self
[src]
impl From<StyleFontFamily> for CssProperty
[src]
fn from(e: StyleFontFamily) -> Self
[src]
impl From<StyleFontSize> for CssProperty
[src]
fn from(e: StyleFontSize) -> Self
[src]
impl From<StyleLetterSpacing> for CssProperty
[src]
fn from(e: StyleLetterSpacing) -> Self
[src]
impl From<StyleLineHeight> for CssProperty
[src]
fn from(e: StyleLineHeight) -> Self
[src]
impl From<StyleTabWidth> for CssProperty
[src]
fn from(e: StyleTabWidth) -> Self
[src]
impl From<StyleTextAlignmentHorz> for CssProperty
[src]
fn from(e: StyleTextAlignmentHorz) -> Self
[src]
impl From<StyleTextColor> for CssProperty
[src]
fn from(e: StyleTextColor) -> Self
[src]
impl From<StyleWordSpacing> for CssProperty
[src]
fn from(e: StyleWordSpacing) -> Self
[src]
impl Hash for CssProperty
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for CssProperty
[src]
fn cmp(&self, other: &CssProperty) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<CssProperty> for CssProperty
[src]
fn eq(&self, other: &CssProperty) -> bool
[src]
fn ne(&self, other: &CssProperty) -> bool
[src]
impl PartialOrd<CssProperty> for CssProperty
[src]
fn partial_cmp(&self, other: &CssProperty) -> Option<Ordering>
[src]
fn lt(&self, other: &CssProperty) -> bool
[src]
fn le(&self, other: &CssProperty) -> bool
[src]
fn gt(&self, other: &CssProperty) -> bool
[src]
fn ge(&self, other: &CssProperty) -> bool
[src]
impl StructuralEq for CssProperty
[src]
impl StructuralPartialEq for CssProperty
[src]
Auto Trait Implementations
impl RefUnwindSafe for CssProperty
impl Send for CssProperty
impl Sync for CssProperty
impl Unpin for CssProperty
impl UnwindSafe for CssProperty
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,