You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/webui/bindgen.rs
+8-19Lines changed: 8 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -54,10 +54,8 @@ extern "C" {
54
54
}
55
55
extern"C"{
56
56
#[doc = " @brief Show a window using embedded HTML, or a file. Single client.\n\n @param e The event struct\n @param content The HTML, URL, Or a local file\n\n @return Returns True if showing the window is successed.\n\n @example webui_show_client(e, \"<html>...</html>\");"]
#[doc = " @brief Same as `webui_show()`. But using a specific web browser.\n\n @param window The window number\n @param content The HTML, Or a local file\n @param browser The web browser to be used\n\n @return Returns True if showing the window is successed.\n\n @example webui_show_browser(myWindow, \"<html>...</html>\", Chrome); |\n webui_show(myWindow, \"index.html\", Firefox);"]
@@ -76,10 +74,7 @@ extern "C" {
76
74
}
77
75
extern"C"{
78
76
#[doc = " @brief Show a WebView window using embedded HTML, or a file.\n\n @param window The window number\n @param content The HTML, URL, Or a local file\n\n @return Returns True if showing the WebView window is successed.\n\n @example webui_show_wv(myWindow, \"<html>...</html>\");"]
#[doc = " @brief Set the window in Kiosk mode (Full screen).\n\n @param window The window number\n @param status True or False\n\n @example webui_set_kiosk(myWindow, true);"]
@@ -91,10 +86,7 @@ extern "C" {
91
86
}
92
87
extern"C"{
93
88
#[doc = " @brief Add a user-defined web browser's CLI parameters.\n\n @param window The window number\n @param params Command line parameters\n\n @example webui_set_custom_parameters(myWindow, \"--remote-debugging-port=9222\");"]
#[doc = " @brief Set the window with high-contrast support.\n\n @param window The window number\n @param status True or False\n\n @example webui_set_high_contrast(myWindow, true);"]
@@ -385,8 +377,9 @@ extern "C" {
385
377
}
386
378
extern"C"{
387
379
#[doc = " @brief Get the HTTP mime type of a file.\n\n @return Returns the HTTP mime string\n\n @example const char* mime = webui_get_mime_type(\"foo.png\");"]
#[doc = " @brief Set the SSL/TLS certificate and the private key content, both in PEM\n format. This works only with `webui-2-secure` library. If set empty WebUI\n will generate a self-signed certificate.\n\n @param certificate_pem The SSL/TLS certificate content in PEM format\n @param private_key_pem The private key content in PEM format\n\n @return Returns True if the certificate and the key are valid.\n\n @example bool ret = webui_set_tls_certificate(\"-----BEGIN\n CERTIFICATE-----\\n...\", \"-----BEGIN PRIVATE KEY-----\\n...\");"]
@@ -556,11 +549,7 @@ extern "C" {
556
549
}
557
550
extern"C"{
558
551
#[doc = " @brief Get an argument as float at a specific index.\n\n @param window The window number\n @param event_number The event number\n @param index The argument position\n\n @return Returns argument as float\n\n @example double myFloat = webui_interface_get_float_at(myWindow, e->event_number, 0);"]
#[doc = " @brief Show a window using embedded HTML, or a file. Single client.\n\n @param window The window number\n @param event_number The event number\n @param content The HTML, URL, Or a local file\n\n @return Returns True if showing the window is successed.\n\n @example webui_interface_show_client(myWindow, e->event_number, \"<html>...</html>\");"]
0 commit comments