diff options
-rw-r--r-- | util/cairo-gobject/cairo-gobject-structs.c | 4 | ||||
-rw-r--r-- | util/cairo-gobject/cairo-gobject.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/util/cairo-gobject/cairo-gobject-structs.c b/util/cairo-gobject/cairo-gobject-structs.c index 05e3ece8..4bbf11ba 100644 --- a/util/cairo-gobject/cairo-gobject-structs.c +++ b/util/cairo-gobject/cairo-gobject-structs.c @@ -78,10 +78,12 @@ cairo_gobject_cairo_ ## name ## _copy (gpointer src) \ return g_memdup (src, sizeof (cairo_ ## name ## _t)); \ } +COPY_FUNC (matrix) +CAIRO_DEFINE_BOXED ("CairoMatrix", cairo_gobject_matrix, + cairo_gobject_cairo_matrix_copy, g_free); COPY_FUNC (rectangle) CAIRO_DEFINE_BOXED ("CairoRectangle", cairo_gobject_rectangle, cairo_gobject_cairo_rectangle_copy, g_free); COPY_FUNC (rectangle_int) CAIRO_DEFINE_BOXED ("CairoRectangleInt", cairo_gobject_rectangle_int, cairo_gobject_cairo_rectangle_int_copy, g_free); - diff --git a/util/cairo-gobject/cairo-gobject.h b/util/cairo-gobject/cairo-gobject.h index e82cbc0d..459074e8 100644 --- a/util/cairo-gobject/cairo-gobject.h +++ b/util/cairo-gobject/cairo-gobject.h @@ -55,6 +55,10 @@ cairo_gobject_context_get_type (void); cairo_public GType cairo_gobject_device_get_type (void); +#define CAIRO_GOBJECT_TYPE_MATRIX cairo_gobject_matrix_get_type () +cairo_public GType +cairo_gobject_matrix_get_type (void); + #define CAIRO_GOBJECT_TYPE_PATTERN cairo_gobject_pattern_get_type () cairo_public GType cairo_gobject_pattern_get_type (void); |