mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00
22 lines
452 B
C++
22 lines
452 B
C++
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
#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);
|
|
};
|