Bundle long parameter lists into option structs

FrameRender carries a render's canvas, shader, document, animation, bounds,
background, scale and root transform. Dash and DashedShape replace three
dash floats and a GL mode and count. ViewCamera carries the view menu's
zoom, pan, center, fit and whether fitting is possible. ItemAdd and
ItemsMove carry what item_add and items_move took as seven or eight
positional arguments.
This commit is contained in:
shweet committed 2026-11-22 19:57:11 -05:00
1 parent 9e193a3d5c
commit ae7dafaef6
16 files changed
+185 -107

No files matched your search

+2 -1
View File
@@ -81,7 +81,8 @@ TEST_CASE("track and group selection follow regrouping")
selection_references_set(selection, anm2, SelectionKind::TRACKS, {{0, LAYER, 0, -1, LAYER, groupId}});
selection_references_set(selection, anm2, SelectionKind::GROUPS, {{0, LAYER, groupId}});
selection_edit(anm2, selection, [&] { items_move(anm2, 0, LAYER, {0}, {}, {false, LAYER, 2, -1}, DROP_BEFORE); });
selection_edit(anm2, selection,
[&] { items_move(anm2, {.type = LAYER, .ids = {0}, .target = {false, LAYER, 2, -1}}); });
UidIndex index(anm2);
CHECK(selection_references_get(selection, index, SelectionKind::TRACKS) == std::set<Reference>{{0, LAYER, 0}});