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§

Enums§

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

Statics§

  • Variable that indicates the context should use mobile UI themes.

Traits§

Functions§