Expand description
Provides datatypes used to describe an application’s style using the Azul GUI framework.
Macros§
- impl_
option - impl_
option_ inner - impl_
result - impl_
result_ inner - impl_
vec - impl_
vec_ as_ hashmap - impl_
vec_ clone - impl_
vec_ debug - impl_
vec_ eq - impl_
vec_ hash - impl_
vec_ mut - NOTE: impl_vec_mut can only exist for vectors that are known to be library-allocated!
- impl_
vec_ ord - impl_
vec_ partialeq - impl_
vec_ partialord
Structs§
- Angle
Value - FloatValue, but associated with a certain metric (i.e. px, em, etc.)
- AzString
- Border
Side - 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)
- Conic
Gradient - Css
- Css stylesheet - contains a parsed CSS stylesheet in “rule blocks”, i.e. blocks of key-value pairs associated with a selector path.
- CssDeclaration
Vec - CssKey
Map - CssNth
Child Pattern - CssPath
- Represents a full CSS path (i.e. the “div#id.class” selector belonging to a CSS “content group” (the following key-value block)).
- CssPath
Selector Vec - CssProperty
Vec - CssRule
Block - One block of rules that applies a bunch of rules to a “path” in the style, i.e.
div#myid.myclass -> { ("justify-content", "center") }
- CssRule
Block Vec - Direction
Corners - Dynamic
CssProperty - A
DynamicCssProperty
is a type of css property that can be changed on possibly every frame by the Rust code - for example to implement anOn::Hover
behaviour. - F32Vec
- Float
Value - Wrapper around an f32 value that is internally casted to an isize, in order to provide hash-ability (to avoid numerical instability).
- Font
Data - Font
Metrics - FontRef
- Interpolate
Resolver - Layout
Border Bottom Width - Represents a
border-bottom-width
attribute - Layout
Border Left Width - Represents a
border-left-width
attribute - Layout
Border Right Width - Represents a
border-right-width
attribute - Layout
Border TopWidth - Represents a
border-top-width
attribute - Layout
Bottom - Represents a
bottom
attribute - Layout
Flex Grow - Represents a
flex-grow
attribute - Layout
Flex Shrink - Represents a
flex-shrink
attribute - Layout
Height - Represents a
height
attribute - Layout
Left - Represents a
left
attribute - Layout
Margin Bottom - Represents a
padding-bottom
attribute - Layout
Margin Left - Represents a
padding-left
attribute - Layout
Margin Right - Represents a
padding-right
attribute - Layout
Margin Top - Represents a
padding-top
attribute - Layout
MaxHeight - Represents a
max-height
attribute - Layout
MaxWidth - Represents a
max-width
attribute - Layout
MinHeight - Represents a
min-height
attribute - Layout
MinWidth - Represents a
min-width
attribute - Layout
Padding Bottom - Represents a
padding-bottom
attribute - Layout
Padding Left - Represents a
padding-left
attribute - Layout
Padding Right - Represents a
padding-right
attribute - Layout
Padding Top - Represents a
padding-top
attribute - Layout
Point - Only used for calculations: Point coordinate (x, y) in layout space.
- Layout
Rect - Only used for calculations: Rectangle (x, y, width, height) in layout space.
- Layout
Rect Vec - Layout
Right - Represents a
right
attribute - Layout
Side Offsets - Offsets of the border-width calculations
- Layout
Size - Only used for calculations: Size (width, height) in layout space.
- Layout
Top - Represents a
top
attribute - Layout
Width - Represents a
width
attribute - Linear
Color Stop - Linear
Gradient - Nine
Patch Border - Normal
Border - Represents a normal
border
property (no image border / nine-patch border) - Normalized
Linear Color Stop - Normalized
Linear Color Stop Vec - Normalized
Radial Color Stop - Normalized
Radial Color Stop Vec - Percentage
Value - Wrapper around FloatValue, represents a percentage instead
of just being a regular floating-point value, i.e
5
=5%
- Pixel
Size - Represents a parsed pair of
5px, 10px
values - useful for border radius calculation - Pixel
Value - Pixel
Value NoPercent - Same as PixelValue, but doesn’t allow a “%” sign
- Radial
Color Stop - Radial
Gradient - Rule
Iterator - Scrollbar
Info - Holds info necessary for layouting / styling scrollbars (-webkit-scrollbar)
- Scrollbar
Style - Scrollbar style
- String
Vec - Style
Background Content Vec - Style
Background Position - Represents a
background-position
attribute - Style
Background Position Vec - Style
Background Repeat Vec - Style
Background Size Vec - Style
Blur - Style
Border Bottom Color - Represents a
border-bottom-width
attribute - Style
Border Bottom Left Radius - Represents a
border-left-width
attribute - Style
Border Bottom Right Radius - Represents a
border-bottom-width
attribute - Style
Border Bottom Style - Represents a
border-bottom-width
attribute - Style
Border Left Color - Represents a
border-left-width
attribute - Style
Border Left Style - Represents a
border-left-width
attribute - Style
Border Right Color - Represents a
border-right-width
attribute - Style
Border Right Style - Represents a
border-right-width
attribute - Style
Border Side - Style
Border TopColor - Represents a
border-top-width
attribute - Style
Border TopLeft Radius - Represents a
border-top-width
attribute - Style
Border TopRight Radius - Represents a
border-right-width
attribute - Style
Border TopStyle - Represents a
border-top-width
attribute - Style
BoxShadow - Style
Color Matrix - Style
Filter Offset - Style
Filter Vec - Style
Font Family Vec - Style
Font Size - Represents a
font-size
attribute - Style
Letter Spacing - Represents a
letter-spacing
attribute - Style
Line Height - Represents a
line-height
attribute - Style
Opacity - Represents an
opacity
attribute - Style
Perspective Origin - Represents a
perspective-origin
attribute - Style
TabWidth - Represents a
tab-width
attribute - Style
Text Color - Represents a
color
attribute - Style
Transform Matrix2D - Style
Transform Matrix3D - Style
Transform Origin - Represents a
transform-origin
attribute - Style
Transform Rotate3D - Style
Transform Scale2D - Style
Transform Scale3D - Style
Transform Skew2D - Style
Transform Translate2D - Style
Transform Translate3D - Style
Transform Vec - Style
Word Spacing - Represents a
word-spacing
attribute - Stylesheet
- Stylesheet
Vec - SvgCubic
Curve - SvgPoint
- SvgQuadratic
Curve - SvgRect
- SvgVector
- U8Vec
- U16Vec
- U32Vec
Enums§
- Angle
Metric - Animation
Interpolation Function - Background
Position Horizontal - Background
Position Vertical - Border
Details - Border
Style - Style of a
border
: solid, double, dash, ridge, etc. - Border
Style NoNone - BoxShadow
Clip Mode - What direction should a
box-shadow
be clipped in (inset or outset) - Combined
CssProperty Type - CssDeclaration
- Contains one parsed
key: value
pair, static or dynamic - CssDeclaration
VecDestructor - CssNth
Child Selector - CssPath
Pseudo Selector - CssPath
Selector - CssPath
Selector VecDestructor - CssProperty
- Represents one parsed CSS key-value pair, such as
"width: 20px"
=>CssProperty::Width(LayoutWidth::px(20.0))
- CssProperty
Type - Represents a CSS key (for example
"border-radius"
=>BorderRadius
). You can also derive this key from aCssProperty
by callingCssProperty::get_type()
. - CssProperty
Value - CssProperty
VecDestructor - CssRule
Block VecDestructor - Direction
- CSS direction (necessary for gradients). Can either be a fixed angle or a direction (“to right” / “to left”, etc.).
- Direction
Corner - Extend
Mode - Whether a
gradient
should be repeated or clamped to the edges. - F32Vec
Destructor - Layout
Align Content - Represents a
align-content
attribute - Layout
Align Items - Represents a
align-items
attribute - Layout
Axis - Same as the
LayoutFlexDirection
, but without the-reverse
properties, used in the layout solver, makes decisions based on horizontal / vertical direction easier to write. UseLayoutFlexDirection::get_axis()
to get the axis for a givenLayoutFlexDirection
. - Layout
BoxSizing - Represents a
flex-direction
attribute - default:Column
- Layout
Display - Represents a
display
attribute - Layout
Flex Direction - Represents a
flex-direction
attribute - default:Column
- Layout
Flex Wrap - Represents a
flex-wrap
attribute - default:Wrap
- Layout
Float - Represents a
float
attribute - Layout
Justify Content - Represents a
justify-content
attribute - Layout
Overflow - Represents a
overflow-x
oroverflow-y
property, seeTextOverflowBehaviour
- default:Auto
- Layout
Position - Represents a
position
attribute - default:Static
- Layout
Rect VecDestructor - Node
Type Tag - Signifies the type (i.e. the discriminant value) of a DOM node without carrying any of its associated data
- Node
Type TagParse Error - Node
Type TagParse Error Owned - Normalized
Linear Color Stop VecDestructor - Normalized
Radial Color Stop VecDestructor - Option
Angle Value - Option
AzString - Option
ColorU - Option
CssProperty - Option
F32 - Option
F64 - Option
Font Ref - Option
I16 - Option
I32 - Option
Layout Align Content Value - Option
Layout Align Items Value - Option
Layout Bottom Value - Option
Layout BoxSizing Value - Option
Layout Display Value - Option
Layout Flex Direction Value - Option
Layout Flex Grow Value - Option
Layout Flex Shrink Value - Option
Layout Flex Wrap Value - Option
Layout Float Value - Option
Layout Height Value - Option
Layout Justify Content Value - Option
Layout Left Value - Option
Layout Margin Bottom Value - Option
Layout Margin Left Value - Option
Layout Margin Right Value - Option
Layout Margin TopValue - Option
Layout MaxHeight Value - Option
Layout MaxWidth Value - Option
Layout MinHeight Value - Option
Layout MinWidth Value - Option
Layout Overflow Value - Option
Layout Padding Bottom Value - Option
Layout Padding Left Value - Option
Layout Padding Right Value - Option
Layout Padding TopValue - Option
Layout Point - Option
Layout Position Value - Option
Layout Rect - Option
Layout Right Value - Option
Layout Size - Option
Layout TopValue - Option
Layout Width Value - Option
Percentage Value - Option
Pixel Value NoPercent - Option
String Vec - Option
SvgPoint - Option
U8Vec - Option
U16 - Option
U32 - Radial
Gradient Size - Shape
- Size
Metric - Enum representing the metric associated with a number (px, pt, em, etc.)
- String
VecDestructor - Style
Backface Visibility - Represents a
backface-visibility
attribute - Style
Background Content - Style
Background Content VecDestructor - Style
Background Position VecDestructor - Style
Background Repeat - Represents a
background-repeat
attribute - Style
Background Repeat VecDestructor - Style
Background Size - Represents a
background-size
attribute - Style
Background Size VecDestructor - Style
Composite Filter - Style
Cursor - Style
Filter - Style
Filter VecDestructor - Style
Font Family - Represents a
font-family
attribute - Style
Font Family VecDestructor - Style
MixBlend Mode - Style
Text Align - Horizontal text alignment enum (left, center, right) - default:
Center
- Style
Transform - Represents an
opacity
attribute - Style
Transform VecDestructor - Style
Vertical Align - Vertical text alignment enum (top, center, bottom) - default:
Center
- Stylesheet
VecDestructor - U8Vec
Destructor - U16Vec
Destructor - U32Vec
Destructor
Constants§
Traits§
Functions§
- get_
css_ key_ map - Returns a map useful for parsing the keys of CSS stylesheets
Type Aliases§
- CssContent
Group - Layout
Align Content Value - Layout
Align Items Value - Layout
Border Bottom Width Value - Layout
Border Left Width Value - Layout
Border Right Width Value - Layout
Border TopWidth Value - Layout
Bottom Value - Layout
BoxSizing Value - Layout
Display Value - Layout
Flex Direction Value - Layout
Flex Grow Value - Layout
Flex Shrink Value - Layout
Flex Wrap Value - Layout
Float Value - Layout
Height Value - Layout
Justify Content Value - Layout
Left Value - Layout
Margin Bottom Value - Layout
Margin Left Value - Layout
Margin Right Value - Layout
Margin TopValue - Layout
MaxHeight Value - Layout
MaxWidth Value - Layout
MinHeight Value - Layout
MinWidth Value - Layout
Overflow Value - Layout
Padding Bottom Value - Layout
Padding Left Value - Layout
Padding Right Value - Layout
Padding TopValue - Layout
Position Value - Layout
Right Value - Layout
TopValue - Layout
Width Value - Scrollbar
Style Value - Style
Backface Visibility Value - Style
Background Content VecValue - Style
Background Position VecValue - Style
Background Repeat VecValue - Style
Background Size VecValue - Style
Border Bottom Color Value - Style
Border Bottom Left Radius Value - Style
Border Bottom Right Radius Value - Style
Border Bottom Style Value - Style
Border Left Color Value - Style
Border Left Style Value - Style
Border Right Color Value - Style
Border Right Style Value - Style
Border TopColor Value - Style
Border TopLeft Radius Value - Style
Border TopRight Radius Value - Style
Border TopStyle Value - Style
BoxShadow Value - Style
Cursor Value - Style
Filter VecValue - Style
Font Family VecValue - Style
Font Size Value - Style
Letter Spacing Value - Style
Line Height Value - Style
MixBlend Mode Value - Style
Opacity Value - Style
Perspective Origin Value - Style
TabWidth Value - Style
Text Align Value - Style
Text Color Value - Style
Transform Origin Value - Style
Transform VecValue - Style
Word Spacing Value