diff options
Diffstat (limited to 'src/api/window.h')
-rw-r--r-- | src/api/window.h | 8 |
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 |