@@ -610,6 +610,17 @@ foreign webui {
610610 @ (link_name = " webui_set_position" )
611611 set_position :: proc (window: c.size_t, x: c.uint , y: c.uint ) ---
612612
613+ /* *
614+ * @brief Centers the window on the screen. Works better with
615+ * WebView. Call this function before `webui_show()` for better results.
616+ *
617+ * @param window The window number
618+ *
619+ * @example webui_set_center(myWindow);
620+ */
621+ @ (link_name = " webui_set_center" )
622+ set_center :: proc (window: c.size_t) ---
623+
613624 /* *
614625 * @brief Set the web browser profile to use. An empty `name` and `path` means
615626 * the default user profile. Need to be called before `show()`.
@@ -816,6 +827,41 @@ foreign webui {
816827 @ (link_name = " webui_set_event_blocking" )
817828 set_event_blocking :: proc (window: c.size_t, status: c.bool ) ---
818829
830+ /* *
831+ * @brief Make a WebView window frameless.
832+ *
833+ * @param window The window number
834+ * @param status The frameless status `true` or `false`
835+ *
836+ * @example webui_set_frameless(myWindow, true);
837+ */
838+ @ (link_name = " webui_set_frameless" )
839+ set_frameless :: proc (window: c.size_t, status: bool ) ---
840+
841+ /* *
842+ * @brief Make a WebView window transparent.
843+ *
844+ * @param window The window number
845+ * @param status The transparency status `true` or `false`
846+ *
847+ * @example webui_set_transparent(myWindow, true);
848+ */
849+ @ (link_name = " webui_set_transparent" )
850+ set_transparent :: proc (window: c.size_t, status: bool ) ---
851+
852+ /* *
853+ * @brief Sets whether the window frame is resizable or fixed.
854+ * Works only on WebView window.
855+ *
856+ * @param window The window number
857+ * @param status True or False
858+ *
859+ * @example webui_set_resizable(myWindow, true);
860+ */
861+ @ (link_name = " webui_set_resizable" )
862+ set_resizable :: proc (window: c.size_t, status: bool ) ---
863+
864+
819865 /* *
820866 * @brief Get the HTTP mime type of a file.
821867 *
0 commit comments