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:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user