Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.52 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.52 KB

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

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