1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6#if defined(_WIN32) || defined(_WIN64)
7# include <windows.h>
8typedef HWND WINDOW_HANDLE;
9#endif
10
11struct MyWindowAdapter;
12
13class AppView
14{
15 MyWindowAdapter *myWindow = nullptr;
16
17public:
18 AppView();
19
20 void attachToWindow(WINDOW_HANDLE winId);
21 void setGeometry(int x, int y, int width, int height);
22};
23

source code of slint/examples/cpp/platform_native/appview.h