#[repr(u8)]pub enum CssProperty {
Show 23 variants
BackgroundColor = 0,
BorderBottomWidth = 1,
BorderColor = 2,
BorderRightStyle = 3,
BorderRightWidth = 4,
BorderTopWidth = 5,
BorderStyle = 6,
BorderWidth = 7,
Bottom = 8,
Color = 9,
Height = 10,
Left = 11,
Margin = 12,
MarginLeft = 13,
MarginRight = 14,
MarginTop = 15,
MinWidth = 16,
PaddingLeft = 17,
Position = 18,
TextShadow = 19,
Top = 20,
Width = 21,
VerticalAlign = 22,
}
Expand description
Represents a set of standard CSS property names.
This enum is serialized in kebab-case
(the standard CSS syntax) via
strum
. It can be used for mapping strongly-typed property names to their
CSS strings and is especially useful when generating styles
programmatically.
Variants§
BackgroundColor = 0
Sets the background color of an element. See: https://developer.mozilla.org/docs/Web/CSS/background-color
BorderBottomWidth = 1
Sets the width of the bottom border of an element. See: https://developer.mozilla.org/docs/Web/CSS/border-bottom-width
BorderColor = 2
Sets the color of the border on all four sides of an element. See: https://developer.mozilla.org/docs/Web/CSS/border-color
BorderRightStyle = 3
Sets the style of the right border. See: https://developer.mozilla.org/docs/Web/CSS/border-right-style
BorderRightWidth = 4
Sets the width of the right border of an element. See: https://developer.mozilla.org/docs/Web/CSS/border-right-width
BorderTopWidth = 5
Sets the width of the top border of an element. See: https://developer.mozilla.org/docs/Web/CSS/border-top-width
BorderStyle = 6
Sets the style of all four borders. See: https://developer.mozilla.org/docs/Web/CSS/border-style
BorderWidth = 7
Sets the width of all four borders. See: https://developer.mozilla.org/docs/Web/CSS/border-width
Bottom = 8
Specifies how far the bottom edge of an element is from the bottom edge of its containing block. See: https://developer.mozilla.org/docs/Web/CSS/bottom
Color = 9
Sets the color of the text content of an element. See: https://developer.mozilla.org/docs/Web/CSS/color
Height = 10
Specifies the height of an element. See: https://developer.mozilla.org/docs/Web/CSS/height
Left = 11
Specifies how far the left edge of an element is from the left edge of its containing block. See: https://developer.mozilla.org/docs/Web/CSS/left
Margin = 12
Sets the margin area on all four sides of an element. See: https://developer.mozilla.org/docs/Web/CSS/margin
MarginLeft = 13
Sets the margin area on the left side of an element. See: https://developer.mozilla.org/docs/Web/CSS/margin-left
MarginRight = 14
Sets the margin area on the right side of an element. See: https://developer.mozilla.org/docs/Web/CSS/margin-right
MarginTop = 15
Sets the margin area on the top side of an element. See: https://developer.mozilla.org/docs/Web/CSS/margin-top
MinWidth = 16
Sets the minimum width of an element. See: https://developer.mozilla.org/docs/Web/CSS/min-width
PaddingLeft = 17
Sets the padding on the left side of an element. See: https://developer.mozilla.org/docs/Web/CSS/padding-left
Position = 18
Specifies how an element is positioned in the document. See: https://developer.mozilla.org/docs/Web/CSS/position
TextShadow = 19
Applies one or more shadows to text. See: https://developer.mozilla.org/docs/Web/CSS/text-shadow
Top = 20
Specifies how far the top edge of an element is from the top edge of its containing block. See: https://developer.mozilla.org/docs/Web/CSS/top
Width = 21
Specifies the width of an element. See: https://developer.mozilla.org/docs/Web/CSS/width
VerticalAlign = 22
Sets the vertical alignment of an inline or table-cell element. See: https://developer.mozilla.org/docs/Web/CSS/vertical-align
Implementations§
Source§impl CssProperty
impl CssProperty
Trait Implementations§
Source§impl AsRef<str> for CssProperty
impl AsRef<str> for CssProperty
Source§impl Clone for CssProperty
impl Clone for CssProperty
Source§fn clone(&self) -> CssProperty
fn clone(&self) -> CssProperty
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more