Skip to main content

Module capability

Module capability 

Expand description

How a widget takes part in document History: the capabilities an app root or a document owner provides, and the walks the runner uses to reach them.

Traits§

DocumentHistory
A widget that owns a document’s History: its registration, restore readiness and presentation.
PresentsHistoryEntries
A live widget that presents its document’s changes in the shared History view: the app says how each of its changes shows (crate::widget::HistoryEntryPresenter) and takes up the ones a person chooses to open. History stays the one service; this is only the app’s word on what its changes look like.

Functions§

adopt_presentation
Show local, a live window’s presentation, in the first widget in widget’s tree that keeps one, over the document doc it draws. Returns whether one took it.
document_action_applied
Tell widget a Document action it owns was applied.
document_history_definition
widget’s History presentation declaration.
history_entry_presenter
The presenter of the first widget in widget’s tree that presents its History entries.
history_registration
widget’s History registration (none unless it owns History).
history_restore_readiness
widget’s own restore veto for scope.
live_presentation
The presentation of the first widget in widget’s tree that keeps one (ApplicationViewState): how the window shows its record (a mode, the open item), so History opens a past version as the window shows it.
open_history_entry
Hand entry to the first widget in widget’s tree that presents History entries. Returns whether it took it up.