1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __PRINT_PREVIEW_H__
19 #define __PRINT_PREVIEW_H__
20 
21 G_BEGIN_DECLS
22 
23 
24 #define PRINT_TYPE_PREVIEW            (print_preview_get_type ())
25 #define PRINT_PREVIEW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PRINT_TYPE_PREVIEW, PrintPreview))
26 #define PRINT_PREVIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PRINT_TYPE_PREVIEW, PrintPreviewClass))
27 #define PRINT_IS_PREVIEW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PRINT_TYPE_PREVIEW))
28 #define PRINT_IS_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PRINT_TYPE_PREVIEW))
29 #define PRINT_PREVIEW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), PRINT_TYPE_PREVIEW, PrintPreviewClass))
30 
31 typedef struct _PrintPreview       PrintPreview;
32 typedef struct _PrintPreviewClass  PrintPreviewClass;
33 
34 
35 GType       print_preview_get_type              (void) G_GNUC_CONST;
36 
37 GtkWidget * print_preview_new                   (GtkPageSetup *page,
38                                                  gint32        drawable_id);
39 
40 void        print_preview_set_image_dpi         (PrintPreview *preview,
41                                                  gdouble       xres,
42                                                  gdouble       yres);
43 
44 void        print_preview_set_page_setup        (PrintPreview *preview,
45                                                  GtkPageSetup *page);
46 
47 void        print_preview_set_image_offsets     (PrintPreview *preview,
48                                                  gdouble       offset_x,
49                                                  gdouble       offset_y);
50 
51 void        print_preview_set_image_offsets_max (PrintPreview *preview,
52                                                  gdouble       offset_x_max,
53                                                  gdouble       offset_y_max);
54 
55 void        print_preview_set_use_full_page     (PrintPreview *preview,
56                                                  gboolean      full_page);
57 
58 G_END_DECLS
59 
60 #endif /* __PRINT_PREVIEW_H__ */
61