webview_set_size

Function webview_set_size 

Source
pub unsafe extern "C" fn webview_set_size(
    w: webview_t,
    width: c_int,
    height: c_int,
    hints: webview_hint_t,
) -> webview_error_t
Expand description

Updates the size of the native window.

Remarks:

  • Subsequent calls to this function may behave inconsistently across different versions of GTK and windowing systems (X11/Wayland).
  • Using WEBVIEW_HINT_MAX for setting the maximum window size is not supported with GTK 4 because X11-specific functions such as gtk_window_set_geometry_hints were removed. This option has no effect when using GTK 4.

@param w The webview instance. @param width New width. @param height New height. @param hints Size hints.