summaryrefslogtreecommitdiff
path: root/pango/pango-lines-private.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-25 14:48:13 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-25 15:34:35 -0500
commitd815d061c85ec5f403f007453c502d18f5616ea4 (patch)
tree7421c588f57824c96bb4da002f91bfe5d34bc1d6 /pango/pango-lines-private.h
parentec2958682949220f15a32066eff412d857c735c5 (diff)
downloadpango-d815d061c85ec5f403f007453c502d18f5616ea4.tar.gz
lines: tweak the array api
Make this work like the line api, with pango_lines_get_lines() and pango_lines_get_line_count(). Update all users.
Diffstat (limited to 'pango/pango-lines-private.h')
-rw-r--r--pango/pango-lines-private.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/pango/pango-lines-private.h b/pango/pango-lines-private.h
index 46ef06bf..94b4f4c1 100644
--- a/pango/pango-lines-private.h
+++ b/pango/pango-lines-private.h
@@ -2,10 +2,17 @@
#include "pango-lines.h"
+typedef struct _Position Position;
+struct _Position
+{
+ int x, y;
+};
+
struct _PangoLines
{
GObject parent_instance;
- GArray *lines;
+ GPtrArray *lines;
+ GArray *positions;
guint serial;
};