Commit Graph

45 Commits

Author SHA1 Message Date
Hassan DRAGA
ef8595ae1c Complete C++ Header 2024-07-11 17:06:37 -04:00
Hassan DRAGA
708d4a16a3 Unify Comments 2024-07-11 10:10:29 -04:00
Hassan DRAGA
af46c34a02 Fix C++ Header 2024-07-09 19:11:51 -04:00
Nathan R
9ed9279a98 Added a function webui_get_port() to retrieve the server port for the session 2024-07-09 14:39:38 -07:00
David Alm
51d82c82e9 tk 2024-07-09 13:54:59 -04:00
David Alm
0346f0ffdc exposing _webui_get_free_port 2024-07-09 12:06:31 -04:00
Hassan DRAGA
aca21d905e Adding some C++ APIs 2024-06-21 15:47:08 -04:00
Turiiya
d8008e3d57 Update version after suggestions 2024-06-05 19:15:29 +02:00
Turiiya
cf9764a071 Use semver compliant version specification 2024-06-05 01:21:59 +02:00
Hassan DRAGA
817cc605be
Merge pull request #326 from SpikeHD/expose_browser
Expose `_webui_find_the_best_browser` as `webui_get_best_browser`
2024-05-31 18:24:29 -04:00
Hassan DRAGA
6fe3549684
Merge pull request #351 from GiuseppeCesarano/main
C++ events are now enum instead of const static int
2024-05-31 18:21:44 -04:00
Hassan DRAGA
7e99ecc7bf WebUI v2.5.0-Beta-1 2024-05-26 20:02:12 -04:00
Giuseppe Cesarano
fc10b42318
C++ events are now enum instead of const static int 2024-04-22 09:48:26 +02:00
SpikeHD
a4168b9b19 feat: expose get_best_browser to C and C++ api 2024-02-13 00:07:53 -08:00
Christoph Wegener
6d99a29e69
fix: too few arguments to webui_set_profile
When following the C++ hello world tutorial, the first example
immediately fails to compile due to an error in hte C++ header file.

