Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_export_value_set_px ( GtkObject *  base,
const gchar *  key,
float  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 1671 of file export.cpp.

References sp_export_value_set().

Referenced by 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;
} // end of sp_export_value_set_px()


Generated by  Doxygen 1.6.0   Back to index