<?xml version="1.0"?>
<page id="Gimp.Layer.get_by_id"
      type="topic"
      style="function"
      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.Layer" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gimp.Layer</api:type>
      </api:returns>
      <api:name>gimp_layer_get_by_id</api:name>
      <api:arg>
        <api:type>gint32</api:type>
        <api:name>layer_id</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Layer.get_by_id</title>
  <synopsis><code mime="text/x-python">
@accepts(gint32)
@returns(Gimp.Layer)
def get_by_id(layer_id):
    # Python wrapper for gimp_layer_get_by_id()
  </code></synopsis>
  <p>Returns a <link xref="Gimp.Layer"/> representing <code>layer_id</code>. This function calls
<link xref="Gimp.Item.get_by_id"/> and returns the item if it is layer or <code>None</code>
otherwise.</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>layer_id</code></title>
  <p>The layer id.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
