Method

GskPathtranslatable

unstable since: 4.26

Declaration [src]

gboolean
gsk_path_translatable (
  const GskPath* path1,
  const GskPath* path2
)

Description [src]

Returns whether 2 paths only differ by an x/y translation and compare gsk_path_equal() otherwise.

If you want to know the translation, you can use gsk_path_get_bounds() and compare the bounds.

Note that this function may return false for otherwise translatable paths due to floating point quantization.

Available since: 4.26

Parameters

path2

Type: GskPath

Another path.

The data is owned by the caller of the method.

Return value

Type: gboolean

True if path1 and path2 are equal when applying a translation.