https://github.com/cactoes/reflection
Reflection -UI is a c++20 desktop application library.
https://github.com/cactoes/reflection
cmake cpp desktop-apps library windows
Last synced: 17 days ago
JSON representation
Reflection -UI is a c++20 desktop application library.
- Host: GitHub
- URL: https://github.com/cactoes/reflection
- Owner: cactoes
- Created: 2024-10-27T21:11:43.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-11-21T15:50:26.000Z (5 months ago)
- Last Synced: 2025-02-14T11:53:13.592Z (2 months ago)
- Topics: cmake, cpp, desktop-apps, library, windows
- Language: C++
- Homepage:
- Size: 185 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reflection -UI

Reflection -UI is a c++20 desktop application library. It offers an c++ api to add visual elements to a window.
Internally it uses the WebView2 browser to renderer UI components.
> [!NOTE]
> This project is currently only supported on windows. WebView2 is not cross-platform.
> Feel free to open a pr with a different browser framework implementationHow to compile from source
The project will run some typescript code which and BUN as its interpreter.
To keep this repository small the dependencies have not been shipped but will be explained here:JSON
For JSON parsing nlohmann json.
place the contents of the single_include in the include folder of the json dependencyWebView2
In the include folder placeWebView2.h
&WebView2EnvironmentOptions.h
.
In the lib folder placeWebView2LoaderStatic.lib
wil
Copy the wil folder direcly into the include folder of the wil dependency.How to compile when included
Just link the .lib of either the debug or release depending on your target and link the header files that come included, no extra libraries needed.CMake using MSVC
```powershell
PS> mkdir build
PS> cd build
PS> cmake .. -G "Visual Studio 17 2022" -A x64
PS> cmake --build . --config Release
```Documentation & Examples
For an example program please look here