Skip to main content

Module undo_button

Module undo_button 

Expand description

The toolkit’s Undo / Redo control.

UndoButton reads the host-published UndoStatus, exposes the same availability to assistive technology, and asks the host to perform the verb through the same path as Ctrl+Z. It provides a discoverable pointer and screen-reader control for Undo and Redo.

ⓘ
// In a toolbar row:
Row::new()
    .with_child(Box::new(UndoButton::undo()))
    .with_child(Box::new(UndoButton::redo()))

No further wiring: the host publishes the status and drains the request by sweeping its node_map, so the control works at any depth.

Structs§

UndoButton
An Undo or Redo button wired to the host’s history.