[Fxruby-commits] CVS: FXRuby/lib/fox overloads.rb,1.5,1.6
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@us...> - 2002-04-03 18:59:21
|
Update of /cvsroot/fxruby/FXRuby/lib/fox In directory usw-pr-cvs1:/tmp/cvs-serv30893 Modified Files: overloads.rb Log Message: Added support for the overloaded FXDC#setStipple and FXDC#setClipRectangle methods. Index: overloads.rb =================================================================== RCS file: /cvsroot/fxruby/FXRuby/lib/fox/overloads.rb,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** overloads.rb 5 Mar 2002 20:41:13 -0000 1.5 --- overloads.rb 3 Apr 2002 17:32:20 -0000 1.6 *************** *** 22,25 **** --- 22,42 ---- end end + + class FX_DC + def setStipple(*args) + if args[0].kind_of? FXBitmap + setStippleFromBitmap(args[0], args[1], args[2]) + else + setStippleFromPattern(args[0], args[1], args[2]) + end + end + def setClipRectangle(*args) + if args.length == 1 + setClipRectangle1(args[0]) + else + setClipRectangle4(args[0], args[1], args[2], args[3]) + end + end + end class FXFileStream |