Gimp.text_layer_get_text

function text_layer_get_text(layer: Gimp.Layer): String {
    // Gjs wrapper for gimp_text_layer_get_text()
}
  

Get the text from a text layer as string.

This procedure returns the text from a text layer as a string.

Since 2.6

layer

The text layer.

Returns

The text from the specified text layer. The returned value must be freed with g_free().