slint/examples/cpp/platform_native
2023-11-02 11:04:40 +01:00
..
appview.cpp
appview.h
appwindow.slint cleanup examples according to upcoming code guidelines (#3809) 2023-11-02 11:04:40 +01:00
CMakeLists.txt
main.cpp
README.md xtask: Fix up license headers 2023-08-17 08:55:28 +02:00
windowadapter_win.h C++: Api changes in the WindowAdapter 2023-08-30 14:59:41 +02:00

This shows how one can use the Slint C++ platform API to integrate into any Windows application

  • main.cpp is basically a shell of an application written using the native WIN32 api.
  • appview.h is an interface that is used by the application to show a Slint Window. the implementation of this interface could even be in a plugin.
  • appview.cpp is the implementation of this interface and instantiate the UI made with Slint
  • windowadapter_win.h contains the glue code used to implement a Slint platform using native WIN32 API