Module suzy::adapter[][src]

Adapters enable an arbitrarily large scrolling list of widgets to be created using finite memory.

See examples/adapter.rs for an example.

An Adapter view maintains a collection of widgets which are re-used as the view is scrolled to display new content.

The Adaptable trait is the primary way for a Widget to update it’s visuals in response to a change in an external data source.

Structs

AdapterView

Base adapter view.

DownwardVecLayout

An adapter layout which lays out elements from a Vec growing downwards.

Traits

Adaptable

Trait representing some view which may “adapt” to a specific change in external data.

AdapterLayout

An adapter layout defines how elements in the adapter view are organized.

AdapterLayoutInterface

An implementation of this trait is passed to AdapterLayout implementations.

Type Definitions

DownwardVecAdapter

An adapter view which displays the contents of a Vec growing downwards.