diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-06-05 05:08:23 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-06-05 05:08:23 -0400 |
commit | b8196f0244d2a0b7adebe8d35182a071493eddf5 (patch) | |
tree | a381825d4e9e4ccd3bdb3bafcf334973c1fb01ff /src/display.h | |
parent | 7f59d00de5bb1b329ce6d332056f8c55348740b0 (diff) | |
download | runes-b8196f0244d2a0b7adebe8d35182a071493eddf5.tar.gz runes-b8196f0244d2a0b7adebe8d35182a071493eddf5.zip |
have the display own the entire selection
rather than just the selection location
Diffstat (limited to 'src/display.h')
-rw-r--r-- | src/display.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/display.h b/src/display.h index 83fd57a..135a71e 100644 --- a/src/display.h +++ b/src/display.h @@ -19,6 +19,8 @@ struct runes_display { struct vt100_loc selection_start; struct vt100_loc selection_end; + char *selection_contents; + size_t selection_len; unsigned int unfocused: 1; unsigned int has_selection: 1; @@ -29,6 +31,8 @@ RunesDisplay *runes_display_new(char *font_name); void runes_display_set_context(RunesTerm *t, cairo_t *cr); void runes_display_draw_screen(RunesTerm *t); void runes_display_draw_cursor(RunesTerm *t); +void runes_display_set_selection( + RunesTerm *t, struct vt100_loc *start, struct vt100_loc *end); void runes_display_delete(RunesDisplay *display); #endif |