# Gimp.Image.prototype.list_selected_drawables

    function list_selected_drawables(): Array(Gimp.Item) {
        // Gjs wrapper for gimp_image_list_selected_drawables()
    }

Returns the list of drawables selected in the specified image.

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.

Since 3.0

Returns

  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.