diff --git a/gsk/gskpathmeasure.c b/gsk/gskpathmeasure.c index 01ecb0a920..a3c1cc303e 100644 --- a/gsk/gskpathmeasure.c +++ b/gsk/gskpathmeasure.c @@ -161,6 +161,34 @@ gsk_path_measure_unref (GskPathMeasure *self) g_free (self); } +/** + * gsk_path_measure_get_path: + * @self: a `GskPathMeasure` + * + * Returns the path that the measure was created for. + * + * Returns: (transfer none): the path of @self + */ +GskPath * +gsk_path_measure_get_path (GskPathMeasure *self) +{ + return self->path; +} + +/** + * gsk_path_measure_get_tolerance: + * @self: a `GskPathMeasure` + * + * Returns the tolerance that the measure was created with. + * + * Returns: the tolerance of @self + */ +float +gsk_path_measure_get_tolerance (GskPathMeasure *self) +{ + return self->tolerance; +} + /** * gsk_path_measure_get_length: * @self: a `GskPathMeasure` diff --git a/gsk/gskpathmeasure.h b/gsk/gskpathmeasure.h index 5d93167be5..685acbd5f0 100644 --- a/gsk/gskpathmeasure.h +++ b/gsk/gskpathmeasure.h @@ -44,6 +44,11 @@ GskPathMeasure * gsk_path_measure_ref (GskPathMeasure GDK_AVAILABLE_IN_ALL void gsk_path_measure_unref (GskPathMeasure *self); +GDK_AVAILABLE_IN_ALL +GskPath * gsk_path_measure_get_path (GskPathMeasure *self) G_GNUC_PURE; +GDK_AVAILABLE_IN_ALL +float gsk_path_measure_get_tolerance (GskPathMeasure *self) G_GNUC_PURE; + GDK_AVAILABLE_IN_ALL float gsk_path_measure_get_length (GskPathMeasure *self); GDK_AVAILABLE_IN_ALL