Grabs a value in the export dialog and converts the unit to points.
|base ||The export dialog |
|key ||Which value should be returned |
- The value in the adjustment in points
This function, at its most basic, is a call to
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 1712 of file export.cpp.
Referenced by sp_export_detect_size(), 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);