aboutsummaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-04-07 13:05:18 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-04-07 13:09:25 +0200
commit515c3e272950e88be6e6d24b147d3f82ffb2d99a (patch)
treef7a8ae1fcffec06563c75ecdbab7b38beffe62b5 /window.h
parente0b0042619a0857c57b049dcc0d7e590a0fc0d2c (diff)
downloadvis-515c3e272950e88be6e6d24b147d3f82ffb2d99a.tar.gz
vis-515c3e272950e88be6e6d24b147d3f82ffb2d99a.tar.xz
Set '< and '> marks
Diffstat (limited to 'window.h')
-rw-r--r--window.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/window.h b/window.h
index 5c8cf18..e1e2080 100644
--- a/window.h
+++ b/window.h
@@ -10,6 +10,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
character which use more than 1 column to display, their lenght
@@ -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*);