mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-15 00:55:24 +00:00
22 lines
409 B
C++
22 lines
409 B
C++
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#pragma once
|
|
|
|
#if defined(_WIN32) || defined(_WIN64)
|
|
# include <windows.h>
|
|
typedef HWND WINDOW_HANDLE;
|
|
#endif
|
|
|
|
struct MyWindowAdapter;
|
|
|
|
class AppView
|
|
{
|
|
MyWindowAdapter *myWindow = nullptr;
|
|
|
|
public:
|
|
AppView();
|
|
|
|
void attachToWindow(WINDOW_HANDLE winId);
|
|
void setGeometry(int x, int y, int width, int height);
|
|
};
|