37 const auto start = first < second ? first : second;
38 const auto end = first < second ? second : first;
48 loop.enabled = enabled;
Result<T, E> — either holds a T or an E, never both.
Definition result.hpp:76
constexpr timebase::LoopRegion with_loop_enabled(timebase::LoopRegion loop, bool enabled) noexcept
Return loop with only its enabled state changed.
Definition loop_range.hpp:47
LoopRangeError
Why an already-snapped loop range could not be constructed.
Definition loop_range.hpp:18
runtime::Result< timebase::LoopRegion, LoopRangeError > loop_region_from_snapped_endpoints(timebase::TickPosition first, timebase::TickPosition second) noexcept
Build an enabled, structurally canonical loop candidate.
Definition loop_range.hpp:32
@ CollapsedSpan
Both endpoints resolve to the same document tick.
Definition loop_range.hpp:20
@ Ok
No error; bytes is authoritative.
Definition stream.hpp:32
ScriptedUiHost is a SequencerUiHost whose playhead is written by the caller instead of an engine,...
Definition edit_intent.hpp:14
Result<T, E> — success / failure union for fallible operations.
The loop bounds a transport honours, in document ticks.
Definition loop_region.hpp:20