mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-11 14:06:09 +03:00
16 lines
370 B
C
16 lines
370 B
C
// WebUI C - Minimal Example
|
|
|
|
#include "webui.h"
|
|
|
|
int main() {
|
|
|
|
size_t my_window = webui_new_window();
|
|
webui_show(my_window, "<html><head><script src=\"webui.js\"></script></head> Hello World ! </html>");
|
|
webui_wait();
|
|
return 0;
|
|
}
|
|
|
|
#if defined(_MSC_VER)
|
|
int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, PSTR cmdline, int cmdshow) { return main(); }
|
|
#endif
|