From e10a236478dc6b5ca0c4abf2b9bfcc9b3e1f6121 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Fri, 22 May 2026 13:19:22 +1200 Subject: Add functions to get the WebKitWebView from the SFWKWebView with initialization checks, no more manually getting webview->wpe.wkwebview --- include/saffronwebkit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/saffronwebkit.h') diff --git a/include/saffronwebkit.h b/include/saffronwebkit.h index 3b6a64c..a90a7c3 100644 --- a/include/saffronwebkit.h +++ b/include/saffronwebkit.h @@ -69,7 +69,7 @@ typedef struct { SFWKContext* sfwk_init(); // can return NULL! be careful! bool sfwk_process_event(SFWKContext* context, SFWKWebView* webview, SDL_Event* event); // the user needs to attach this to a saffron_hook_sdl_all_events - SFWKWebView* sfwk_webview_new(SFWKContext* context, const char* url, int w, int h); +WebKitWebView* sfwk_webview_get_wkwebview(SFWKWebView* webview); #endif -- cgit v1.2.3