diff options
Diffstat (limited to 'src/window/window.h')
-rw-r--r-- | src/window/window.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/window/window.h b/src/window/window.h index c0083ba..3d320f7 100644 --- a/src/window/window.h +++ b/src/window/window.h @@ -15,6 +15,8 @@ typedef struct { bool fullscreen; } honey_window_information; +extern int honey_window_info_ref; + /** @brief Push the various honey.window table to the stack. * * @param[in] L The lua state to push to @@ -33,4 +35,27 @@ bool honey_setup_window(lua_State* L); */ int honey_window_set_fullscreen(lua_State* L); +/** @brief Set the title of the window. + * + * @param[in] title String containing the desired window title. + * + * @returns Nothing. + */ +int honey_window_set_title(lua_State* L); + +/** @brief Get the current size of the window. + * + * @returns width, height numbers representing the window size in pixels. + */ +int honey_window_get_size(lua_State* L); + +/** @brief Set the current size of the window. + * + * @param[in] width Integer of the desired width in pixels. + * @param[in] height Integer of the desired height in pixels. + * + * @returns Nothing. + */ +int honey_window_set_size(lua_State* L); + #endif |