[cairo-commit] rcairo/src cairo.c,1.5,1.6
OEyvind Kolaas
commit at pdx.freedesktop.org
Mon Aug 23 01:23:34 PDT 2004
Committed by: pippin
Update of /cvs/cairo/rcairo/src
In directory gabe:/tmp/cvs-serv15319/src
Modified Files:
cairo.c
Log Message:
added insideness testing functions
Index: cairo.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/cairo.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** cairo.c 28 May 2004 19:45:05 -0000 1.5
--- cairo.c 23 Aug 2004 08:23:32 -0000 1.6
***************
*** 183,186 ****
--- 183,198 ----
}
+ VALUE
+ rcairo_in_fill(VALUE self, VALUE x, VALUE y) {
+ return cairo_in_fill(rcairo_get_cairo(self), NUM2DBL(x), NUM2DBL(y))?
+ Qtrue:Qfalse;
+ }
+
+
+ VALUE
+ rcairo_in_stroke(VALUE self, VALUE x, VALUE y) {
+ return cairo_in_stroke(rcairo_get_cairo(self), NUM2DBL(x), NUM2DBL(y))?
+ Qtrue:Qfalse;
+ }
/*static VALUE
***************
*** 216,219 ****
--- 228,236 ----
rb_define_method(cCairo, "fill", rcairo_fill, 0);
+ rb_define_method(cCairo, "in_stroke", rcairo_in_stroke, 2);
+ rb_define_method(cCairo, "in_stroke?", rcairo_in_stroke, 2);
+ rb_define_method(cCairo, "in_fill", rcairo_in_fill, 2);
+ rb_define_method(cCairo, "in_fill?", rcairo_in_fill, 2);
+
cCairoMatrix = gen_CairoMatrix();
More information about the cairo-commit
mailing list