diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-04-07 13:05:18 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-04-07 13:09:25 +0200 |
| commit | 515c3e272950e88be6e6d24b147d3f82ffb2d99a (patch) | |
| tree | f7a8ae1fcffec06563c75ecdbab7b38beffe62b5 /window.h | |
| parent | e0b0042619a0857c57b049dcc0d7e590a0fc0d2c (diff) | |
| download | vis-515c3e272950e88be6e6d24b147d3f82ffb2d99a.tar.gz vis-515c3e272950e88be6e6d24b147d3f82ffb2d99a.tar.xz | |
Set '< and '> marks
Diffstat (limited to 'window.h')
| -rw-r--r-- | window.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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*); |
