aboutsummaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
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*);