Gimp.Item.id_is_text_layer

function id_is_text_layer(item_id: Number(gint)): Boolean {
    // Gjs wrapper for gimp_item_id_is_text_layer()
}
  

Returns whether the item ID is a text layer.

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

*Note*: in most use cases, you should not use this function. See [func@Gimp.Item.id_is_layer] for a discussion on alternatives.

Since 3.0

item_id

The item ID.

Returns

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