webui/examples/C
Hassan DRAGA 70def025c8 Adding webui.setEventCallback
* Adding new feature to WebUI Bridge to listen for connect/disconnect events in the UI. More events will be added in the future.
*
2024-01-04 16:17:51 -05:00
..
call_c_from_js Fix bridge Maximum call stack size exceeded 2023-11-16 16:43:52 -05:00
call_js_from_c Removing Git from GNU-Makefile 2023-10-29 16:40:47 -04:00
custom_web_server Removing Git from GNU-Makefile 2023-10-29 16:40:47 -04:00
minimal Removing Git from GNU-Makefile 2023-10-29 16:40:47 -04:00
public_network_access New example - Public network access 2023-11-29 18:22:35 -05:00
serve_a_folder Adding webui.setEventCallback 2024-01-04 16:17:51 -05:00
text-editor Removing Git from GNU-Makefile 2023-10-29 16:40:47 -04:00
README.md C99 to C 2023-10-28 19:51:02 -04:00

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.