Fix C++ Header

This commit is contained in:
Hassan DRAGA 2024-07-09 19:11:51 -04:00
parent 9350a6aa95
commit af46c34a02

View File

@ -176,15 +176,15 @@ class window {
// Set window size
void set_size(unsigned int width, unsigned int height) const { webui_set_size(webui_window, width, height); }
// Get the web-server network port to be used by WebUI. Returns 0 if no port is used.
// Get the web-server network port of this current window.
size_t get_port() const { return webui_get_port(webui_window); }
// Set a custom web-server network port to be used by WebUI. This can be useful to determine the HTTP
// link of `webui.js` in case you are trying to use WebUI with an external web-server like NGNIX
void set_port(size_t port) const { webui_set_port(webui_window, port); }
// Get an available network port to be used by your app or by WebUI.
size_t get_free_port() { webui_get_free_port(); }
// Get an available usable free network port.
size_t get_free_port() { return webui_get_free_port(); }
// Set window position
void set_position(unsigned int x, unsigned int y) const { webui_set_position(webui_window, x, y); }