[−][src]Crate azul_css
Provides datatypes used to describe an application's style using the Azul GUI framework.
Structs
BorderSide | |
BoxShadowPreDisplayItem | |
ColorF | f32-based color, range 0.0 to 1.0 (similar to webrenders ColorF) |
ColorU | u8-based color, range 0 to 255 (similar to webrenders ColorU) |
Css | Css stylesheet - contains a parsed CSS stylesheet in "rule blocks", i.e. blocks of key-value pairs associated with a selector path. |
CssImageId | Note: In theory, we could take a reference here, but this leads to horrible lifetime issues. |
CssKeyMap | |
CssPath | Represents a full CSS path (i.e. the "div#id.class" selector belonging to a CSS "content group" (the following key-value block)). |
CssRuleBlock | One block of rules that applies a bunch of rules to a "path" in the style, i.e.
|
DynamicCssProperty | A |
FloatValue | Wrapper around an f32 value that is internally casted to an isize, in order to provide hash-ability (to avoid numerical instability). |
FontId | |
GradientStopPre | |
HotReloadOverrideHandler | Custom hot-reloader combinator that can be used to merge hot-reloaded styles onto a base style. Can be useful when working from a base configuration, such as the OS-native styles. |
LayoutBottom | Represents a |
LayoutFlexGrow | Represents a |
LayoutFlexShrink | Represents a |
LayoutHeight | Represents a |
LayoutLeft | Represents a |
LayoutMarginBottom | Represents a |
LayoutMarginLeft | Represents a |
LayoutMarginRight | Represents a |
LayoutMarginTop | Represents a |
LayoutMaxHeight | Represents a |
LayoutMaxWidth | Represents a |
LayoutMinHeight | Represents a |
LayoutMinWidth | Represents a |
LayoutPaddingBottom | Represents a |
LayoutPaddingLeft | Represents a |
LayoutPaddingRight | Represents a |
LayoutPaddingTop | Represents a |
LayoutPoint | Only used for calculations: Point coordinate (x, y) in layout space. |
LayoutRect | Only used for calculations: Rectangle (x, y, width, height) in layout space. |
LayoutRight | Represents a |
LayoutSideOffsets | Offsets of the border-width calculations |
LayoutSize | Only used for calculations: Size (width, height) in layout space. |
LayoutTop | Represents a |
LayoutWidth | Represents a |
LinearGradient | |
NinePatchBorder | |
NormalBorder | Represents a normal |
PercentageValue | Wrapper around FloatValue, represents a percentage instead
of just being a regular floating-point value, i.e |
PixelSize | Represents a parsed pair of |
PixelValue | FloatValue, but associated with a certain metric (i.e. px, em, etc.) |
PixelValueNoPercent | Same as PixelValue, but doesn't allow a "%" sign |
RadialGradient | |
RectLayout | |
RectStyle | Stylistic options of the rectangle that don't influence the layout |
RuleIterator | |
ScrollbarInfo | Holds info necessary for layouting / styling scrollbars (-webkit-scrollbar) |
ScrollbarStyle | Width and height of the scrollbars at the side of the text field. |
StyleBackgroundPosition | Represents a |
StyleBorderBottomColor | Represents a |
StyleBorderBottomLeftRadius | Represents a |
StyleBorderBottomRightRadius | Represents a |
StyleBorderBottomStyle | Represents a |
StyleBorderBottomWidth | Represents a |
StyleBorderLeftColor | Represents a |
StyleBorderLeftStyle | Represents a |
StyleBorderLeftWidth | Represents a |
StyleBorderRightColor | Represents a |
StyleBorderRightStyle | Represents a |
StyleBorderRightWidth | Represents a |
StyleBorderSide | |
StyleBorderTopColor | Represents a |
StyleBorderTopLeftRadius | Represents a |
StyleBorderTopRightRadius | Represents a |
StyleBorderTopStyle | Represents a |
StyleBorderTopWidth | Represents a |
StyleFontFamily | Represents a |
StyleFontSize | Represents a |
StyleLetterSpacing | Represents a |
StyleLineHeight | Represents a |
StyleTabWidth | Represents a |
StyleTextColor | Represents a |
StyleWordSpacing | Represents a |
Stylesheet |
Enums
BackgroundPositionHorizontal | |
BackgroundPositionVertical | |
BorderDetails | |
BorderStyle | Style of a |
BorderStyleNoNone | |
BoxShadowClipMode | What direction should a |
CombinedCssPropertyType | |
CssDeclaration | Contains one parsed |
CssNthChildSelector | |
CssPathPseudoSelector | |
CssPathSelector | |
CssProperty | Represents one parsed CSS key-value pair, such as |
CssPropertyType | Represents a CSS key (for example |
CssPropertyValue | |
Direction | CSS direction (necessary for gradients). Can either be a fixed angle or a direction ("to right" / "to left", etc.). |
DirectionCorner | |
ExtendMode | Whether a |
GradientType | |
LayoutAlignContent | Represents a |
LayoutAlignItems | Represents a |
LayoutAxis | Same as the |
LayoutBoxSizing | Represents a |
LayoutDirection | Represents a |
LayoutDisplay | Represents a |
LayoutFloat | Represents a |
LayoutJustifyContent | Represents a |
LayoutPosition | Represents a |
LayoutWrap | Represents a |
NodeTypePath | Signifies the type (i.e. the discriminant value) of a DOM node without carrying any of its associated data |
NodeTypePathParseError | |
Overflow | Represents a |
Shape | |
SizeMetric | Enum representing the metric associated with a number (px, pt, em, etc.) |
StyleBackgroundContent | |
StyleBackgroundRepeat | Represents a |
StyleBackgroundSize | Represents a |
StyleCursor | |
StyleTextAlignmentHorz | Horizontal text alignment enum (left, center, right) - default: |
StyleTextAlignmentVert | Vertical text alignment enum (top, center, bottom) - default: |
Constants
EM_HEIGHT | Currently hard-coded: Height of one em in pixels |
PT_TO_PX |
Traits
FormatAsCssValue | |
HotReloadHandler | Interface that can be used to reload a stylesheet while an application is running.
Initialize the |
Functions
get_css_key_map | Returns a map useful for parsing the keys of CSS stylesheets |
Type Definitions
CssContentGroup |