mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-11 14:06:09 +03:00
* Adding new feature to WebUI Bridge to listen for connect/disconnect events in the UI. More events will be added in the future. * |
||
---|---|---|
.. | ||
call_c_from_js | ||
call_js_from_c | ||
custom_web_server | ||
minimal | ||
public_network_access | ||
serve_a_folder | ||
text-editor | ||
README.md |
WebUI C Examples
Examples of how to create a WebUI application in C.
C Examples
The only requirement to build the examples is a C compiler.
minimal
: Creates a minimal WebUI application.call_c_from_js
: Calls C from JavaScript.call_js_from_c
: Calls JavaScript from C.serve_a_folder
: Use WebUI to serve a folder that contains.html
,.css
,.js
, or.ts
files.custom_web_server
: Use your preferred web server like NGINX/Apache... with WebUI to serve a folder.
To build an example, cd into its directory and run the make command.
-
Windows
# GCC mingw32-make # MSVC nmake
-
Linux
# GCC make # Clang make CC=clang
-
macOS
make
Additional Examples
text-editor
: A lightweight and portable text editor written in C using WebUI as the GUI library.