Skip to main content

Module style

Module style 

Source

Structs§

Align
AutoColor
Color
ContentAlign
Hatch
Hatch fill pattern: a character repeated as background fill with a color.
ImportanceBitset
Bitset tracking which Style properties carry !important.
Keyline
Keyline border drawn between child widgets.
Offset
PropertyTransition
Per-property transition declaration.
Spacing
4-side spacing (used for both padding and margin).
Style
TextStyleFlags
Text style flags for compound text-style properties (border-title-style, link-style, etc.).
Theme
Tint

Enums§

BorderEdge
BorderType
BoxSizing
Constrain
Controls how floating/overlay elements are constrained to their container or viewport.
Display
Dock
HorizontalAlign
KeylineType
Layout
OffsetValue
A single offset axis value: either absolute cells or a percentage of the widget’s own size.
Overflow
OverlayMode
Pointer
Position
Scalar
CSS size value with unit support.
ScrollbarGutter
ScrollbarVisibility
Split
StyleProperty
Identifies a CSS property on Style for importance tracking.
TextAlign
TextOverflow
TextWrap
TransitionTiming
VerticalAlign
Visibility

Functions§

parse_auto_color_like
parse_color_like
resolve_scalar
Resolve a Scalar to a concrete cell count.

Type Aliases§

Margin
Backward-compatible alias — existing code that uses Margin keeps working.