Commit graph

15 commits

Author SHA1 Message Date
Paul Davis
86a31e34ba Canvas: fix recursive calling of Item::size_allocate()
ConstraintPacker is the one Item-derivative that should NOT call Item::size_allocate_children()
because it just did the size computation for its children and called their
::constrained() method, which in turns calls size_allocate() with the correct size
2021-08-13 12:51:27 -06:00
Paul Davis
dbe37d2752 Canvas: make possible even more debugging of constraint packing 2021-08-13 12:51:27 -06:00
Paul Davis
f118b3ab53 Canvas: remove dangling cairo path in Arc or ConstraintPacker if fill was requested but not outline 2021-08-13 12:51:27 -06:00
Paul Davis
1d96bad59f Canvas: remove cBox (API fully merged into ConstraintPacker) 2021-08-13 12:51:27 -06:00
Paul Davis
1b66890547 Canvas: continuing move of cBox functionality into ConstraintPacker 2021-08-13 12:51:27 -06:00
Paul Davis
4e82279ce4 Canvas: next step of merging cBox and ConstraintPacker 2021-08-13 12:51:27 -06:00
Paul Davis
af60c50990 first steps in merging cBox into constraint packer 2021-08-13 12:51:27 -06:00
Paul Davis
ff6fe51d76 Canvas: improve implementation/design of ConstraintPacker::preferred_size() 2021-08-13 12:51:26 -06:00
Paul Davis
502a9e80dc Canvas: add a nice new syntax for constraint packing 2021-08-13 12:51:26 -06:00
Paul Davis
aa62460081 Canvas: re-use Solver as much as possible, with possible (but not substantive) speedup; remove debug output 2021-08-13 12:51:26 -06:00
Paul Davis
2598bdef2c Canvas: mark constraint-layout containers as layout-sensitive (like their children) 2021-08-13 12:51:26 -06:00
Paul Davis
a349d7e49b remove debug output 2021-08-13 12:51:26 -06:00
Paul Davis
a3039d3895 add/update constraint packing containers, test code 2021-08-13 12:51:25 -06:00
Paul Davis
1c3e743d2a Canvas: continued work on constraint packer 2021-08-13 12:51:25 -06:00
Paul Davis
539e1a1f1b stub constraint-based packer for canvas 2021-08-13 12:51:25 -06:00