16 enable_non_client_dpi_scaling_ =
18 "EnableNonClientDpiScaling");
19 set_window_composition_attribute_ =
21 "SetWindowCompositionAttribute");
22 adjust_window_rect_ext_for_dpi_ =
24 "AdjustWindowRectExForDpi");
32 POINTER_INPUT_TYPE* pointer_type)
const {
33 if (!get_pointer_type_.has_value()) {
37 return get_pointer_type_.value()(pointer_id, pointer_type);
44 return ::GetThreadPreferredUILanguages(flags, count, languages,
length);
48 HIGHCONTRAST high_contrast = {.cbSize =
sizeof(HIGHCONTRAST)};
49 if (!::SystemParametersInfoW(SPI_GETHIGHCONTRAST,
sizeof(HIGHCONTRAST),
54 return high_contrast.dwFlags & HCF_HIGHCONTRASTON;
58 BOOL composition_enabled;
60 return composition_enabled;
71 LPCWSTR cursor_name)
const {
72 return ::LoadCursorW(
instance, cursor_name);
76 return ::SetCursor(cursor);
80 if (!enable_non_client_dpi_scaling_.has_value()) {
84 return enable_non_client_dpi_scaling_.value()(hwnd);
90 if (!set_window_composition_attribute_.has_value()) {
94 return set_window_composition_attribute_.value()(hwnd,
data);
99 const MARGINS* pMarInset)
const {
100 return ::DwmExtendFrameIntoClientArea(hwnd, pMarInset);
106 DWORD cbAttribute)
const {
107 return ::DwmSetWindowAttribute(hwnd, dwAttribute, pvAttribute, cbAttribute);
115 if (!adjust_window_rect_ext_for_dpi_.has_value()) {
119 return adjust_window_rect_ext_for_dpi_.value()(lpRect, dwStyle, bMenu,
124 return ::GetSystemMetrics(nIndex);
129 PDISPLAY_DEVICE lpDisplayDevice,
130 DWORD dwFlags)
const {
131 return ::EnumDisplayDevices(lpDevice, iDevNum, lpDisplayDevice, dwFlags);
136 DEVMODEW* lpDevMode)
const {
137 return ::EnumDisplaySettingsW(lpszDeviceName, iModeNum, lpDevMode);
141 LPMONITORINFO lpmi)
const {
142 return ::GetMonitorInfoW(hMonitor, lpmi);
147 MONITORENUMPROC lpfnEnum,
149 return ::EnumDisplayMonitors(hdc, lprcClip, lpfnEnum, dwData);
virtual HRESULT DwmFlush() const
virtual BOOL GetPointerType(UINT32 pointer_id, POINTER_INPUT_TYPE *pointer_type) const
virtual HCURSOR LoadCursor(HINSTANCE instance, LPCWSTR cursor_name) const
virtual int GetSystemMetrics(int nIndex) const
virtual HCURSOR SetCursor(HCURSOR cursor) const
virtual bool GetHighContrastEnabled() const
virtual ~WindowsProcTable()
virtual BOOL EnumDisplayDevices(LPCWSTR lpDevice, DWORD iDevNum, PDISPLAY_DEVICE lpDisplayDevice, DWORD dwFlags) const
virtual BOOL AdjustWindowRectExForDpi(LPRECT lpRect, DWORD dwStyle, BOOL bMenu, DWORD dwExStyle, UINT dpi) const
virtual BOOL EnableNonClientDpiScaling(HWND hwnd) const
virtual HRESULT DwmExtendFrameIntoClientArea(HWND hwnd, const MARGINS *pMarInset) const
virtual bool DwmIsCompositionEnabled() const
virtual BOOL EnumDisplaySettings(LPCWSTR lpszDeviceName, DWORD iModeNum, DEVMODEW *lpDevMode) const
virtual HRESULT DwmSetWindowAttribute(HWND hwnd, DWORD dwAttribute, LPCVOID pvAttribute, DWORD cbAttribute) const
virtual BOOL GetMonitorInfo(HMONITOR hMonitor, LPMONITORINFO lpmi) const
virtual BOOL EnumDisplayMonitors(HDC hdc, LPCRECT lprcClip, MONITORENUMPROC lpfnEnum, LPARAM dwData) const
virtual LRESULT GetThreadPreferredUILanguages(DWORD flags, PULONG count, PZZWSTR languages, PULONG length) const
virtual BOOL SetWindowCompositionAttribute(HWND hwnd, WINDOWCOMPOSITIONATTRIBDATA *data) const
const std::optional< T > ResolveFunction(const char *symbol)
static fml::RefPtr< NativeLibrary > Create(const char *path)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data