diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-24 22:51:10 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-24 22:51:10 -0500 |
commit | ef48092c9752fe3fdd358351f368c8c66da3638d (patch) | |
tree | 843df4575c05dae633e3f0a17972980fd2d0a881 /src/window/window.h | |
parent | de2fa7938758ff83cabf06baf4c0ac7a230e78bf (diff) |
add window resize callback functions
Diffstat (limited to 'src/window/window.h')
-rw-r--r-- | src/window/window.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/window/window.h b/src/window/window.h index 3d320f7..7b12156 100644 --- a/src/window/window.h +++ b/src/window/window.h @@ -16,6 +16,8 @@ typedef struct { } honey_window_information; extern int honey_window_info_ref; +extern int honey_window_resize_callback_ref; +extern int honey_window_resize_callback_data_ref; /** @brief Push the various honey.window table to the stack. * @@ -58,4 +60,18 @@ int honey_window_get_size(lua_State* L); */ int honey_window_set_size(lua_State* L); +/** @brief Bind a call back to the window resize. + * + * @param[in] callback The callback function to call on a window resize. + * + * @returns Nothing. + */ +int honey_window_resize_bind(lua_State* L); + +/** @brief Unbind any callback that may be attached to the window resize. + * + * @returns Nothing. + */ +int honey_window_resize_unbind(lua_State* L); + #endif |