An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

Reflection -UI

![](preview.jpg)

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 implementation

How 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 dependency

WebView2


In the include folder place WebView2.h & WebView2EnvironmentOptions.h.

In the lib folder place WebView2LoaderStatic.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