stroke: Make gsk_stroke_to_cairo public

It comes in handy, and does no harm.
This commit is contained in:
Matthias Clasen
2020-12-19 09:58:51 -05:00
parent 10cd4fc48c
commit 386a58f0f4
3 changed files with 12 additions and 3 deletions

View File

@@ -96,6 +96,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)

View File

@@ -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

View File

@@ -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__ */