Expand description
What the image tools share: the change a tool proposes, the hook that sees it before it is written, and the value’s form in a step’s arguments.
The histogram’s drag, the curve editor, the colour wheels, the zoom
control and the navigator work alike, after the sliders
(egui_pop_core::slider): each change is a Change (from, to,
the Cause, and whether the gesture is done), seen by the tool’s
on_change hook before it is written. The hook answers a
Verdict: allow, veto, or redirect to another value. A drag’s
frames come with done: false; its end comes once more, from the
value before the drag, with done: true, and a veto then puts the
value back. Escape during a drag puts it back with no trace.
StepValue gives each tool’s value a JSON form, so that an
application can run the finished changes as steps (ADR 0011; the
egui-pop-imaging crate does it).
Re-exports§
pub use crate::hooks::Verdict;
Structs§
- Change
- A change a tool proposes, or made.
Enums§
- Cause
- What made a tool’s value change.
Traits§
- Step
Value - A tool’s value in a step’s arguments and result.