slint/api/cpp/tests/manual/platform_native/appview.h
2023-06-16 10:55:08 +02:00

22 lines
486 B
C++

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 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);
};