Mercurial > projects > doodle
comparison doodle/gtk/canvas.d @ 34:c2f11e1d7470
Geometry cleanup and checkpoint.
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Sun, 30 Aug 2009 15:32:12 +0930 |
parents | 1754cb773d41 |
children | 3f6bb0bb22dc |
comparison
equal
deleted
inserted
replaced
33:157b4ad5615d | 34:c2f11e1d7470 |
---|---|
189 layer_bounds = layer_bounds | layer.bounds; | 189 layer_bounds = layer_bounds | layer.bounds; |
190 } | 190 } |
191 | 191 |
192 assert(layer_bounds.valid); | 192 assert(layer_bounds.valid); |
193 | 193 |
194 mCanvasBounds = layer_bounds.moved(-layer_bounds.size).expanded(2.0 * layer_bounds.size); | 194 mCanvasBounds = expand(move(layer_bounds, -layer_bounds.size), 2.0 * layer_bounds.size); |
195 mViewCentre = mCanvasBounds.centre; | 195 mViewCentre = mCanvasBounds.centre; |
196 | 196 |
197 mHadConfigure = true; | 197 mHadConfigure = true; |
198 } | 198 } |
199 | 199 |