diff options
| author | Arslaan Pathan <[email protected]> | 2026-05-22 13:19:22 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-05-22 13:19:22 +1200 |
| commit | e10a236478dc6b5ca0c4abf2b9bfcc9b3e1f6121 (patch) | |
| tree | 5b61ef8f69dfae4cf003a48902896d00f468c931 /include | |
| parent | 66fe954fc2145d750d1584bb1eedf0165d95a4f5 (diff) | |
| download | saffronwebkit-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')
| -rw-r--r-- | include/saffronwebkit.h | 2 |
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 |
