slint/api/cpp/tests/manual/platform_native
2023-06-15 11:20:50 +02:00
..
appview.cpp Add royalty free license to files except examples and docs (#2888) 2023-06-15 11:20:50 +02:00
appview.h Add royalty free license to files except examples and docs (#2888) 2023-06-15 11:20:50 +02:00
appwindow.slint Add royalty free license to files except examples and docs (#2888) 2023-06-15 11:20:50 +02:00
CMakeLists.txt C++ test with an example of using the Windows API directly to create a slint platform 2023-05-05 19:53:37 +02:00
main.cpp Add royalty free license to files except examples and docs (#2888) 2023-06-15 11:20:50 +02:00
README.md C++ test with an example of using the Windows API directly to create a slint platform 2023-05-05 19:53:37 +02:00
windowadapter_win.h Add royalty free license to files except examples and docs (#2888) 2023-06-15 11:20:50 +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