Commit graph

8 commits

Author SHA1 Message Date
Paul Davis
52718b3411 some initial bits of work on canvas allocation 2017-02-01 21:58:20 +01:00
Paul Davis
4fa4b9a135 remove use of boost::optional to define "undefined" Canvas::Rect, and use Rect::empty instead.
This commit includes Rect::operator bool() which might be a candidate for removal in a future commit, in an attempt
to make the meaning clearer
2017-01-19 20:54:54 +01:00
Paul Davis
b4cf8cfc49 fix up Canvas::Grid child layout 2017-01-19 00:24:54 +01:00
Paul Davis
09a8ec534f canvas::grid: get padding and margin to work; remove some debug output 2017-01-15 21:40:42 +00:00
Paul Davis
7c17327f56 get grid layout working 2017-01-15 12:13:03 +00:00
Paul Davis
04e346a3d8 tweak Grid repositioning code to be a little more O(N) 2017-01-15 12:13:03 +00:00
Paul Davis
99b86f0f05 basic (and probably wrong) Canvas::Grid child placement 2017-01-15 12:13:03 +00:00
Paul Davis
9ed87f6693 initial skeleton for a Grid canvas item 2017-01-15 12:13:03 +00:00