Logo Search packages:      
Sourcecode: inkscape version File versions

static float sp_export_value_get_px ( GtkObject *  base,
const gchar *  key 
) [static]

Grabs a value in the export dialog and converts the unit to points.

Parameters:
base The export dialog
key Which value should be returned
Returns:
The value in the adjustment in points
This function, at its most basic, is a call to sp_export_value_get to get the value of the adjustment. It then finds the units that are being used by looking at the "units" attribute of the export dialog. Using that it converts the returned value into points.

Definition at line 1932 of file export.cpp.

References sp_export_value_get().

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(), sp_export_bitmap_height_value_changed(), sp_export_bitmap_width_value_changed(), sp_export_detect_size(), sp_export_export_clicked(), sp_export_set_image_x(), sp_export_set_image_y(), and sp_export_xdpi_value_changed().

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

    return sp_units_get_pixels (value, *unit);
} // end of sp_export_value_get_px()


Generated by  Doxygen 1.6.0   Back to index