Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
gesture_budget.hpp
Go to the documentation of this file.
1#pragma once
2
5
7
8#include <cstddef>
9#include <span>
10
11namespace pulp::timeline_editor {
12
16
35 std::size_t step_bytes = 0;
42 std::size_t steps = 0;
43};
44
93 std::span<const timeline::Command> step_forward,
94 std::span<const timeline::Command> step_inverse) noexcept;
95
97
98} // namespace pulp::timeline_editor
UndoGestureBudget undo_gesture_budget(const timeline::UndoLimits &limits, std::span< const timeline::Command > step_forward, std::span< const timeline::Command > step_inverse) noexcept
Returns what one open gesture of uniform per-step cost may spend.
ScriptedUiHost is a SequencerUiHost whose playhead is written by the caller instead of an engine,...
Definition edit_intent.hpp:14
Bounds the number and retained memory of undo groups in a session.
Definition undo.hpp:18
What one open gesture may spend against the undo budget.
Definition gesture_budget.hpp:33
std::size_t step_bytes
What one step charges: its forward commands plus its inverse.
Definition gesture_budget.hpp:35
std::size_t steps
Steps admitted into one open group, counting the opening Begin.
Definition gesture_budget.hpp:42