webui/examples/C
2023-10-10 02:36:21 +02:00
..
call_c_from_js Use GNUmakefile and Makefile to simplify MSVC compilation 2023-10-10 02:32:05 +02:00
call_js_from_c Use GNUmakefile and Makefile to simplify MSVC compilation 2023-10-10 02:32:05 +02:00
minimal Use GNUmakefile and Makefile to simplify MSVC compilation 2023-10-10 02:32:05 +02:00
serve_a_folder Use GNUmakefile and Makefile to simplify MSVC compilation 2023-10-10 02:32:05 +02:00
text-editor Use GNUmakefile and Makefile to simplify MSVC compilation 2023-10-10 02:32:05 +02:00
README.md Remove trailing whitespaces 2023-10-10 02:36:21 +02:00

WebUI C Examples

Examples of how to create a WebUI application in C.

C99 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: Uses WebUI to serve a folder that contains .html, .css, .js, or .ts files.

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.