#include <windows_proc_table.h>
|
| | WindowsProcTable () |
| |
| virtual | ~WindowsProcTable () |
| |
| virtual BOOL | GetPointerType (UINT32 pointer_id, POINTER_INPUT_TYPE *pointer_type) const |
| |
| virtual LRESULT | GetThreadPreferredUILanguages (DWORD flags, PULONG count, PZZWSTR languages, PULONG length) const |
| |
| virtual bool | GetHighContrastEnabled () const |
| |
| virtual bool | DwmIsCompositionEnabled () const |
| |
| virtual HRESULT | DwmFlush () const |
| |
| virtual HCURSOR | LoadCursor (HINSTANCE instance, LPCWSTR cursor_name) const |
| |
| virtual HCURSOR | SetCursor (HCURSOR cursor) const |
| |
| virtual BOOL | EnableNonClientDpiScaling (HWND hwnd) const |
| |
| virtual BOOL | SetWindowCompositionAttribute (HWND hwnd, WINDOWCOMPOSITIONATTRIBDATA *data) const |
| |
| virtual HRESULT | DwmExtendFrameIntoClientArea (HWND hwnd, const MARGINS *pMarInset) const |
| |
| virtual HRESULT | DwmSetWindowAttribute (HWND hwnd, DWORD dwAttribute, LPCVOID pvAttribute, DWORD cbAttribute) const |
| |
| virtual BOOL | AdjustWindowRectExForDpi (LPRECT lpRect, DWORD dwStyle, BOOL bMenu, DWORD dwExStyle, UINT dpi) const |
| |
| virtual int | GetSystemMetrics (int nIndex) const |
| |
| virtual BOOL | EnumDisplayDevices (LPCWSTR lpDevice, DWORD iDevNum, PDISPLAY_DEVICE lpDisplayDevice, DWORD dwFlags) const |
| |
| virtual BOOL | EnumDisplaySettings (LPCWSTR lpszDeviceName, DWORD iModeNum, DEVMODEW *lpDevMode) const |
| |
| virtual BOOL | GetMonitorInfo (HMONITOR hMonitor, LPMONITORINFO lpmi) const |
| |
| virtual BOOL | EnumDisplayMonitors (HDC hdc, LPCRECT lprcClip, MONITORENUMPROC lpfnEnum, LPARAM dwData) const |
| |
Definition at line 18 of file windows_proc_table.h.
◆ WINDOWCOMPOSITIONATTRIB
◆ WindowsProcTable()
| flutter::WindowsProcTable::WindowsProcTable |
( |
| ) |
|
Definition at line 12 of file windows_proc_table.cc.
12 {
14 get_pointer_type_ =
16 enable_non_client_dpi_scaling_ =
18 "EnableNonClientDpiScaling");
19 set_window_composition_attribute_ =
21 "SetWindowCompositionAttribute");
22 adjust_window_rect_ext_for_dpi_ =
24 "AdjustWindowRectExForDpi");
25}
const std::optional< T > ResolveFunction(const char *symbol)
static fml::RefPtr< NativeLibrary > Create(const char *path)
References fml::NativeLibrary::Create(), and fml::NativeLibrary::ResolveFunction().
◆ ~WindowsProcTable()
| flutter::WindowsProcTable::~WindowsProcTable |
( |
| ) |
|
|
virtual |
◆ AdjustWindowRectExForDpi()
| BOOL flutter::WindowsProcTable::AdjustWindowRectExForDpi |
( |
LPRECT |
lpRect, |
|
|
DWORD |
dwStyle, |
|
|
BOOL |
bMenu, |
|
|
DWORD |
dwExStyle, |
|
|
UINT |
dpi |
|
) |
| const |
|
virtual |
◆ DwmExtendFrameIntoClientArea()
| HRESULT flutter::WindowsProcTable::DwmExtendFrameIntoClientArea |
( |
HWND |
hwnd, |
|
|
const MARGINS * |
pMarInset |
|
) |
| const |
|
virtual |
Definition at line 97 of file windows_proc_table.cc.
99 {
100 return ::DwmExtendFrameIntoClientArea(hwnd, pMarInset);
101}
◆ DwmFlush()
| HRESULT flutter::WindowsProcTable::DwmFlush |
( |
| ) |
const |
|
virtual |
◆ DwmIsCompositionEnabled()
| bool flutter::WindowsProcTable::DwmIsCompositionEnabled |
( |
| ) |
const |
|
virtual |
◆ DwmSetWindowAttribute()
| HRESULT flutter::WindowsProcTable::DwmSetWindowAttribute |
( |
HWND |
hwnd, |
|
|
DWORD |
dwAttribute, |
|
|
LPCVOID |
pvAttribute, |
|
|
DWORD |
cbAttribute |
|
) |
| const |
|
virtual |
Definition at line 103 of file windows_proc_table.cc.
106 {
107 return ::DwmSetWindowAttribute(hwnd, dwAttribute, pvAttribute, cbAttribute);
108}
◆ EnableNonClientDpiScaling()
| BOOL flutter::WindowsProcTable::EnableNonClientDpiScaling |
( |
HWND |
hwnd | ) |
const |
|
virtual |
◆ EnumDisplayDevices()
| BOOL flutter::WindowsProcTable::EnumDisplayDevices |
( |
LPCWSTR |
lpDevice, |
|
|
DWORD |
iDevNum, |
|
|
PDISPLAY_DEVICE |
lpDisplayDevice, |
|
|
DWORD |
dwFlags |
|
) |
| const |
|
virtual |
Definition at line 127 of file windows_proc_table.cc.
130 {
131 return ::EnumDisplayDevices(lpDevice, iDevNum, lpDisplayDevice, dwFlags);
132}
◆ EnumDisplayMonitors()
| BOOL flutter::WindowsProcTable::EnumDisplayMonitors |
( |
HDC |
hdc, |
|
|
LPCRECT |
lprcClip, |
|
|
MONITORENUMPROC |
lpfnEnum, |
|
|
LPARAM |
dwData |
|
) |
| const |
|
virtual |
Definition at line 145 of file windows_proc_table.cc.
148 {
149 return ::EnumDisplayMonitors(hdc, lprcClip, lpfnEnum, dwData);
150}
◆ EnumDisplaySettings()
| BOOL flutter::WindowsProcTable::EnumDisplaySettings |
( |
LPCWSTR |
lpszDeviceName, |
|
|
DWORD |
iModeNum, |
|
|
DEVMODEW * |
lpDevMode |
|
) |
| const |
|
virtual |
Definition at line 134 of file windows_proc_table.cc.
136 {
137 return ::EnumDisplaySettingsW(lpszDeviceName, iModeNum, lpDevMode);
138}
◆ GetHighContrastEnabled()
| bool flutter::WindowsProcTable::GetHighContrastEnabled |
( |
| ) |
const |
|
virtual |
Definition at line 47 of file windows_proc_table.cc.
47 {
48 HIGHCONTRAST high_contrast = {.cbSize = sizeof(HIGHCONTRAST)};
49 if (!::SystemParametersInfoW(SPI_GETHIGHCONTRAST, sizeof(HIGHCONTRAST),
50 &high_contrast, 0)) {
51 return false;
52 }
53
54 return high_contrast.dwFlags & HCF_HIGHCONTRASTON;
55}
◆ GetMonitorInfo()
| BOOL flutter::WindowsProcTable::GetMonitorInfo |
( |
HMONITOR |
hMonitor, |
|
|
LPMONITORINFO |
lpmi |
|
) |
| const |
|
virtual |
◆ GetPointerType()
| BOOL flutter::WindowsProcTable::GetPointerType |
( |
UINT32 |
pointer_id, |
|
|
POINTER_INPUT_TYPE * |
pointer_type |
|
) |
| const |
|
virtual |
Definition at line 31 of file windows_proc_table.cc.
32 {
33 if (!get_pointer_type_.has_value()) {
34 return FALSE;
35 }
36
37 return get_pointer_type_.value()(pointer_id, pointer_type);
38}
◆ GetSystemMetrics()
| int flutter::WindowsProcTable::GetSystemMetrics |
( |
int |
nIndex | ) |
const |
|
virtual |
◆ GetThreadPreferredUILanguages()
| LRESULT flutter::WindowsProcTable::GetThreadPreferredUILanguages |
( |
DWORD |
flags, |
|
|
PULONG |
count, |
|
|
PZZWSTR |
languages, |
|
|
PULONG |
length |
|
) |
| const |
|
virtual |
◆ LoadCursor()
| HCURSOR flutter::WindowsProcTable::LoadCursor |
( |
HINSTANCE |
instance, |
|
|
LPCWSTR |
cursor_name |
|
) |
| const |
|
virtual |
◆ SetCursor()
| HCURSOR flutter::WindowsProcTable::SetCursor |
( |
HCURSOR |
cursor | ) |
const |
|
virtual |
◆ SetWindowCompositionAttribute()
Definition at line 87 of file windows_proc_table.cc.
89 {
90 if (!set_window_composition_attribute_.has_value()) {
91 return FALSE;
92 }
93
94 return set_window_composition_attribute_.value()(hwnd,
data);
95}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
References flutter::data.
The documentation for this class was generated from the following files: