[cairo-commit] cairomm/cairomm surface.cc, 1.12, 1.13 surface.h, 1.10, 1.11

Jonathon Jongsma commit at pdx.freedesktop.org
Mon Jun 12 19:08:25 PDT 2006


Committed by: jjongsma

Update of /cvs/cairo/cairomm/cairomm
In directory kemper:/tmp/cvs-serv14617/cairomm

Modified Files:
	surface.cc surface.h 
Log Message:
update for new cairo API cairo_surface_set_fallback_resolution()


Index: surface.cc
===================================================================
RCS file: /cvs/cairo/cairomm/cairomm/surface.cc,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- surface.cc	6 Mar 2006 17:55:51 -0000	1.12
+++ surface.cc	13 Jun 2006 02:08:23 -0000	1.13
@@ -76,6 +76,12 @@
   check_object_status_and_throw_exception(*this);
 }
 
+void Surface::set_fallback_resolution(double x_pixels_per_inch, double y_pixels_per_inch)
+{
+  cairo_surface_set_fallback_resolution(m_cobject, x_pixels_per_inch, y_pixels_per_inch);
+  check_object_status_and_throw_exception(*this);
+}
+
 #ifdef CAIRO_HAS_PNG_FUNCTIONS
 void Surface::write_to_png(const std::string& filename)
 {
@@ -195,12 +201,6 @@
   return RefPtr<PdfSurface>(new PdfSurface(cobject, true /* has reference */));
 }
 
-void PdfSurface::set_dpi(double x_dpi, double y_dpi)
-{
-  cairo_pdf_surface_set_dpi(m_cobject, x_dpi, y_dpi);
-  check_object_status_and_throw_exception(*this);
-}
-
 #endif // CAIRO_HAS_PDF_SURFACE
 
 
@@ -231,12 +231,6 @@
   return RefPtr<PsSurface>(new PsSurface(cobject, true /* has reference */));
 }
 
-void PsSurface::set_dpi(double x_dpi, double y_dpi)
-{
-  cairo_ps_surface_set_dpi(m_cobject, x_dpi, y_dpi);
-  check_object_status_and_throw_exception(*this);
-}
-
 #endif // CAIRO_HAS_PS_SURFACE
 
 
@@ -267,12 +261,6 @@
   return RefPtr<SvgSurface>(new SvgSurface(cobject, true /* has reference */));
 }
 
-void SvgSurface::set_dpi(double x_dpi, double y_dpi)
-{
-  cairo_svg_surface_set_dpi(m_cobject, x_dpi, y_dpi);
-  check_object_status_and_throw_exception(*this);
-}
-
 #endif // CAIRO_HAS_SVG_SURFACE
 
 

Index: surface.h
===================================================================
RCS file: /cvs/cairo/cairomm/cairomm/surface.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- surface.h	6 Mar 2006 17:55:51 -0000	1.10
+++ surface.h	13 Jun 2006 02:08:23 -0000	1.11
@@ -137,6 +137,13 @@
    */
   void set_device_offset(double x_offset, double y_offset);
 
+  /** Sets the fallback resolution of the image in dots per inch
+   *
+   * @param x_pixels_per_inch   Pixels per inch in the x direction
+   * @param y_pixels_per_inch   Pixels per inch in the y direction
+   */
+  void set_fallback_resolution(double x_pixels_per_inch, double y_pixels_per_inch);
+
 #ifdef CAIRO_HAS_PNG_FUNCTIONS
 
   /** Writes the contents of surface to a new file filename as a PNG image.
@@ -367,12 +374,6 @@
    */
   static RefPtr<PdfSurface> create(cairo_write_func_t write_func, void *closure, double width_in_points, double height_in_points);
 
-  /** Sets the resolution of the image in dots per inch
-   *
-   * @param x_dpi   The dpi in the x direction
-   * @param y_dpi    The dpi in the y direction
-   */
-  void set_dpi(double x_dpi, double y_dpi);
 };
 
 #endif  // CAIRO_HAS_PDF_SURFACE
@@ -424,12 +425,6 @@
    */
   static RefPtr<PsSurface> create(cairo_write_func_t write_func, void *closure, double width_in_points, double height_in_points);
 
-  /** Sets the resolution of the image in dots per inch
-   *
-   * @param x_dpi   The dpi in the x direction
-   * @param y_dpi    The dpi in the y direction
-   */
-  void set_dpi(double x_dpi, double y_dpi);
 
 };
 
@@ -483,12 +478,6 @@
    */
   static RefPtr<SvgSurface> create(cairo_write_func_t write_func, void *closure, double width_in_points, double height_in_points);
 
-  /** Sets the resolution of the image in dots per inch
-   *
-   * @param x_dpi   The dpi in the x direction
-   * @param y_dpi    The dpi in the y direction
-   */
-  void set_dpi(double x_dpi, double y_dpi);
 };
 
 #endif // CAIRO_HAS_SVG_SURFACE



More information about the cairo-commit mailing list