Method

GimpTextLayerget_layout_offsets

unstable since: 3.4

Declaration [src]

gboolean
gimp_text_layer_get_layout_offsets (
  GimpTextLayer* layer,
  gint* x,
  gint* y
)

Description [src]

Gets x, y offsets of the associated text layout.

This procedure returns the offsets of the text layout. This will most often be (0, 0), except when the logical rectangle is different than the ink rectangle. Do not confuse this with the offsets returned by gimp_drawable_get_offsets() which are the offsets relative to the canvas and are enough information if you only need the render’s offset. Yet when you wish to reproduce the text layout itself, the layout offset will be of interest.

Available since: 3.4

Parameters

x

Type: gint*

X offset.

The argument will be set by the function.
y

Type: gint*

Y offset.

The argument will be set by the function.

Return value

Type: gboolean

TRUE on success.