|  |  |  | Eye of MATE Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals | ||||
struct EomPrintPreview; GtkWidget * eom_print_preview_new (void); GtkWidget * eom_print_preview_new_with_pixbuf (GdkPixbuf *pixbuf); void eom_print_preview_set_page_margins (EomPrintPreview *preview,gfloat l_margin,gfloat r_margin,gfloat t_margin,gfloat b_margin); void eom_print_preview_set_from_page_setup (EomPrintPreview *preview,GtkPageSetup *setup); void eom_print_preview_get_image_position (EomPrintPreview *preview,gdouble *x,gdouble *y); void eom_print_preview_set_image_position (EomPrintPreview *preview,gdouble x,gdouble y); void eom_print_preview_set_scale (EomPrintPreview *preview,gfloat scale);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkFrame +----GtkAspectFrame +----EomPrintPreview
"image" GObject* : Read / Write "image-scale" gfloat : Read / Write "image-x-align" gfloat : Read / Write "image-y-align" gfloat : Read / Write "page-bottom-margin" gfloat : Read / Write "page-left-margin" gfloat : Read / Write "page-right-margin" gfloat : Read / Write "page-top-margin" gfloat : Read / Write "paper-height" gfloat : Read / Write "paper-width" gfloat : Read / Write
GtkWidget *         eom_print_preview_new               (void);
Creates a new EomPrintPreview widget, setting it to the default values, and leaving the page empty. You still need to set the "image" property to make it useful.
| Returns : | A new and empty EomPrintPreview widget. | 
GtkWidget *         eom_print_preview_new_with_pixbuf   (GdkPixbuf *pixbuf);
Creates a new EomPrintPreview widget, and sets the GdkPixbuf to preview on it.
| 
 | a GdkPixbuf | 
| Returns : | A new EomPrintPreview widget. | 
void eom_print_preview_set_page_margins (EomPrintPreview *preview,gfloat l_margin,gfloat r_margin,gfloat t_margin,gfloat b_margin);
Manually set the margins, in inches.
| 
 | a EomPrintPreview | 
| 
 | Left margin. | 
| 
 | Right margin. | 
| 
 | Top margin. | 
| 
 | Bottom margin. | 
void eom_print_preview_set_from_page_setup (EomPrintPreview *preview,GtkPageSetup *setup);
Sets up the page properties from a GtkPageSetup. Useful when using the widget with the GtkPrint API.
| 
 | a EomPrintPreview | 
| 
 | a GtkPageSetup to set the properties from | 
void eom_print_preview_get_image_position (EomPrintPreview *preview,gdouble *x,gdouble *y);
Gets current image position in inches, relative to the margins. A (0, 0) position is the intersection between the left and top margins.
| 
 | a EomPrintPreview | 
| 
 | a pointer to a gdouble, or NULLto ignore it | 
| 
 | a pointer to a gdouble, or NULLto ignore it | 
void eom_print_preview_set_image_position (EomPrintPreview *preview,gdouble x,gdouble y);
Sets the image position. You can pass -1 to one of the coordinates if you only want to set the other.
| 
 | a EomPrintPreview | 
| 
 | The X coordinate, in inches, or -1 to ignore it. | 
| 
 | The Y coordinate, in inches, or -1 to ignore it. | 
void eom_print_preview_set_scale (EomPrintPreview *preview,gfloat scale);
Sets the scale for the image.
| 
 | a EomPrintPreview | 
| 
 | a scale value, between 0 and 1. | 
"image" property"image" GObject* : Read / Write
The "image" property defines the image that is previewed in the widget.
"image-scale" property"image-scale" gfloat : Read / Write
The "image-scale" property defines the scaling of the image that the user wants for the printing.
Allowed values: [0,1]
Default value: 1
"image-x-align" property"image-x-align" gfloat : Read / Write
The "image-x-align" property defines the horizontal alignment of the image in the widget.
Allowed values: [0,1]
Default value: 0.5
"image-y-align" property"image-y-align" gfloat : Read / Write
The "image-y-align" property defines the horizontal alignment of the image in the widget.
Allowed values: [0,1]
Default value: 0.5
"page-bottom-margin" property"page-bottom-margin" gfloat : Read / Write
The size of the page's bottom margin, in inches.
Allowed values: [0,200]
Default value: 0.56
"page-left-margin" property"page-left-margin" gfloat : Read / Write
The size of the page's left margin, in inches.
Allowed values: [0,100]
Default value: 0.25
"page-right-margin" property"page-right-margin" gfloat : Read / Write
The size of the page's right margin, in inches.
Allowed values: [0,200]
Default value: 0.25
"page-top-margin" property"page-top-margin" gfloat : Read / Write
The size of the page's top margin, in inches.
Allowed values: [0,100]
Default value: 0.25
"paper-height" property"paper-height" gfloat : Read / Write
The height of the previewed paper, in inches.
Allowed values: [0,200]
Default value: 11
"paper-width" property"paper-width" gfloat : Read / Write
The width of the previewed paper, in inches.
Allowed values: [0,100]
Default value: 8.5
"image-moved" signalvoid                user_function                      (EomPrintPreview *preview,
                                                        gpointer         user_data)      : Run First
The "image-moved" signal is emitted when the position of the image is changed.
| 
 | the object which received the signal | 
| 
 | user data set when the signal handler was connected. |