22# # Do not edit this file directly
33# #
44
5- include ./ bindings_include .nim
5+ include ./ bindings_prefix .nim
66
77const
88 WEBUI_VERSION * = " 2.5.0-beta.3" # #
6464# WEBUI_PCLOSE* = pclose
6565# WEBUI_MAX_PATH* = PATH_MAX
6666type
67- WebuiBrowser * = enum # # -- Enums ---------------------------
67+ WebuiBrowser * {. renameEnumFields .} = enum # # -- Enums ---------------------------
6868 NoBrowser = 0 , # # 0. No web browser
6969 AnyBrowser = 1 , # # 1. Default recommended web browser
7070 Chrome , # # 2. Google Chrome
8282
8383
8484type
85- WebuiRuntime * = enum
85+ WebuiRuntime * {. renameEnumFields .} = enum
8686 None = 0 , # # 0. Prevent WebUI from using any runtime for .js and .ts files
8787 Deno , # # 1. Use Deno runtime for .js and .ts files
8888 NodeJS , # # 2. Use Nodejs runtime for .js files
8989 Bun # # 3. Use Bun runtime for .js and .ts files
9090
9191
9292type
93- WebuiEvent * = enum
94- WEBUI_EVENT_DISCONNECTED = 0 , # # 0. Window disconnection event
95- WEBUI_EVENT_CONNECTED , # # 1. Window connection event
96- WEBUI_EVENT_MOUSE_CLICK , # # 2. Mouse click event
97- WEBUI_EVENT_NAVIGATION , # # 3. Window navigation event
98- WEBUI_EVENT_CALLBACK # # 4. Function call event
93+ WebuiEvent * {. renameEnumFields .} = enum
94+ WEBUI_EVENTS_DISCONNECTED = 0 , # # 0. Window disconnection event
95+ WEBUI_EVENTS_CONNECTED , # # 1. Window connection event
96+ WEBUI_EVENTS_MOUSE_CLICK , # # 2. Mouse click event
97+ WEBUI_EVENTS_NAVIGATION , # # 3. Window navigation event
98+ WEBUI_EVENTS_CALLBACK # # 4. Function call event
9999
100100
101101type # # Control if `webui_show()`, `webui_show_browser()` and
102102 # # `webui_show_wv()` should wait for the window to connect
103103 # # before returns or not.
104104 # #
105105 # # Default: True
106- WebuiConfig * = enum
106+ WebuiConfig * {. renameEnumFields .} = enum
107107 show_wait_connection = 0 , # # Control if WebUI should block and process the UI events
108108 # # one a time in a single thread `True`, or process every
109109 # # event in a new non-blocking thread `False`. This updates
@@ -1224,4 +1224,5 @@ proc interface_script_client*(window: csize_t; event_number: csize_t;
12241224 # # @return Returns True if there is no execution error
12251225 # #
12261226 # # @example bool err = webui_script_client(e, "return 4 + 6;", 0, myBuffer, myBufferSize);
1227- # #
1227+ # #
1228+ include ./ bindings_suffix.nim
0 commit comments