Add a private getter for path flags

The flags contain some useful information
that will be used in the path ops implementation.
This commit is contained in:
Matthias Clasen
2022-04-02 17:11:45 -04:00
parent e6f46e9845
commit b8754f00ff
2 changed files with 9 additions and 0 deletions

View File

@@ -155,6 +155,12 @@ gsk_path_get_contour (GskPath *path,
return path->contours[i];
}
GskPathFlags
gsk_path_get_flags (GskPath *self)
{
return self->flags;
}
/**
* gsk_path_print:
* @self: a #GskPath

View File

@@ -36,6 +36,9 @@ GskPath * gsk_path_new_from_contours (const GSList
gsize gsk_path_get_n_contours (GskPath *path);
const GskContour * gsk_path_get_contour (GskPath *path,
gsize i);
GskPathFlags gsk_path_get_flags (GskPath *self);
gboolean gsk_path_foreach_with_tolerance (GskPath *self,
GskPathForeachFlags flags,
double tolerance,