aboutsummaryrefslogtreecommitdiff
path: root/src/api/window.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-11 10:11:45 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-13 14:11:32 -0300
commita132effd35801ea60b178f6dc6707159c21fcbf4 (patch)
tree5f3a5153f51593d7ed611c99ae940df6906a5ce6 /src/api/window.h
parentb7c5d294c11dafe698ad7a05c14b1be781916a4e (diff)
downloadrneovim-a132effd35801ea60b178f6dc6707159c21fcbf4.tar.gz
rneovim-a132effd35801ea60b178f6dc6707159c21fcbf4.tar.bz2
rneovim-a132effd35801ea60b178f6dc6707159c21fcbf4.zip
API: Implement window_{get,set}_{height,width}
Diffstat (limited to 'src/api/window.h')
-rw-r--r--src/api/window.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/api/window.h b/src/api/window.h
index 1874cfae82..96ff619d88 100644
--- a/src/api/window.h
+++ b/src/api/window.h
@@ -49,6 +49,14 @@ void window_set_height(Window window, int64_t height, Error *err);
/// @return the width in columns
int64_t window_get_width(Window window, Error *err);
+/// Sets the window width. This will only succeed if the screen is split
+/// vertically.
+///
+/// @param window The window handle
+/// @param width the new width in columns
+/// @param[out] err Details of an error that may have occurred
+void window_set_width(Window window, int64_t width, Error *err);
+
/// Gets a window variable
///
/// @param window The window handle