Crate zng_wgt_style

Source
Expand description

Style building blocks.

§Crate

This crate is part of the zng project.

§Cargo Features

This crate provides 1 feature flag, not enabled by default.

§"trace_widget"

Integration with widget trace instrumentation.

Macros§

impl_style_fn
Implements the contextual STYLE_FN_VAR and style_fn.
style_fn
Declares a style function closure.

Structs§

Style
W Represents a set of properties that can be applied to any styleable widget.
StyleArgs
Arguments for StyleFn closure.
StyleBuilder
Represents a style instance.
StyleFn
Boxed shared closure that generates a style instance for a given widget context.
StyleMix
m Styleable widget mixin.

Functions§

replace
c Fully replace the contextual style.
style_base_fn
c Widget’s base style. All other styles set using style_fn are applied over this style.
with_style_fn
Helper for declaring the style_fn property.