[cairo-commit] rcairo/packages/cairo/lib cairo.rb,1.19,1.20
Kouhei Sutou
commit at pdx.freedesktop.org
Sat Jul 1 07:45:57 PDT 2006
Committed by: kou
Update of /cvs/cairo/rcairo/packages/cairo/lib
In directory kemper:/tmp/cvs-serv13627/packages/cairo/lib
Modified Files:
cairo.rb
Log Message:
* README: supported only 1.2.0 or higher.
* packages/cairo/ext/extconf.rb: ditto.
* packages/cairo/ext/cairo.def: added
rb_cairo_svg_version_from_ruby_object().
* packages/cairo/ext/rb_cairo.c (Init_cairo): initialize constants
before other modules.
* packages/cairo/ext/rb_cairo.h:
- include all available header files.
- supported cairo_svg_version_t.
* packages/cairo/ext/rb_cairo_constants.c: supported
cairo_svg_surface_t.
* packages/cairo/ext/rb_cairo_surface.c: supported missing
functions in cairo-ps.h, cairo-pdf.h and cairo-svg.h.
* packages/cairo/lib/cairo.rb
(Cairo::SVGSurface.versions_as_string): added convenience method.
Index: cairo.rb
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/lib/cairo.rb,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- cairo.rb 11 May 2006 06:20:03 -0000 1.19
+++ cairo.rb 1 Jul 2006 14:45:55 -0000 1.20
@@ -88,6 +88,16 @@
end
end
+ class SVGSurface
+ class << self
+ def versions_as_string
+ versions.collect do |version|
+ version_to_string(version)
+ end
+ end
+ end
+ end
+
class Matrix
def dup
Matrix.new(*to_a)
More information about the cairo-commit
mailing list