Module druid::widget::prelude

source ·
Expand description

The types required to implement a Widget.

Structs

  • Constraints for layout.
  • An environment passed down through all widget traversals.
  • A mutable context provided to event handling methods of widgets.
  • A context provided to layout-handling methods of widgets.
  • A mutable context provided to the lifecycle method on widgets.
  • A context passed to paint methods of widgets.
  • A 2D size.
  • A mutable context provided to data update methods of widgets.
  • A unique identifier for a single Widget.

Enums

  • An event, propagated downwards during event flow.
  • Application life cycle events.

Traits

  • A trait used to represent value types.
  • The main trait for rendering graphics.
  • The trait implemented by all widgets.

Derive Macros

  • Generates implementations of the Data trait.