[cairo-commit] rcairo/packages/cairo/lib cairo.rb,1.12,1.13

Kouhei Sutou commit at pdx.freedesktop.org
Sun Oct 9 03:25:12 PDT 2005


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/lib
In directory gabe:/tmp/cvs-serv10771/packages/cairo/lib

Modified Files:
	cairo.rb 
Log Message:
* packages/cairo/lib/cairo.rb: Removed deprecated wrapper API.
* packages/cairo/ext/rb_cairo_surface.c:
  - Implemented File I/O API by Ruby.
  - SurfaceXXX -> XXXSurface.


Index: cairo.rb
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/lib/cairo.rb,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- cairo.rb	8 Oct 2005 17:15:54 -0000	1.12
+++ cairo.rb	9 Oct 2005 10:25:10 -0000	1.13
@@ -24,6 +24,7 @@
       copy.copy(self)
       return copy
     end
+    
     def clone
       copy = Context.new
       copy.copy(self)
@@ -31,18 +32,6 @@
       return copy
     end
 
-    def set_target_png(port, format, width, height)
-      set_target_surface(Surface.new_png(port, format, width, height))
-    end
-
-    def set_target_ps(port, width_inches, height_inches, x_pixels_inch, y_pixels_inch)
-      set_target_surface(Surface.new_ps(port, width_inches, height_inches, x_pixels_inch, y_pixels_inch))
-    end
-
-    def set_target_pdf(port, width_inches, height_inches, x_pixels_inch, y_pixels_inch)
-      set_target_surface(Surface.new_pdf(port, width_inches, height_inches, x_pixels_inch, y_pixels_inch))
-    end
-
     def quad_to(x1, y1, x2, y2)
       ( x0, y0 ) = get_point
       cx1 = x0 + 2 * ( x1 - x0 ) / 3



More information about the cairo-commit mailing list