#ifndef WEBVIEW_H
#define WEBVIEW_H
#ifdef UI_WEBVIEW
#include "../ui/webview.h"
#if GTK_MAJOR_VERSION >=
4
#include <webkit/webkit.h>
#else
#include <webkit2/webkit2.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
enum WebViewDataType {
WEBVIEW_CONTENT_URL,
WEBVIEW_CONTENT_CONTENT
};
typedef struct WebViewData {
WebKitWebView *webview;
char *uri;
char *mimetype;
char *encoding;
char *content;
size_t contentlength;
enum WebViewDataType type;
double zoom;
UiBool javascript;
} WebViewData;
void* ui_webview_get(UiGeneric *g);
const char* ui_webview_get_type(UiGeneric *g);
int ui_webview_set(UiGeneric *g,
void *value,
const char *type);
#ifdef __cplusplus
}
#endif
#endif
#endif