EogPrintImageSetup

EogPrintImageSetup

Synopsis

struct              EogPrintImageSetup;
GtkWidget *         eog_print_image_setup_new           (EogImage *image,
                                                         GtkPageSetup *page_setup);
void                eog_print_image_setup_get_options   (EogPrintImageSetup *setup,
                                                         gdouble *left,
                                                         gdouble *top,
                                                         gdouble *scale,
                                                         GtkUnit *unit);
void                eog_print_image_setup_update        (GtkPrintOperation *operation,
                                                         GtkWidget *custom_widget,
                                                         GtkPageSetup *page_setup,
                                                         GtkPrintSettings *print_settings,
                                                         gpointer user_data);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkGrid
                           +----EogPrintImageSetup

Implemented Interfaces

EogPrintImageSetup implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Properties

  "image"                    EogImage*             : Read / Write
  "page-setup"               GtkPageSetup*         : Read / Write

Description

Details

struct EogPrintImageSetup

struct EogPrintImageSetup;


eog_print_image_setup_new ()

GtkWidget *         eog_print_image_setup_new           (EogImage *image,
                                                         GtkPageSetup *page_setup);

Creates a new EogPrintImageSetup widget, to be used as a custom widget in a GtkPrintUnixDialog. This widgets allows to set the image position and scale in a page.

image :

the EogImage to print

page_setup :

a GtkPageSetup specifying the page where the image will be print

Returns :

a new EogPrintImageSetup

eog_print_image_setup_get_options ()

void                eog_print_image_setup_get_options   (EogPrintImageSetup *setup,
                                                         gdouble *left,
                                                         gdouble *top,
                                                         gdouble *scale,
                                                         GtkUnit *unit);

Gets the options set by the EogPrintImageSetup.

setup :

a EogPrintImageSetup

left :

a pointer where to store the image's left position

top :

a pointer where to store the image's top position

scale :

a pointer where to store the image's scale

unit :

a pointer where to store the GtkUnit used by the left and top values.

eog_print_image_setup_update ()

void                eog_print_image_setup_update        (GtkPrintOperation *operation,
                                                         GtkWidget *custom_widget,
                                                         GtkPageSetup *page_setup,
                                                         GtkPrintSettings *print_settings,
                                                         gpointer user_data);

Property Details

The "image" property

  "image"                    EogImage*             : Read / Write

The image whose printing properties will be set up.


The "page-setup" property

  "page-setup"               GtkPageSetup*         : Read / Write

The information for the page where the image will be printed.