[cairo-commit] 2 commits - util/cairo-gobject
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Mar 10 13:28:39 UTC 2023
util/cairo-gobject/cairo-gobject-structs.c | 6 ++++++
util/cairo-gobject/cairo-gobject.h | 8 ++++++++
2 files changed, 14 insertions(+)
New commits:
commit ae60e48ac6a707b32a1deb2afc848b6c17e07e35
Merge: d4d027d35 d08e348dd
Author: Emmanuele Bassi <ebassi at gmail.com>
Date: Fri Mar 10 13:28:37 2023 +0000
Merge branch 'gi-text-glyphs' into 'master'
[gobject] Bind cairo_glyph_t and cairo_text_cluster_t
See merge request cairo/cairo!468
commit d08e348dd6b5d9617a65655d3c9a599fcc197d92
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Mar 9 13:04:50 2023 -0700
[gobject] Bind cairo_glyph_t and cairo_text_cluster_t
diff --git a/util/cairo-gobject/cairo-gobject-structs.c b/util/cairo-gobject/cairo-gobject-structs.c
index b9ca7fca4..bb8e96ac8 100644
--- a/util/cairo-gobject/cairo-gobject-structs.c
+++ b/util/cairo-gobject/cairo-gobject-structs.c
@@ -92,3 +92,9 @@ CAIRO_DEFINE_BOXED ("CairoRectangle", cairo_gobject_rectangle,
COPY_FUNC (rectangle_int)
CAIRO_DEFINE_BOXED ("CairoRectangleInt", cairo_gobject_rectangle_int,
cairo_gobject_cairo_rectangle_int_copy, g_free);
+COPY_FUNC (glyph)
+CAIRO_DEFINE_BOXED ("CairoGlyph", cairo_gobject_glyph,
+ cairo_gobject_cairo_glyph_copy, g_free);
+COPY_FUNC (text_cluster)
+CAIRO_DEFINE_BOXED ("CairoTextCluster", cairo_gobject_text_cluster,
+ cairo_gobject_cairo_text_cluster_copy, g_free);
diff --git a/util/cairo-gobject/cairo-gobject.h b/util/cairo-gobject/cairo-gobject.h
index 459074e83..28aa51c8b 100644
--- a/util/cairo-gobject/cairo-gobject.h
+++ b/util/cairo-gobject/cairo-gobject.h
@@ -91,6 +91,14 @@ cairo_gobject_rectangle_int_get_type (void);
cairo_public GType
cairo_gobject_region_get_type (void);
+#define CAIRO_GOBJECT_TYPE_GLYPH cairo_gobject_glyph_get_type ()
+cairo_public GType
+cairo_gobject_glyph_get_type (void);
+
+#define CAIRO_GOBJECT_TEXT_CLUSTER_GLYPH cairo_gobject_text_cluster_get_type ()
+cairo_public GType
+cairo_gobject_text_cluster_get_type (void);
+
/* enums */
#define CAIRO_GOBJECT_TYPE_STATUS cairo_gobject_status_get_type ()
More information about the cairo-commit
mailing list