[][src]Enum azul_css::CssPropertyType

pub enum CssPropertyType {
    TextColor,
    FontSize,
    FontFamily,
    TextAlign,
    LetterSpacing,
    LineHeight,
    WordSpacing,
    TabWidth,
    Cursor,
    Display,
    Float,
    BoxSizing,
    Width,
    Height,
    MinWidth,
    MinHeight,
    MaxWidth,
    MaxHeight,
    Position,
    Top,
    Right,
    Left,
    Bottom,
    FlexWrap,
    FlexDirection,
    FlexGrow,
    FlexShrink,
    JustifyContent,
    AlignItems,
    AlignContent,
    OverflowX,
    OverflowY,
    PaddingTop,
    PaddingLeft,
    PaddingRight,
    PaddingBottom,
    MarginTop,
    MarginLeft,
    MarginRight,
    MarginBottom,
    Background,
    BackgroundImage,
    BackgroundColor,
    BackgroundPosition,
    BackgroundSize,
    BackgroundRepeat,
    BorderTopLeftRadius,
    BorderTopRightRadius,
    BorderBottomLeftRadius,
    BorderBottomRightRadius,
    BorderTopColor,
    BorderRightColor,
    BorderLeftColor,
    BorderBottomColor,
    BorderTopStyle,
    BorderRightStyle,
    BorderLeftStyle,
    BorderBottomStyle,
    BorderTopWidth,
    BorderRightWidth,
    BorderLeftWidth,
    BorderBottomWidth,
    BoxShadowLeft,
    BoxShadowRight,
    BoxShadowTop,
    BoxShadowBottom,
}

Represents a CSS key (for example "border-radius" => BorderRadius). You can also derive this key from a CssProperty by calling CssProperty::get_type().

Variants

TextColor
FontSize
FontFamily
TextAlign
LetterSpacing
LineHeight
WordSpacing
TabWidth
Cursor
Display
Float
BoxSizing
Width
Height
MinWidth
MinHeight
MaxWidth
MaxHeight
Position
Top
Right
Left
Bottom
FlexWrap
FlexDirection
FlexGrow
FlexShrink
JustifyContent
AlignItems
AlignContent
OverflowX
OverflowY
PaddingTop
PaddingLeft
PaddingRight
PaddingBottom
MarginTop
MarginLeft
MarginRight
MarginBottom
Background
BackgroundImage
BackgroundColor
BackgroundPosition
BackgroundSize
BackgroundRepeat
BorderTopLeftRadius
BorderTopRightRadius
BorderBottomLeftRadius
BorderBottomRightRadius
BorderTopColor
BorderRightColor
BorderLeftColor
BorderBottomColor
BorderTopStyle
BorderRightStyle
BorderLeftStyle
BorderBottomStyle
BorderTopWidth
BorderRightWidth
BorderLeftWidth
BorderBottomWidth
BoxShadowLeft
BoxShadowRight
BoxShadowTop
BoxShadowBottom

Implementations

impl CssPropertyType[src]

pub fn from_str(input: &str, map: &CssKeyMap) -> Option<Self>[src]

Parses a CSS key, such as width from a string:

Example

let map = get_css_key_map();
assert_eq!(Some(CssPropertyType::Width), CssPropertyType::from_str("width", &map));
assert_eq!(Some(CssPropertyType::JustifyContent), CssPropertyType::from_str("justify-content", &map));
assert_eq!(None, CssPropertyType::from_str("asdfasdfasdf", &map));

pub fn to_str(&self, map: &CssKeyMap) -> &'static str[src]

Returns the original string that was used to construct this CssPropertyType.

pub fn is_inheritable(&self) -> bool[src]

Returns whether this property will be inherited during cascading

pub fn can_trigger_relayout(&self) -> bool[src]

Returns whether this property can trigger a re-layout (important for incremental layout and caching layouted DOMs).

Trait Implementations

impl Clone for CssPropertyType[src]

impl Copy for CssPropertyType[src]

impl Debug for CssPropertyType[src]

impl Display for CssPropertyType[src]

impl Eq for CssPropertyType[src]

impl Hash for CssPropertyType[src]

impl Ord for CssPropertyType[src]

impl PartialEq<CssPropertyType> for CssPropertyType[src]

impl PartialOrd<CssPropertyType> for CssPropertyType[src]

impl StructuralEq for CssPropertyType[src]

impl StructuralPartialEq for CssPropertyType[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> ToString for T where
    T: Display + ?Sized
[src]

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.