Mercurial > projects > dynamin
comparison dynamin/painting/coordinates.d @ 98:e7e36dca4768
Add setters for Rect.right and Rect.bottom.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Tue, 15 May 2012 14:27:21 -0500 |
parents | dccadd297348 |
children | 8daa63a28707 |
comparison
equal
deleted
inserted
replaced
97:dccadd297348 | 98:e7e36dca4768 |
---|---|
180 /// | 180 /// |
181 void height(float f) { _height = f; } | 181 void height(float f) { _height = f; } |
182 /// | 182 /// |
183 float right() { return x + width; } | 183 float right() { return x + width; } |
184 /// | 184 /// |
185 void right(float f) { width = f - x; } | |
186 /// | |
185 float bottom() { return y + height; } | 187 float bottom() { return y + height; } |
188 /// | |
189 void bottom(float f) { height = f - y; } | |
186 /// | 190 /// |
187 Rect opAdd(Rect rect) { | 191 Rect opAdd(Rect rect) { |
188 Rect rect2; | 192 Rect rect2; |
189 rect2.x = x + rect.x; | 193 rect2.x = x + rect.x; |
190 rect2.y = y + rect.y; | 194 rect2.y = y + rect.y; |