Crate zng_wgt_undo_history

Source
Expand description

Undo history widget.

§Crate

This crate is part of the zng project.

Structs§

UndoEntryArgs
Represents an action in the undo or redo stack.
UndoHistory
W Undo/redo stack view.
UndoPanelArgs
Args to present the child of UndoHistory!.
UndoRedoButtonStyle
W Menu style button for an entry in a undo/redo stack.
UndoStackArgs
Represents an undo or redo stack.

Statics§

GROUP_BY_UNDO_INTERVAL_VAR
If undo entries are grouped by the UNDO.undo_interval.
UNDO_BUTTON_STYLE_FN_VAR
Style for the default undo/redo entry Button!.
UNDO_ENTRY_FN_VAR
Widget function for a single undo or redo entry.
UNDO_ENTRY_VAR
Variable set in each undo/redo entry widget.
UNDO_PANEL_FN_VAR
Widget function for the UndoHistory! child.
UNDO_STACK_FN_VAR
Widget function for an undo or redo stack.
UNDO_STACK_VAR
Variable set in each undo/redo stack widget.

Functions§

default_undo_entry_fn
Default UNDO_ENTRY_FN_VAR.
default_undo_panel_fn
Default UNDO_PANEL_FN_VAR.
default_undo_stack_fn
Default UNDO_STACK_FN_VAR.
group_by_undo_interval
P If undo entries are grouped by the UNDO.undo_interval.
is_cap_hovered_timestamp
P State is true when the widget is an undo_entry and it is hovered, has captured the mouse or a sibling with higher timestamp is hovered/has cap.
op
c Identifies what stack history is shown by the widget.
undo_button_style_fn
P Extend or replace the undo/redo entry button style in a context.
undo_entry
P Sets the undo/redo entry widget context.
undo_entry_fn
P Widget function that converts UndoEntryArgs to widgets.
undo_panel_fn
P Widget function that converts UndoPanelArgs to widgets.
undo_stack
P Setups the context in an undo/redo stack widget.
undo_stack_fn
P Widget function that converts UndoStackArgs to widgets.