Skip to main content

Module model

Module model 

Source
Expand description

The tree’s model: what the view knows of the application’s tree.

The application owns its tree; the view keeps a cache of the branches it loaded, keyed by node, so that edits (insert, remove, move, rename) arriving at any time keep the selection and the expansion, which are keyed too. The rows on screen are the cache flattened through the expanded branches, rebuilt only when something changed.

Structs§

Model
The cache, the expansion and the rows.
Node
A node as the application gives it.

Enums§

Children
What the view knows of a branch’s children.
Edit
A change to the cache, from the application or a source.
Position
Where dropped nodes go, relative to the target.
Row
A row on screen.