refactor Windows classes to separate EGL/WGL/Backing Window

This commit is contained in:
Nick Fisher
2023-10-25 13:11:58 +11:00
parent c4245b0dd3
commit 8cea106b30
18 changed files with 972 additions and 996 deletions

20
windows/utils.h Normal file
View File

@@ -0,0 +1,20 @@
// This file is a part of flutter_native_view
// (https://github.com/alexmercerind/flutter_native_view).
//
// Copyright (c) 2022, Hitesh Kumar Saini <saini123hitesh@gmail.com>.
// All rights reserved.
// Use of this source code is governed by MIT license that can be found in the
// LICENSE file.
#include <dwmapi.h>
#include <cstdint>
namespace flutternativeview {
RTL_OSVERSIONINFOW GetWindowsVersion();
void SetWindowComposition(HWND window, int32_t accent_state,
int32_t gradient_color);
} // namespace flutternativeview