aboutsummaryrefslogtreecommitdiffstats
path: root/src/display.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-06-05 05:08:23 -0400
committerJesse Luehrs <doy@tozt.net>2016-06-05 05:08:23 -0400
commitb8196f0244d2a0b7adebe8d35182a071493eddf5 (patch)
treea381825d4e9e4ccd3bdb3bafcf334973c1fb01ff /src/display.h
parent7f59d00de5bb1b329ce6d332056f8c55348740b0 (diff)
downloadrunes-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.h4
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