| Flutter Windows Embedder |

dpi_utils.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "Windows.h"
6
7 #ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_DPI_UTILS_H_
8 #define FLUTTER_SHELL_PLATFORM_WINDOWS_DPI_UTILS_H_
9
10 namespace flutter {
11
12 /// Returns the DPI for |hwnd|. Supports all DPI awareness modes, and is
13 /// backward compatible down to Windows Vista. If |hwnd| is nullptr, returns the
14 /// DPI for the primary monitor. If Per-Monitor DPI awareness is not available,
15 /// returns the system's DPI.
16 UINT GetDpiForHWND(HWND hwnd);
17
18 /// Returns the DPI of a given monitor. Defaults to 96 if the API is not
19 /// available.
20 UINT GetDpiForMonitor(HMONITOR monitor);
21
22 } // namespace flutter
23
24 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_DPI_UTILS_H_
flutter::GetDpiForMonitor
UINT GetDpiForMonitor(HMONITOR monitor)
Definition: dpi_utils.cc:134
flutter::GetDpiForHWND
UINT GetDpiForHWND(HWND hwnd)
Definition: dpi_utils.cc:130
flutter
Definition: accessibility_bridge_windows.cc:11