Crate kas_view

Crate kas_view 

Source
Expand description

§Views

Views allow virtual scrolling and query views over a data set, supporting both sync and async access.

Each visible data Item is assigned a view widget, with dynamic re-assignment as the view changes.

§Data sets and clerks

The full data set might be available in local memory, on disk, or on a remote server.

A DataClerk manages all interactions between the view and the data as well as providing a local cache of (at least) the currently visible data.

§Data generators

A higher-level interface is provided for data generators: DataGenerator using clerk GeneratorClerk.

§View controller

This crate provides the following view controllers:

  • ListView constructs a row or column view over items indexed by type usize
  • GridView constructs a table over items indexed by type (u32, u32)

§Driver

A view controller uses a driver to construct and re-assign view widgets. Simple types (strings and numbers) may use a pre-defined driver, otherwise a custom implementation of Driver is required.

Re-exports§

pub use driver::Driver;

Modules§

driver
View drivers
filter
Filters over data

Structs§

GeneratorClerk
An implementation of DataClerk for data generators
GridIndex
Index of a grid cell
GridView
View controller for 2D indexable data (grid)
ListView
View controller for 1D indexable data (list)
Token
A pair which may be borrowed over the first item

Enums§

DataChanges
Indicates whether an update to a DataClerk changes any keys or values
DataLen
Result of Self::len
GeneratorChanges
Indicates whether an update to a DataGenerator has changed
SelectionMode
Selection mode used by ListView
SelectionMsg
Used to notify selection and deselection of ListView and GridView children
TokenChanges
Return value of DataClerk::update_token

Traits§

DataClerk
Data access manager
DataGenerator
A generator for use with GeneratorClerk
DataKey
Bounds on the key type