Skip to content

Commit af46c34

Browse files
committed
Fix C++ Header
1 parent 9350a6a commit af46c34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/webui.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ class window {
176176
// Set window size
177177
void set_size(unsigned int width, unsigned int height) const { webui_set_size(webui_window, width, height); }
178178

179-
// Get the web-server network port to be used by WebUI. Returns 0 if no port is used.
179+
// Get the web-server network port of this current window.
180180
size_t get_port() const { return webui_get_port(webui_window); }
181181

182182
// Set a custom web-server network port to be used by WebUI. This can be useful to determine the HTTP
183183
// link of `webui.js` in case you are trying to use WebUI with an external web-server like NGNIX
184184
void set_port(size_t port) const { webui_set_port(webui_window, port); }
185185

186-
// Get an available network port to be used by your app or by WebUI.
187-
size_t get_free_port() { webui_get_free_port(); }
186+
// Get an available usable free network port.
187+
size_t get_free_port() { return webui_get_free_port(); }
188188

189189
// Set window position
190190
void set_position(unsigned int x, unsigned int y) const { webui_set_position(webui_window, x, y); }

0 commit comments

Comments
 (0)