Crate zng_wgt_style

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_named_style_fn
Implements a NAMED_STYLE_FN_VAR, named_style_fn and NamedStyle! items.
impl_style_fn
Implements the contextual STYLE_FN_VAR and style_fn.
style_fn
Declares a style function closure.

Structs§

NamedStyleVar
Represents a ContextVar<StyleFn> that defines a named style.
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§

named_style_fn
B Set in the default properties of a named style to define the contextual variable for that style.
replace
B Fully replace the contextual style.
with_style_fn
Helper for declaring the style_fn property.