aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-07 16:06:31 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-07 23:14:30 +0100
commita9128846c27307bae1a8154c8bfe8c71acd2c88e (patch)
tree239ee9cba0eaf5f3329748d78987e7cbfb4c21da /vis.h
parent0ca5c66a71aa6ed9b2cfc621c26d4fc4ff47ec93 (diff)
downloadvis-a9128846c27307bae1a8154c8bfe8c71acd2c88e.tar.gz
vis-a9128846c27307bae1a8154c8bfe8c71acd2c88e.tar.xz
vis: export vis_window_closable
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index 3bcd9c7..eb84695 100644
--- a/vis.h
+++ b/vis.h
@@ -67,6 +67,8 @@ void vis_suspend(Vis*);
bool vis_window_new(Vis*, const char *filename);
/* reload the file currently displayed in the window from disk */
bool vis_window_reload(Win*);
+/* check whether closing the window would loose unsaved changes */
+bool vis_window_closable(Win*);
/* close window, redraw user interface */
void vis_window_close(Win*);
/* split the given window. changes to the displayed text will be reflected
@@ -405,6 +407,7 @@ bool vis_signal_handler(Vis*, int signum, const siginfo_t *siginfo, const void *
/* TODO: expose proper API to iterate through files etc */
Text *vis_text(Vis*);
View *vis_view(Vis*);
+Win *vis_window(Vis*);
Text *vis_file_text(File*);
const char *vis_file_name(File*);