ui/ui/webview.h

changeset 875
0575ca45f1bb
parent 874
33618ae398bd
child 962
7016bcb8d38b
equal deleted inserted replaced
874:33618ae398bd 875:0575ca45f1bb
34 34
35 #ifdef __cplusplus 35 #ifdef __cplusplus
36 extern "C" { 36 extern "C" {
37 #endif 37 #endif
38 38
39 /*
40 * WebView type string used by UiGeneric
41 */
39 #define UI_WEBVIEW_OBJECT_TYPE "webview" 42 #define UI_WEBVIEW_OBJECT_TYPE "webview"
40 43
44 /*
45 * UiWebViewData* is returned by a webviews UiGeneric->get function
46 */
47 typedef struct UiWebViewData UiWebViewData;
48
41 typedef struct UiWebviewArgs { 49 typedef struct UiWebviewArgs {
42 UiBool fill; 50 UiBool fill;
43 UiBool hexpand; 51 UiBool hexpand;
44 UiBool vexpand; 52 UiBool vexpand;
45 UiBool hfill; 53 UiBool hfill;
73 const char *content, 81 const char *content,
74 size_t contentlength, 82 size_t contentlength,
75 const char *mimetype, 83 const char *mimetype,
76 const char *encoding); 84 const char *encoding);
77 85
86 /*
87 * Frees a UiWebViewData object returned by a webviews UiGeneric->get function
88 */
89 UIEXPORT void ui_webview_data_free(UiWebViewData *data);
78 90
79 UIEXPORT void ui_webview_reload(UiGeneric *g); 91 UIEXPORT void ui_webview_reload(UiGeneric *g);
80 UIEXPORT UiBool ui_webview_can_go_back(UiGeneric *g); 92 UIEXPORT UiBool ui_webview_can_go_back(UiGeneric *g);
81 UIEXPORT UiBool ui_webview_can_go_forward(UiGeneric *g); 93 UIEXPORT UiBool ui_webview_can_go_forward(UiGeneric *g);
82 UIEXPORT void ui_webview_go_back(UiGeneric *g); 94 UIEXPORT void ui_webview_go_back(UiGeneric *g);

mercurial