summaryrefslogtreecommitdiff
path: root/src/window/window.h
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-24 22:09:34 -0500
committersanine-a <sanine.not@pm.me>2020-10-24 22:09:34 -0500
commitde2fa7938758ff83cabf06baf4c0ac7a230e78bf (patch)
treecf11c155d3c1e432b19f840556065d2b94e41773 /src/window/window.h
parent41ac253f743e464194587c3ecc0f2547c95d924d (diff)
add more window functions and clean up window info access
Diffstat (limited to 'src/window/window.h')
-rw-r--r--src/window/window.h25
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