Gimp.TextLayer.get_by_id
Description: Reference for Gimp.TextLayer.get_by_id

### Function

# Gimp TextLayerget_by_id

unstable since: 3.0

#### Declaration [src]

    GimpTextLayer*
    gimp_text_layer_get_by_id (
      gint32 layer_id
    )

#### Description [src]

Returns a `GimpTextLayer` representing `layer_id`. This function calls `gimp_item_get_by_id()` and returns the item if it is layer or `NULL` otherwise.

Available since: 3.0

#### Parameters

`layer_id`

  Type: `gint32`

  The layer id.

#### Return value

Type: `GimpTextLayer`

A `GimpTextLayer` for `layer_id` or `NULL` if `layer_id` does not represent a valid layer. The object belongs to libgimp and you must not modify or unref it.

The data is owned by the called function.
The return value can be `NULL`.