comparison doodle/dia/icanvas.d @ 58:c63719604adb

Beginnings of creating a rectangle...
author "David Bryant <bagnose@gmail.com>"
date Mon, 09 Aug 2010 21:43:24 +0930
parents 9960c4fbd0dd
children 20d6327c4a75
comparison
equal deleted inserted replaced
57:9960c4fbd0dd 58:c63719604adb
60 // TODO 60 // TODO
61 } 61 }
62 62
63 abstract class Layer { 63 abstract class Layer {
64 this(in string name) { 64 this(in string name) {
65 mName = name; 65 _name = name;
66 } 66 }
67 67
68 string name() const { return mName; } 68 string name() const { return _name; }
69 69
70 Rectangle bounds() const; 70 Rectangle bounds() const;
71 71
72 void draw(in IViewport viewport, 72 void draw(in IViewport viewport,
73 in Rectangle pixelDamage, scope Context pixelCr, 73 in Rectangle pixelDamage, scope Context pixelCr,
74 in Rectangle modelDamage, scope Context modelCr) const; 74 in Rectangle modelDamage, scope Context modelCr) const;
75 75
76 private { 76 private {
77 invariant string mName; 77 immutable string _name;
78 } 78 }
79 } 79 }