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§

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

Structs§

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

Functions§

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