[cairo-commit] cairomm/cairomm context.cc, 1.2, 1.3 context.h, 1.2, 1.3

Murray Cumming commit at pdx.freedesktop.org
Wed Dec 7 06:34:29 PST 2005


Committed by: murrayc

Update of /cvs/cairo/cairomm/cairomm
In directory gabe:/tmp/cvs-serv15522/cairomm

Modified Files:
	context.cc context.h 
Log Message:
2005-12-07  Murray Cumming <murrayc at murrayc.com>

        * cairomm/context.cc:
        * cairomm/context.h: Change mask_surface() to
        mask() and set_source_surface() to set_source(),
        as per the method overloading advice in the
        language bindings section of the cairo documentation.


Index: context.cc
===================================================================
RCS file: /cvs/cairo/cairomm/cairomm/context.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- context.cc	2 Dec 2005 14:05:17 -0000	1.2
+++ context.cc	7 Dec 2005 14:34:27 -0000	1.3
@@ -114,7 +114,7 @@
   check_object_status_and_throw_exception(*this);
 }
 
-void Context::set_source_surface(Surface& surface, double x, double y)
+void Context::set_source(Surface& surface, double x, double y)
 {
   cairo_set_source_surface(m_cobject, surface.cobj(), x, y);
   check_object_status_and_throw_exception(*this);
@@ -324,7 +324,7 @@
   check_object_status_and_throw_exception(*this);
 }
 
-void Context::mask_surface(Surface& surface, double surface_x, double surface_y)
+void Context::mask(Surface& surface, double surface_x, double surface_y)
 {
   cairo_mask_surface(m_cobject, surface.cobj(), surface_x, surface_y);
   check_object_status_and_throw_exception(*this);

Index: context.h
===================================================================
RCS file: /cvs/cairo/cairomm/cairomm/context.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- context.h	2 Dec 2005 14:05:17 -0000	1.2
+++ context.h	7 Dec 2005 14:34:27 -0000	1.3
@@ -81,7 +81,7 @@
   void set_source(const Pattern& source);
   void set_source_rgb(double red, double green, double blue);
   void set_source_rgba(double red, double green, double blue, double alpha);
-  void set_source_surface(Surface& surface, double x, double y);
+  void set_source(Surface& surface, double x, double y);
   void set_tolerance(double tolerance);
   void set_antialias(Antialias antialias);
   void set_fill_rule(FillRule fill_rule);
@@ -116,7 +116,7 @@
   void paint();
   void paint_with_alpha(double alpha);
   void mask(Pattern& pattern); //Should the source be const?
-  void mask_surface(Surface& surface, double surface_x, double surface_y); //TODO: Should the source be const?
+  void mask(Surface& surface, double surface_x, double surface_y); //TODO: Should the source be const?
   void stroke();
   void stroke_preserve();
   void fill();



More information about the cairo-commit mailing list