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§
- Document
History - A widget that owns a document’s History: its registration, restore readiness and presentation.
- Presents
History Entries - 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 inwidget’s tree that keeps one, over the documentdocit draws. Returns whether one took it. - document_
action_ applied - Tell
widgeta 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 forscope.- 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
entryto the first widget inwidget’s tree that presents History entries. Returns whether it took it up.