From 7f3b17bd263ac512e59354a33c43fd3b225ecc6d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 20 Aug 2015 01:37:52 -0400 Subject: use the libvt100 library --- src/display.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/display.h') diff --git a/src/display.h b/src/display.h index 1a63af0..1491cb9 100644 --- a/src/display.h +++ b/src/display.h @@ -12,13 +12,21 @@ struct runes_display { int fontx; int fonty; + struct vt100_loc selection_start; + struct vt100_loc selection_end; + char unfocused: 1; + char has_selection: 1; }; void runes_display_init(RunesTerm *t); void runes_display_set_window_size(RunesTerm *t); void runes_display_draw_screen(RunesTerm *t); void runes_display_draw_cursor(RunesTerm *t, cairo_t *cr); +int runes_display_loc_is_selected(RunesTerm *t, struct vt100_loc loc); +int runes_display_loc_is_between( + RunesTerm *t, struct vt100_loc loc, + struct vt100_loc start, struct vt100_loc end); void runes_display_cleanup(RunesTerm *t); #endif -- cgit v1.2.3-54-g00ecf