Mercurial > projects > dynamin
changeset 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 |
files | dynamin/painting/coordinates.d |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dynamin/painting/coordinates.d Tue May 15 14:25:29 2012 -0500 +++ b/dynamin/painting/coordinates.d Tue May 15 14:27:21 2012 -0500 @@ -182,8 +182,12 @@ /// float right() { return x + width; } /// + void right(float f) { width = f - x; } + /// float bottom() { return y + height; } /// + void bottom(float f) { height = f - y; } + /// Rect opAdd(Rect rect) { Rect rect2; rect2.x = x + rect.x;