aboutsummaryrefslogtreecommitdiff
path: root/include/saffronwebkit.h
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-05-22 13:19:22 +1200
committerArslaan Pathan <[email protected]>2026-05-22 13:19:22 +1200
commite10a236478dc6b5ca0c4abf2b9bfcc9b3e1f6121 (patch)
tree5b61ef8f69dfae4cf003a48902896d00f468c931 /include/saffronwebkit.h
parent66fe954fc2145d750d1584bb1eedf0165d95a4f5 (diff)
downloadsaffronwebkit-e10a236478dc6b5ca0c4abf2b9bfcc9b3e1f6121.tar.xz
saffronwebkit-e10a236478dc6b5ca0c4abf2b9bfcc9b3e1f6121.zip
Add functions to get the WebKitWebView from the SFWKWebView with initialization checks, no more manually getting webview->wpe.wkwebview
Diffstat (limited to 'include/saffronwebkit.h')
-rw-r--r--include/saffronwebkit.h2
1 files changed, 1 insertions, 1 deletions
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