Mercurial > projects > doodle
comparison doodle/dia/layer_stack.d @ 100:a274d16ab6ce
struct initialisers
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Mon, 18 Oct 2010 18:10:02 +1030 |
parents | a98116479793 |
children | 10ad5417bf07 |
comparison
equal
deleted
inserted
replaced
99:ad672ab258c5 | 100:a274d16ab6ce |
---|---|
9 _layers = layers.dup; | 9 _layers = layers.dup; |
10 } | 10 } |
11 | 11 |
12 Rectangle bounds() const { | 12 Rectangle bounds() const { |
13 // Take the union of all layer bounds | 13 // Take the union of all layer bounds |
14 Rectangle bounds = Rectangle.DEFAULT; | 14 Rectangle bounds; |
15 foreach (layer; _layers) { bounds = bounds | layer.bounds; } | 15 foreach (layer; _layers) { bounds = bounds | layer.bounds; } |
16 return bounds; | 16 return bounds; |
17 } | 17 } |
18 | 18 |
19 void draw(in Rectangle screenDamage, scope Renderer screenRenderer, | 19 void draw(in Rectangle screenDamage, scope Renderer screenRenderer, |