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> |
8 | typedef HWND WINDOW_HANDLE; |
9 | #endif |
10 | |
11 | struct MyWindowAdapter; |
12 | |
13 | class AppView |
14 | { |
15 | MyWindowAdapter *myWindow = nullptr; |
16 | |
17 | public: |
18 | AppView(); |
19 | |
20 | void attachToWindow(WINDOW_HANDLE winId); |
21 | void setGeometry(int x, int y, int width, int height); |
22 | }; |
23 |