diff options
author | Jesse Luehrs <doy@tozt.net> | 2015-08-20 01:37:52 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2015-08-20 01:37:52 -0400 |
commit | 7f3b17bd263ac512e59354a33c43fd3b225ecc6d (patch) | |
tree | 6233b741b2c39989b8470da2d3618321fb7a9982 /src/display.h | |
parent | 9670e562fc024b4048927d691210aaa542dd3e67 (diff) | |
download | runes-7f3b17bd263ac512e59354a33c43fd3b225ecc6d.tar.gz runes-7f3b17bd263ac512e59354a33c43fd3b225ecc6d.zip |
use the libvt100 library
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 |