[gtk/path-tests: 30/32] xxx: Make gsk_stroke_to_cairo public
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/path-tests: 30/32] xxx: Make gsk_stroke_to_cairo public
- Date: Wed, 23 Dec 2020 04:50:47 +0000 (UTC)
commit c67a3a9f1465f530b3eb8882c624dd66d69f24c6
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 19 09:58:51 2020 -0500
xxx: Make gsk_stroke_to_cairo public
It comes in handy, and does no harm.
gsk/gskstroke.c | 8 ++++++++
gsk/gskstroke.h | 4 ++++
gsk/gskstrokeprivate.h | 3 ---
3 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/gsk/gskstroke.c b/gsk/gskstroke.c
index 60cd3fc6db..b9d5ab1cfa 100644
--- a/gsk/gskstroke.c
+++ b/gsk/gskstroke.c
@@ -111,6 +111,14 @@ gsk_stroke_free (GskStroke *self)
g_free (self);
}
+/**
+ * gsk_stroke_to_cairo:
+ * @self: a #GskStroke
+ * @cr: the cairo context to configure
+ *
+ * A helper function that sets the stroke parameters
+ * of @cr from the values found in @self.
+ */
void
gsk_stroke_to_cairo (const GskStroke *self,
cairo_t *cr)
diff --git a/gsk/gskstroke.h b/gsk/gskstroke.h
index 233de38f85..2444128f77 100644
--- a/gsk/gskstroke.h
+++ b/gsk/gskstroke.h
@@ -80,6 +80,10 @@ void gsk_stroke_set_dash_offset (GskStroke
GDK_AVAILABLE_IN_ALL
float gsk_stroke_get_dash_offset (const GskStroke *self);
+GDK_AVAILABLE_IN_ALL
+void gsk_stroke_to_cairo (const GskStroke *self,
+ cairo_t *cr);
+
G_END_DECLS
diff --git a/gsk/gskstrokeprivate.h b/gsk/gskstrokeprivate.h
index 24594b1e09..9b5445094b 100644
--- a/gsk/gskstrokeprivate.h
+++ b/gsk/gskstrokeprivate.h
@@ -54,9 +54,6 @@ gsk_stroke_clear (GskStroke *stroke)
stroke->n_dash = 0; /* better safe than sorry */
}
-void gsk_stroke_to_cairo (const GskStroke *self,
- cairo_t *cr);
-
G_END_DECLS
#endif /* __GSK_STROKE_PRIVATE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]