Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

static void sp_export_value_set_px ( GtkObject *  base,
const gchar *  key,
double  val 
) [static]

A function to set a value using the units points.

Parameters:
base The export dialog
key Which value should be set
val What the value should be in points
This function first gets the adjustment for the key that is passed in. It then figures out what units are currently being used in the dialog. After doing all of that, it then converts the incoming value and sets the adjustment.

Definition at line 1764 of file export.cpp.

References sp_export_value_set().

Referenced by sp_export_area_height_value_changed(), sp_export_area_width_value_changed(), sp_export_area_x_value_changed(), sp_export_area_y_value_changed(), and sp_export_set_area().

{
    const SPUnit *unit = sp_unit_selector_get_unit ((SPUnitSelector *)gtk_object_get_data (base, "units") );

    sp_export_value_set (base, key, sp_pixels_get_units (val, *unit));

    return;
}


Generated by  Doxygen 1.6.0   Back to index