From 515c3e272950e88be6e6d24b147d3f82ffb2d99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 7 Apr 2015 13:05:18 +0200 Subject: Set '< and '> marks --- window.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'window.h') diff --git a/window.h b/window.h index 5c8cf18..e1e2080 100644 --- a/window.h +++ b/window.h @@ -9,6 +9,11 @@ typedef struct Win Win; +typedef struct { + void *data; + void (*selection)(void *data, Filerange*); +} ViewEvent; + typedef struct { int width; /* display width i.e. number of columns ocupied by this character */ size_t len; /* number of bytes the character displayed in this cell uses, for @@ -35,7 +40,8 @@ typedef struct { size_t col; } CursorPos; -Win *window_new(Text*, UiWin*, int width, int height); +Win *window_new(Text*, ViewEvent*); +void window_ui(Win*, UiWin*); /* change associated text displayed in this window */ void window_reload(Win*, Text*); void window_free(Win*); -- cgit v1.2.3