# HG changeset patch # User Jordan Miner # Date 1337110041 18000 # Node ID e7e36dca4768a4d5669908e1ddf7d198f438f7a6 # Parent dccadd2973486889588d383690f9deb135890b0a Add setters for Rect.right and Rect.bottom. diff -r dccadd297348 -r e7e36dca4768 dynamin/painting/coordinates.d --- 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;