Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_export_set_area ( GtkObject *  base,
double  x0,
double  y0,
double  x1,
double  y1 
) [static]

A function to change the area that is used for the exported bitmap.

Parameters:
base This is the export dialog
x0 Horizontal upper left hand corner of the picture in points
y0 Vertical upper left hand corner of the picture in points
x1 Horizontal lower right hand corner of the picture in points
y1 Vertical lower right hand corner of the picture in points
This function just calls sp_export_value_set_px for each of the parameters that is passed in. This allows for setting them all in one convient area.

Update is set to suspend all of the other test running while all the values are being set up. This allows for a performance increase, but it also means that the wrong type won't be detected with only some of the values set. After all the values are set everyone is told that there has been an update.

Definition at line 1844 of file export.cpp.

References sp_export_area_x_value_changed(), sp_export_area_y_value_changed(), and sp_export_value_set_px().

Referenced by sp_export_area_toggled().

{
    gtk_object_set_data ( base, "update", GUINT_TO_POINTER (TRUE) );
    sp_export_value_set_px (base, "x1", x1);
    sp_export_value_set_px (base, "y1", y1);
    sp_export_value_set_px (base, "x0", x0);
    sp_export_value_set_px (base, "y0", y0);
    gtk_object_set_data ( base, "update", GUINT_TO_POINTER (FALSE) );

    sp_export_area_x_value_changed ((GtkAdjustment *)gtk_object_get_data (base, "x1"), base);
    sp_export_area_y_value_changed ((GtkAdjustment *)gtk_object_get_data (base, "y1"), base);

    return;
}


Generated by  Doxygen 1.6.0   Back to index