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§
- Clip
Inspector Props - Props for the
ClipInspectorcomponent.
Constants§
- SPEED_
PRESETS - Speed presets offered in the inspector (playback multipliers).
1.0is real-time;< 1is slow-motion,> 1is fast-forward.
Functions§
- Clip
Inspector - 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
currentmatchespresetwithin float tolerance. - selected_
segment_ speed - The speed (
timescale) of segmentindex, if it exists. - speed_
label - A compact label for a speed multiplier —
1.0 → "1×",0.5 → "0.5×". (Rust’sf64Displaydrops a whole number’s trailing.0.) - speed_
panel 🔒 - The speed section for the selected clip
indexat itscurrentspeed.