VikPrintPreview

VikPrintPreview

Functions

Signals

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkFrame
                        ╰── GtkAspectFrame
                            ╰── VikPrintPreview

Description

Functions

vik_print_preview_new ()

GtkWidget *
vik_print_preview_new (GtkPageSetup *page,
                       gpointer vvp);

Creates a new VikPrintPreview widget.

Parameters

page

page setup

 

vvp

the viewport to print

 

Returns

the new VikPrintPreview widget.


vik_print_preview_set_image_dpi ()

void
vik_print_preview_set_image_dpi (VikPrintPreview *preview,
                                 gdouble xres,
                                 gdouble yres);

Sets the resolution of the image displayed by the VikPrintPreview.

Parameters

preview

a VikPrintPreview.

 

xres

the X resolution

 

yres

the Y resolution

 

vik_print_preview_set_page_setup ()

void
vik_print_preview_set_page_setup (VikPrintPreview *preview,
                                  GtkPageSetup *page);

Sets the page setup to use by the VikPrintPreview.

Parameters

preview

a VikPrintPreview.

 

page

the page setup to use

 

vik_print_preview_set_image_offsets ()

void
vik_print_preview_set_image_offsets (VikPrintPreview *preview,
                                     gdouble offset_x,
                                     gdouble offset_y);

Sets the offsets of the image displayed by the VikPrintPreview. It does not emit the "offsets-changed" signal.

Parameters

preview

a VikPrintPreview.

 

offset_x

the X offset

 

offset_y

the Y offset

 

vik_print_preview_set_image_offsets_max ()

void
vik_print_preview_set_image_offsets_max
                               (VikPrintPreview *preview,
                                gdouble offset_x_max,
                                gdouble offset_y_max);

Sets the maximum offsets of the image displayed by the VikPrintPreview. It does not emit the "offsets-changed" signal.

Parameters

preview

a VikPrintPreview.

 

offset_x_max

the maximum X offset allowed

 

offset_y_max

the maximum Y offset allowed

 

vik_print_preview_set_use_full_page ()

void
vik_print_preview_set_use_full_page (VikPrintPreview *preview,
                                     gboolean full_page);

If full_page is TRUE, the page margins are ignored and the full page can be used to setup printing.

Parameters

preview

a VikPrintPreview.

 

full_page

TRUE to ignore the page margins

 

Signal Details

The “offsets-changed” signal

void
user_function (VikPrintPreview *vikprintpreview,
               double           arg1,
               double           arg2,
               gpointer         user_data)

Flags: Run First