summaryrefslogtreecommitdiff
path: root/src/window/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/window/window.h')
-rw-r--r--src/window/window.h16
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