Gimp.Image.prototype.get_floating_sel

function get_floating_sel(): Gimp.Layer {
    // Gjs wrapper for gimp_image_get_floating_sel()
}
  

Return the floating selection of the image.

This procedure returns the image's floating selection, if it exists. If it doesn't exist, -1 is returned as the layer ID.

Returns

The image's floating selection.