Gimp.Image.prototype.set_active_layer
function set_active_layer(active_layer: Gimp.Layer): Boolean {
// Gjs wrapper for gimp_image_set_active_layer()
}
Sets the specified image's active layer.
If the layer exists, it is set as the active layer in the image. Any previous active layer or channel is set to inactive. An exception is a previously existing floating selection, in which case this procedure will return an execution error.
- active_layer
The new image active layer.
- Returns
TRUE on success.