Canvas: add a nice new syntax for constraint packing

Multimedia / Ardour - Paul Davis [linuxaudiosystems.com] - 13 August 2021 18:51 UTC

502a9e80dc Canvas: add a nice new syntax for constraint packing
libs/canvas/canvas/constrained_item.h | 54 +++++++++----
libs/canvas/cbox.cc | 15 ++--
libs/canvas/constrained_item.cc | 142 +++++++++++++++++++++++++++++++---
libs/canvas/constraint_packer.cc | 96 ++++++++++-------------
libs/canvas/constraint_test.cc | 11 +--
libs/canvas/constraint_test4.cc | 128 ++++++++++++++++++++++++++++++
libs/canvas/wscript | 9 +++
7 files changed, 365 insertions(+), 90 deletions(-)

  • Share