mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
Feature/edge(ui) (#40)
* add webview-x code * add logic for json_escape function * fix warning * merge edge changes
This commit is contained in:
committed by
nothingismagick
parent
b93bded180
commit
0fd0d2cf48
32
ui/tauri-edge.cc
Normal file
32
ui/tauri-edge.cc
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "webview-edge.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
void wrapper_webview_free(webview_t w)
|
||||
{
|
||||
webview_destroy(w);
|
||||
}
|
||||
|
||||
webview_t wrapper_webview_new(const char *title, const char *url, int width, int height, int resizable, int debug, webview_external_invoke_cb_t external_invoke_cb, void *userdata)
|
||||
{
|
||||
webview_t w = webview_create(external_invoke_cb, title, width, height, resizable, debug);
|
||||
webview_set_userdata(w, userdata);
|
||||
webview_navigate(w, url);
|
||||
return w;
|
||||
}
|
||||
|
||||
void *wrapper_webview_get_userdata(webview_t w)
|
||||
{
|
||||
return webview_get_userdata(w);
|
||||
}
|
||||
|
||||
void webview_exit(webview_t w)
|
||||
{
|
||||
webview_terminate(w);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
1173
ui/tauri-edge.h
Normal file
1173
ui/tauri-edge.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user