Gimp.Item.prototype.is_text_layer

function is_text_layer(): Boolean {
    // Gjs wrapper for gimp_item_is_text_layer()
}
  

Returns whether the item is a text layer.

This procedure returns TRUE if the specified item is a text layer.

Since 2.8

Returns

TRUE if the item is a text layer, FALSE otherwise.