Add #set() function to Point, Rectangle and Size (Matrix has it already).

This commit is contained in:
Jürg Lehni 2011-02-28 20:14:10 +01:00
parent b03ad9b090
commit 700f4aeb6a
3 changed files with 17 additions and 0 deletions
src/basic

View file

@ -46,6 +46,13 @@ Rectangle = Base.extend({
}
},
set: function(x, y, width, height) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
},
getPoint: function() {
return new Point(this.x, this.y);
},