cairo: Support scaling tables to fit page width and page length.
[pspp] / src / output / render.h
index deaea39f8da144d2cbc018b1f7119d02f4748727..5df97a1b6718847ad42a955860b88b77510ee0fc 100644 (file)
@@ -137,6 +137,13 @@ struct render_ops
                        int bb[TABLE_N_AXES][2], int valign_offset,
                        int spill[TABLE_N_AXES][2],
                        int clip[TABLE_N_AXES][2]);
+
+    /* Scales all output by FACTOR, e.g. a FACTOR of 0.5 would cause everything
+       subsequent to be drawn half-size.  FACTOR will be greater than 0 and
+       less than or equal to 1.
+
+       Optional.  If NULL, the rendering engine won't try to scale output. */
+    void (*scale) (void *aux, double factor);
   };
 
 /* An iterator for breaking render_pages into smaller chunks. */