Skip to main content

Module clip_inspector

Module clip_inspector 

Source
Expand description

Clip inspector — per-segment controls (ED.14: speed) (M-EDIT).

The right-hand inspector for the selected clip. Today it carries the speed control: a row of multiplier presets that retime one segment via EditOp::SetSpeed. Because a segment’s timescale changes how many project frames it occupies, setting speed reshapes the timeline — the filmstrip re-flows and the playback clock re-syncs automatically (the edit runs through the shared [edit::History], which pushes the new duration to the backend clock). The Style + Cursor tabs (ED.18 / ED.19) grow this same panel.

Structs§

ClipInspectorProps
Props for the ClipInspector component.

Constants§

SPEED_PRESETS
Speed presets offered in the inspector (playback multipliers). 1.0 is real-time; < 1 is slow-motion, > 1 is fast-forward.

Functions§

ClipInspector
The per-clip inspector. Reads the clip selection, project, and edit history from context; renders speed presets for the selected clip.
is_active_speed
Whether current matches preset within float tolerance.
selected_segment_speed
The speed (timescale) of segment index, if it exists.
speed_label
A compact label for a speed multiplier — 1.0 → "1×", 0.5 → "0.5×". (Rust’s f64 Display drops a whole number’s trailing .0.)
speed_panel 🔒
The speed section for the selected clip index at its current speed.

Type Aliases§

HistoryStore 🔒
ProjectSignal 🔒