diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-06-21 10:02:41 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-06-21 10:02:41 +0200 |
commit | b36421467b4669dec503714bbf7be13fcfadc04e (patch) | |
tree | a14518cca12ff4bd78eb11ee5adb89ca9412b615 /src/wrap.h | |
parent | ceaa1b1f22ef86c5a592876c31e83cd04869b9ed (diff) |
Box offset logic
Diffstat (limited to 'src/wrap.h')
-rw-r--r-- | src/wrap.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -62,7 +62,7 @@ struct wrap_box int editable; SCBlock *scblock; - size_t offs; /* offset into contents of scblock */ + int offs_char; /* offset (in characters, not bytes) into scblock */ /* Pango units */ int width; @@ -78,6 +78,7 @@ struct wrap_box PangoFont *font; double col[4]; /* rgba colour */ size_t len_bytes; /* number of bytes (not characters) of text */ + int len_chars; /* For type == WRAP_BOX_IMAGE */ char *filename; @@ -108,7 +109,7 @@ extern void get_cursor_pos(struct wrap_box *box, size_t pos, extern void move_cursor_back(struct presentation *p); extern void find_cursor(struct frame *fr, double xposd, double yposd, - int *line, int *box, size_t *pos); + int *line, int *box, int *pos); extern void alloc_boxes(struct wrap_line *l); extern void initialise_line(struct wrap_line *l); |