aboutsummaryrefslogtreecommitdiff
path: root/src/wrap.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-03-11 23:15:34 +0100
committerThomas White <taw@bitwiz.org.uk>2014-03-11 23:15:34 +0100
commitcd5b7c2b8905619e2c66959178c92fc41a712eb7 (patch)
tree34dc48dd9dbc560342693b2b93b6e4fdacbfaec3 /src/wrap.h
parente16371560338dc7596aeed75c0ea2fd6288c7088 (diff)
New way of doing cursor position
Diffstat (limited to 'src/wrap.h')
-rw-r--r--src/wrap.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wrap.h b/src/wrap.h
index 8fc057a..a4064e6 100644
--- a/src/wrap.h
+++ b/src/wrap.h
@@ -59,7 +59,6 @@ enum wrap_box_space
struct wrap_box
{
enum wrap_box_type type;
- size_t sc_offset; /* How far into the SC for this frame */
int editable;
/* Pango units */
@@ -95,16 +94,16 @@ struct wrap_line
int overfull;
int underfull;
int last_line;
- size_t sc_offset;
};
extern int wrap_contents(struct frame *fr);
-extern void get_cursor_pos(struct frame *fr, size_t pos,
+extern void get_cursor_pos(struct wrap_box *box, size_t pos,
double *xposd, double *yposd, double *line_height);
-extern size_t find_cursor_pos(struct frame *fr, double xposd, double yposd);
+extern void find_cursor(struct frame *fr, double xposd, double yposd,
+ int *line, int *box, size_t *pos);
extern void alloc_boxes(struct wrap_line *l);
extern void initialise_line(struct wrap_line *l);