<?xml version="1.0"?>
<page id="Gimp.Unit.get_id"
      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>gint32</api:type>
      </api:returns>
      <api:name>gimp_unit_get_id</api:name>
      <api:arg>
        <api:type>Gimp.Unit</api:type>
        <api:name>self</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Unit.get_id</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Unit)
@returns(gint32)
def get_id(self):
    # Python wrapper for gimp_unit_get_id()
  </code></synopsis>
  <p>The ID can be used to retrieve the unit with [func@Unit.get_by_id].</p>  <p>Note that this ID will be stable within a single session of GIMP, but
you should not expect this ID to stay the same across multiple runs.</p>

<terms>
<item>
<title><code>self</code></title>
  <p>The unit you want to know the integer ID of.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
