35a9bcc409
add Rectangle::size_request() which returns actual rectangle size, not bounding box
2021-08-13 12:51:26 -06:00
12b4807bc9
add a very (very) basic resize/layout design to the canvas
...
Items call ::queue_resize(), which sets a flag in the canvas; at next idle, we call
Canvas::layout() which walks the item tree and recursively calls layout (depth first)
on all items needing a resize.
Only Container types implement layout, and so far only Box
2021-08-13 12:51:26 -06:00
03e32a22d0
make Item::add() virtual
2021-08-13 12:51:26 -06:00
9869b0266b
add support for rounded corners to Canvas::Rectangle
2021-08-13 12:51:26 -06:00
4f671a0950
make ArdourCanvas::Rectangle render its children
...
it is common to want to pack things inside a rectangle, so make it work
2021-08-13 12:51:26 -06:00
8fb67e15ea
steps in the evolution of beatbox
2021-08-13 12:51:26 -06:00
91de7ba60b
do not double-translate Canvas::Rectangle by _position; item_to_window() already includes it by calling item_to_canvas()
2021-08-13 12:51:26 -06:00
aca1db2d06
add step_button to wscript
2021-08-13 12:51:26 -06:00
e35e5ff3e5
step button for Canvas (used by BeatBox GUI)
2021-08-13 12:51:26 -06:00
ff6fe51d76
Canvas: improve implementation/design of ConstraintPacker::preferred_size()
2021-08-13 12:51:26 -06:00
502a9e80dc
Canvas: add a nice new syntax for constraint packing
2021-08-13 12:51:26 -06:00
d6745f043c
Canvas: clean up Constraint expressions to avoid compiler warnings
2021-08-13 12:51:26 -06:00
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
815eb82882
Canvas: partially improve/fix cBox rendering
2021-08-13 12:51:26 -06:00
2598bdef2c
Canvas: mark constraint-layout containers as layout-sensitive (like their children)
2021-08-13 12:51:26 -06:00
f5d67e6520
Canvas: temporary easy way to get debug output from Canvas::render() in a test program
2021-08-13 12:51:26 -06:00
427998e2d2
Canvas: cleanup first constraint test
2021-08-13 12:51:26 -06:00
be481ec266
Canvas: fix fill/outline area for a cBox
2021-08-13 12:51:26 -06:00
0823a6328b
Canvas: third constraint test
2021-08-13 12:51:26 -06:00
a349d7e49b
remove debug output
2021-08-13 12:51:26 -06:00
94b44ceb52
Canvas: add second constraint tester
2021-08-13 12:51:26 -06:00
0d5725a63b
Canvas; fix rectangle rendering geometry
2021-08-13 12:51:26 -06:00
04d00da461
Canvas: fix text rendering geometry
2021-08-13 12:51:26 -06:00
7153544b52
Canvas: many changes to cBox implementation
2021-08-13 12:51:26 -06:00
d37202585f
Canvas: root group should not fill or outline itself
2021-08-13 12:51:26 -06:00
2e993c6f86
Canvas: tweak test script runner
2021-08-13 12:51:26 -06:00
61742ededf
Canvas: change behavior of Item::preferred_size() for items without an intrinsic size
2021-08-13 12:51:26 -06:00
ea96798ee9
Canvas: tweak debug output for canvas rendering
2021-08-13 12:51:26 -06:00
0434f00a47
remove debug output
2021-08-13 12:51:26 -06:00
711c1520b5
Revert "towards a very different constraint layout tester"
...
This reverts commit 7f65ffe57685304f59bb336c9701c3a9d5cdc1a7.
2021-08-13 12:51:26 -06:00
11931f5ffb
towards a very different constraint layout tester
2021-08-13 12:51:26 -06:00
f0a0104087
Canvas: add shell scrip to run cnnstraint_test
2021-08-13 12:51:26 -06:00
504d8fdab3
Canvas: size request using preferred_size() callstack
2021-08-13 12:51:26 -06:00
5650d4f5bb
Canvas: container supports option to do fill & outline
2021-08-13 12:51:26 -06:00
55deb1261a
Canvas: use whomami() not earlier debug_name() API
2021-08-13 12:51:26 -06:00
811a893583
Canvas: some tidying in layout test app
2021-08-13 12:51:26 -06:00
240cb7b98f
Canvas: make Rectangle work with layouts
2021-08-13 12:51:26 -06:00
e0c58a2736
Canvas: add aliases to Canvas::Rect for comprehension
2021-08-13 12:51:26 -06:00
2423994029
Canvas: add aliases to Canvas::Rect for comprehension
2021-08-13 12:51:26 -06:00
f47deb717c
Canvas: add layout-related methods and members to Item
2021-08-13 12:51:25 -06:00
6d89d3afef
Canvas: add Item::whoami() for debugging output
2021-08-13 12:51:25 -06:00
f17160ee0e
Canvas: modify Arc to work with layout
2021-08-13 12:51:25 -06:00
ad39faeb3e
Canvas: alter RootGroup to work with layout
2021-08-13 12:51:25 -06:00
baea368223
Canvas: initiate size allocation process from GTK-level size allocate event
2021-08-13 12:51:25 -06:00
84afcb62c4
Canvas: child_changed() API fix for Box
2021-08-13 12:51:25 -06:00
fc9840f2a9
Canvas: change API of Item::child_changed() to include bool indicate bounding_box change
2021-08-13 12:51:25 -06:00
d6fa458f3b
Canvas: Text item should take position into account when rendering
2021-08-13 12:51:25 -06:00
1baa8d68c7
Canvas: reindent Kiwi code, and provide operator<<(ostream&) for several objects
2021-08-13 12:51:25 -06:00
ba3515e619
NOOP: remove whitespace
2021-08-13 12:51:25 -06:00
b1a6982064
Canvas::Arc obey fill/outline conditionals
2021-08-13 12:51:25 -06:00