[gtk/path-work-rebased: 142/149] path: Add gsk_path_get_flags
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/path-work-rebased: 142/149] path: Add gsk_path_get_flags
- Date: Fri, 8 Apr 2022 02:53:29 +0000 (UTC)
commit 1e9671e89847ca3b01d8f0d0017cd58ea9e32fb4
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 2 17:11:45 2022 -0400
path: Add gsk_path_get_flags
The flags contain some useful information.
gsk/gskpath.c | 6 ++++++
gsk/gskpathprivate.h | 3 +++
2 files changed, 9 insertions(+)
---
diff --git a/gsk/gskpath.c b/gsk/gskpath.c
index 13c4f66641..2967569c4f 100644
--- a/gsk/gskpath.c
+++ b/gsk/gskpath.c
@@ -203,6 +203,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`
diff --git a/gsk/gskpathprivate.h b/gsk/gskpathprivate.h
index 4b403acbd6..4e6b0e5989 100644
--- a/gsk/gskpathprivate.h
+++ b/gsk/gskpathprivate.h
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]