mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-11 22:17:13 +03:00
WebUI v2.5.0-Beta-1
This commit is contained in:
parent
ca65af8be6
commit
7e99ecc7bf
@ -1,8 +1,8 @@
|
||||
/*
|
||||
WebUI Library 2.4.2
|
||||
WebUI Library 2.5.0-Beta-1
|
||||
http://webui.me
|
||||
https://github.com/webui-dev/webui
|
||||
Copyright (c) 2020-2023 Hassan Draga.
|
||||
Copyright (c) 2020-2024 Hassan Draga.
|
||||
Licensed under MIT License.
|
||||
All rights reserved.
|
||||
Canada.
|
||||
@ -11,7 +11,7 @@
|
||||
#ifndef _WEBUI_H
|
||||
#define _WEBUI_H
|
||||
|
||||
#define WEBUI_VERSION "2.4.2"
|
||||
#define WEBUI_VERSION "2.5.0-Beta-1"
|
||||
|
||||
// Max windows, servers and threads
|
||||
#define WEBUI_MAX_IDS (256)
|
||||
@ -53,13 +53,12 @@
|
||||
|
||||
// -- Windows -------------------------
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
|
||||
#include <direct.h>
|
||||
#include <io.h>
|
||||
#include <shellapi.h>
|
||||
@ -224,6 +223,20 @@ WEBUI_EXPORT bool webui_show(size_t window, const char* content);
|
||||
*/
|
||||
WEBUI_EXPORT bool webui_show_browser(size_t window, const char* content, size_t browser);
|
||||
|
||||
/**
|
||||
* @brief Show a WebView window using embedded HTML, or a file. If the window is already
|
||||
* open, it will be refreshed. Note: Win32 need `WebView2Loader.dll`.
|
||||
*
|
||||
* @param window The window number
|
||||
* @param content The HTML, URL, Or a local file
|
||||
*
|
||||
* @return Returns True if showing the WebView window is successed.
|
||||
*
|
||||
* @example webui_show_wv(myWindow, "<html>...</html>"); | webui_show_wv(myWindow,
|
||||
* "index.html"); | webui_show_wv(myWindow, "http://...");
|
||||
*/
|
||||
WEBUI_EXPORT bool webui_show_wv(size_t window, const char* content);
|
||||
|
||||
/**
|
||||
* @brief Set the window in Kiosk mode (Full screen)
|
||||
*
|
||||
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
WebUI Library 2.4.2
|
||||
WebUI Library 2.5.0-Beta-1
|
||||
http://webui.me
|
||||
https://github.com/webui-dev/webui
|
||||
Copyright (c) 2020-2023 Hassan Draga.
|
||||
Copyright (c) 2020-2024 Hassan Draga.
|
||||
Licensed under MIT License.
|
||||
All rights reserved.
|
||||
Canada.
|
||||
|
2457
src/webui.c
2457
src/webui.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user