<?xml version="1.0"?>
<page id="Gimp.Image.list_selected_drawables"
      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.Image" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Array(Gimp.Item)</api:type>
      </api:returns>
      <api:name>gimp_image_list_selected_drawables</api:name>
    </api:function>
  </info>
  <title>Gimp.Image.prototype.list_selected_drawables</title>
  <synopsis><code mime="text/x-gjs">
function list_selected_drawables(): Array(<link xref="Gimp.Item">Gimp.Item</link>) {
    // Gjs wrapper for gimp_image_list_selected_drawables()
}
  </code></synopsis>
  <p>Returns the list of drawables selected in the specified image.</p>  <p>This procedure returns the list of drawables selected in the specified
image.
These can be either a list of layers or a list of channels (a list mixing
layers and channels is not possible), or it can be a layer mask (a list
containing only a layer mask as single item), if a layer mask is in edit
mode.</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>Returns</code></title>
  <p>
         The list of selected drawables in the image.
         The returned list must be freed with g_list_free(). Layer
         elements belong to libgimp and must not be freed.</p>
</item>
</terms>

</page>
