Module kas::view::driver

source ·
Available on crate feature view only.
Expand description

View drivers

The Driver trait is used as a binding between data models and controllers. Implementations define the view (using widgets) and message handling (mapping widget messages to actions).

Several implementations are provided to cover simpler cases:

  • View is the default, providing a simple read-only view over content
  • NavView is like View, but using keyboard navigable widgets

Intended usage is to import the module name rather than its contents, thus allowing referal to e.g. driver::View.

Structs

  • Default view widget constructor supporting keyboard navigation
  • Default view widget constructor

Traits