```
In file included from main.cpp:1:
webui.hpp: In member function ‘void webui:🪟:set_proxy(std::string_view) const’:
webui.hpp:202:26: error: too few arguments to function ‘void webui_set_profile(size_t, const char*, const char*)’
  202 |         webui_set_profile(webui_window, proxy_server.data());
      |         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from webui.hpp:21:
webui.h:422:19: note: declared here
  422 | WEBUI_EXPORT void webui_set_profile(size_t window, const char* name, const char* path);
```
2024-01-09 14:50:45 +11:00
123
5755fead94 remove chromium_options --no-proxy-server, export webui_set_proxy api 2024-01-05 09:16:11 +08:00
rtanabe999
1a495cf2d5
Fix typos 2023-12-22 11:40:42 +09:00
Hassan DRAGA
152ef446c0 Up version to v2.4.2 2023-11-29 18:25:08 -05:00
Hassan DRAGA
8084a02f87 Up version number to v2.4.1 2023-11-16 16:49:21 -05:00
Hassan DRAGA
9a5036941d v2.4.0 Release
[Full WebUI v2.4.0 APIs](https://webui.me/docs/2.4.0/#/)
2023-10-29 17:03:25 -04:00
Hassan DRAGA
5081b5a333 Update C/C++ headers 2023-10-29 15:51:49 -04:00
Turiiya
50cc7619ba Format C code 2023-10-08 03:48:25 +02:00
Hassan DRAGA
022391380f Update C++ wrapper 2023-10-06 17:25:47 -04:00
Turiiya
32cba040b2 Add more webui functions to C++ wrapper 2023-10-01 11:53:33 +02:00
Giuseppe Cesarano
9200ac3b65
Updated C++ wrapper 2023-09-22 10:51:52 +02:00
Albert Shown
661ab75dec C++ set_size and set_position
* C++ `set_size()`
* C++ `set_position()`
2023-08-28 18:53:32 -04:00
Hassan DRAGA
ece2b15456 Update C++ header 2023-08-22 14:36:25 -04:00
Hassan DRAGA
52885648d2 Up to v2.4.0
* Up all to v2.4.0
2023-08-19 17:49:08 -04:00
Giuseppe Cesarano
3cf9191509
C++ header reorganization completed.
* Event struct is now a class with it's methods
* All examples updated to use the new API
2023-05-27 22:33:36 +02:00
Giuseppe Cesarano
9a683acdef
Fix C++ examples 2023-05-25 21:45:42 +02:00
Hassan DRAGA
8d3924833c Minor coding style update 2023-05-24 19:48:28 -04:00
Giuseppe Cesarano
5564d32c1d
Removed const window& in event 2023-05-25 00:46:33 +02:00
Giuseppe Cesarano
be7132aa01
C++ header restructured. 2023-05-24 13:27:22 +02:00
Giuseppe Cesarano
f18bf530af
Adherence to noninvasive C++ best practices
* nullptr instead of NULL
* const-ed member function where possible
* Removed empty window destructor
* Using member initializer in constructor
* Using std::string_view instead of const std::string&
* Using inline on free functions
2023-05-24 00:06:37 +02:00
Hassan DRAGA
cdf67b17ac C++ Improvement
* Set C++11 as minimal standard
* Fix C++ Makefile in macOS
* Update the C++ WebUI header to use references (https://github.com/webui-dev/webui/issues/103)
* Update `webui_return_string()` argument from `char*` to `const char*`
2023-05-21 12:20:54 -04:00
Hassan DRAGA
7db9826676 Updating the links
* Updating the links to the new organization
2023-05-13 10:47:42 -04:00
Hassan DRAGA
bc5e5b2a56 Public get_new_window_id
# New
* `webui_get_new_window_id` is now public
* Updating C++ examples
2023-05-09 07:48:27 -04:00
Hassan DRAGA
1f98ce6d10 Update C++ Documentations
* Updating the C++ documentations
2023-05-06 13:02:34 -04:00
Albert Shown
e116261130 C++ Wrapper Update
* Now the C++ wrapper has its own class instead of direct C calls.
2023-05-05 17:41:20 -04:00
Hassan DRAGA
ca7b4f50ed WebUI v2.3.0
# Users/Wrappers Changes
* The window object changed from `void*` (pointer) to a simple `size_t` (integer)

# New Core Features And Changes
* License changed from `GPLv2` to 'MIT'. Thanks to @xD0135
* The core APIs is completely changed from `Mongoose` to `civetweb`. Thanks to @xD0135
* Kiosk mode support. Thanks to @malisipi
* UI responses resolving using IDs instead of first received (WebUI-JS-Bridge)
* Fix C++ Linux Clang build issue (C++ Linux GCC still broken)
2023-05-04 21:41:03 -04:00
Hassan DRAGA
41b5ab3bd7 Updating the PR
* The original code works. I'm just re-styling it to make the WebUI code look the same.
2023-05-03 20:18:56 -04:00
Hassan DRAGA
543a0e9ced
Update webui.hpp 2023-05-03 19:57:13 -04:00
Mehmet Ali Şipi
77e99e24d0 Add webui_set_kiosk function to webui.hpp header 2023-05-03 17:51:21 +03:00
Hassan DRAGA
866796c8d2 Event Struct Improvement
* In webui_event_t `type` changed to `event_type`. This is because some wrapper's language does not support using _type_ as a variable name.
* In webui_event_t `char* response` changed to `unsigned int event_number`.
* Now `webui_interface_set_response()` use a simple `unsigned int event_number` instead of `char* response`.
2023-04-29 13:46:11 -04:00
Albert Shown
579d9e5b23 Support C++ Methods
* Adding example of how to use WebUI with C++ methods
2023-04-26 13:08:57 -04:00