Crate zng_wgt

source ·
Expand description

Basic widget properties and helpers for declaring widgets and properties.

§Widget Instantiation

See enable_widget_macros! if you want to instantiate widgets without depending on the zng crate.

§Crate

This crate is part of the zng project.

§Cargo Features

This crate provides 3 feature flags, 1 enabled by default.

§"debug_default"

Signal the build script to enable the "dyn_*", "inspector" and "trace_widget" features in debug builds.

Enabled by default.

§"dyn_closure"

Box closures at opportune places, such as Var::map, reducing the number of monomorphised types.

This speeds-up compilation time at the cost of runtime.

§"http"

Enable web tasks.

Modules§

  • Helper nodes.
  • Prelude for declaring properties and widgets.

Macros§

Structs§

  • Arguments for the node operation event properties.
  • W Minimal widget.
  • Boxed shared closure that generates a widget for a given data.

Enums§

  • Defines if and how a widget is hit-tested.
  • Inline mode explicitly selected for a widget.

Traits§

Functions§