Flutter Engine
The Flutter Engine
shell
platform
windows
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
Definition:
asset_manager.cc:10
flutter::GetDpiForHWND
UINT GetDpiForHWND(HWND hwnd)
Definition:
dpi_utils.cc:130
flutter::GetDpiForMonitor
UINT GetDpiForMonitor(HMONITOR monitor)
Definition:
dpi_utils.cc:134
UINT
unsigned int UINT
Definition:
windows_types.h:32
Generated on Sun Jun 23 2024 21:55:18 for Flutter Engine by
1.9.4