From ef48092c9752fe3fdd358351f368c8c66da3638d Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sat, 24 Oct 2020 22:51:10 -0500 Subject: add window resize callback functions --- src/window/window.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/window/window.h') 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 -- cgit v1.2.1