<?xml version="1.0"?>
<page id="Gimp.Unit.is_metric"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Unit" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>bool</api:type>
      </api:returns>
      <api:name>gimp_unit_is_metric</api:name>
      <api:arg>
        <api:type>Gimp.Unit</api:type>
        <api:name>self</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Unit.is_metric</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Unit)
@returns(bool)
def is_metric(self):
    # Python wrapper for gimp_unit_is_metric()
  </code></synopsis>
  <p>Checks if the given <code>self</code> is metric. A simplistic test is used
that looks at the unit's factor and checks if it is 2.54 multiplied
by some common powers of 10. Currently it checks for mm, cm, dm, m.</p>  <p>See also: <link xref="Gimp.Unit.get_factor"/></p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>self</code></title>
  <p>The unit</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
