slint/examples/cpp/platform_native/appview.h
Olivier Goffart a34074db11 Move the C++ specific example to the examples/cpp directory
The platform ones are not experimental so move out of tests
2023-07-31 12:58:38 +02:00

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);
};