[cairo-commit] rcairo/src/lib/cairo context.rb,1.3,1.4

Kouhei Sutou commit at pdx.freedesktop.org
Thu Apr 19 05:40:45 PDT 2007


Committed by: kou

Update of /cvs/cairo/rcairo/src/lib/cairo
In directory kemper:/tmp/cvs-serv8985/src/lib/cairo

Modified Files:
	context.rb 
Log Message:
* src/rb_cairo_context.c (Cairo::Context#stroke,
  Cairo::Context#fill, Cairo::Context#clip): accept 'prserve' option
  to change XXX and XXX_preserve.
* src/lib/cairo/context.rb (Cairo::Context#stroke_preserve,
  Cairo::Context#fill_preserve, Cairo::Context#clip_preserve): moved
  from src/rb_cairo_context.c.


Index: context.rb
===================================================================
RCS file: /cvs/cairo/rcairo/src/lib/cairo/context.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- context.rb	16 Apr 2007 03:12:49 -0000	1.3
+++ context.rb	19 Apr 2007 12:40:35 -0000	1.4
@@ -13,5 +13,17 @@
     include Path
     include Blur
     include Color
+
+    def stroke_preserve(&block)
+      stroke(true, &block)
+    end
+
+    def fill_preserve(&block)
+      fill(true, &block)
+    end
+
+    def clip_preserve(&block)
+      clip(true, &block)
+    end
   end
 end



More information about the cairo-commit mailing list