diff options
Diffstat (limited to 'src/display.h')
-rw-r--r-- | src/display.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |