Module component_lifecycle
Expand description
How a widget takes part in closing its window and components: unsaved work, persistence checkpoints, component close reports and deferred window close.
A widget providing ComponentLifecycle answers for its subtree; the
defaults do what an ordinary container did (reach the children), so an
override names only what differs.
Traits§
- Component
Lifecycle - A widget owning components, documents or a window-close policy.
- Window
Activation - A presentation can request activation without changing its document or owner.
Functions§
- checkpoint_
components - Checkpoint every component under
widget; returns the errors. - close_
components - Close every component under
widget. - finish_
admitted_ close - Finish an admitted close under
widget. - on_
window_ close_ requested widget’s answer to an ordinary window close request.- take_
component_ close_ reports - Drain close reports under
widget. - take_
replacement - The component
widget’s own component asked to show in its place. - take_
save_ status_ presentation - Whether the record
widget’s own component shows changed durability, which the root has synced with and a frame must present. - take_
window_ activation_ intent - Consume an activation request through the root’s existing capability door.
- take_
window_ close_ intent - Whether
widgetapproved a deferred window close. - unsaved_
documents - Unsaved external documents under
widget.