aboutsummaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h
index dbb7efe..832473c 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -74,6 +74,35 @@ struct layout_parameters
};
+enum wrap_box_type
+{
+ WRAP_BOX_PANGO,
+};
+
+
+struct wrap_box
+{
+ enum wrap_box_type type;
+ int width; /* Pango units */
+
+ /* For type == WRAP_BOX_PANGO */
+ PangoGlyphItem *glyph_item;
+ char *text;
+};
+
+
+struct wrap_line
+{
+ int width;
+ int height; /* Pango units */
+ int ascent; /* Pango units */
+
+ int n_boxes;
+ int max_boxes;
+ struct wrap_box *boxes;
+};
+
+
struct frame
{
struct frame **children;
@@ -81,9 +110,16 @@ struct frame
int max_children;
char *sc; /* Storycode */
+ size_t sc_len; /* Space allocated for sc */
cairo_surface_t *contents;
+ int n_lines;
+ int max_lines;
+ struct wrap_line *lines;
+
+ size_t pos;
+
struct layout_parameters lop;
struct style *style; /* Non-NULL if 'lop' came from SS */