[Fxruby-commits] CVS: FXRuby/lib/fox overloads.rb,1.7,1.7.2.1
Status: Inactive
Brought to you by:
lyle
|
From: Lyle J. <ly...@us...> - 2002-05-08 21:43:51
|
Update of /cvsroot/fxruby/FXRuby/lib/fox
In directory usw-pr-cvs1:/tmp/cvs-serv25300/lib/fox
Modified Files:
Tag: release10
overloads.rb
Log Message:
Updates to test cases TC_FXHVec.rb and TC_FXHMat.rb to test the new clone
instance methods for these classes.
Added support for overloaded FXRegion#contains? and a new test case for
this class.
Index: overloads.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/lib/fox/overloads.rb,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -C2 -d -r1.7 -r1.7.2.1
*** overloads.rb 3 Apr 2002 21:40:57 -0000 1.7
--- overloads.rb 8 May 2002 21:43:44 -0000 1.7.2.1
***************
*** 219,222 ****
--- 219,232 ----
end
+ class FXRegion
+ def contains?(*args)
+ if args.length == 4
+ containsRectangle?(args[0], args[1], args[2], args[3])
+ else
+ containsPoint?(args[0], args[1])
+ end
+ end
+ end
+
class FX_TreeList
def addItemAfter(*args)
|