Gimp.Image.prototype.get_active_drawable

function get_active_drawable(): Gimp.Drawable {
    // Gjs wrapper for gimp_image_get_active_drawable()
}
  

Get the image's active drawable

This procedure returns the ID of the image's active drawable. This can be either a layer, a channel, or a layer mask. The active drawable is specified by the active image channel. If that is -1, then by the active image layer. If the active image layer has a layer mask and the layer mask is in edit mode, then the layer mask is the active drawable.

Returns

The active drawable.