libgimpbase: add gimp_unit_is_metric()

which currently returns TRUE if the unit has a factor that matches mm,
cm, dm or m. Incomplete, but at least now extendable in one place,
just need to use the new function everywhere.
This commit is contained in:
Michael Natterer
2013-10-12 18:54:34 +02:00
parent 54ead10b57
commit f473653889
3 changed files with 36 additions and 0 deletions

View File

@ -100,6 +100,8 @@ gdouble gimp_units_to_points (gdouble value,
GimpUnit unit,
gdouble resolution);
gboolean gimp_unit_is_metric (GimpUnit unit);
G_END_DECLS