#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 |
|
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.
13 user32_ = fml::NativeLibrary::Create(
"user32.dll");
15 user32_->ResolveFunction<GetPointerType_*>(
"GetPointerType");
16 enable_non_client_dpi_scaling_ =
17 user32_->ResolveFunction<EnableNonClientDpiScaling_*>(
18 "EnableNonClientDpiScaling");
19 set_window_composition_attribute_ =
20 user32_->ResolveFunction<SetWindowCompositionAttribute_*>(
21 "SetWindowCompositionAttribute");
22 adjust_window_rect_ext_for_dpi_ =
23 user32_->ResolveFunction<AdjustWindowRectExForDpi_*>(
24 "AdjustWindowRectExForDpi");
◆ ~WindowsProcTable()
flutter::WindowsProcTable::~WindowsProcTable |
( |
| ) |
|
|
virtual |
◆ AdjustWindowRectExForDpi()
BOOL flutter::WindowsProcTable::AdjustWindowRectExForDpi |
( |
LPRECT |
lpRect, |
|
|
DWORD |
dwStyle, |
|
|
BOOL |
bMenu, |
|
|
DWORD |
dwExStyle, |
|
|
UINT |
dpi |
|
) |
| const |
|
virtual |
Definition at line 110 of file windows_proc_table.cc.
115 if (!adjust_window_rect_ext_for_dpi_.has_value()) {
119 return adjust_window_rect_ext_for_dpi_.value()(lpRect, dwStyle, bMenu,
◆ DwmExtendFrameIntoClientArea()
HRESULT flutter::WindowsProcTable::DwmExtendFrameIntoClientArea |
( |
HWND |
hwnd, |
|
|
const MARGINS * |
pMarInset |
|
) |
| const |
|
virtual |
◆ DwmFlush()
HRESULT flutter::WindowsProcTable::DwmFlush |
( |
| ) |
const |
|
virtual |
◆ DwmIsCompositionEnabled()
bool flutter::WindowsProcTable::DwmIsCompositionEnabled |
( |
| ) |
const |
|
virtual |
Definition at line 57 of file windows_proc_table.cc.
58 BOOL composition_enabled;
60 return composition_enabled;
virtual bool DwmIsCompositionEnabled() const
◆ 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.
107 return ::DwmSetWindowAttribute(hwnd, dwAttribute, pvAttribute, cbAttribute);
◆ EnableNonClientDpiScaling()
BOOL flutter::WindowsProcTable::EnableNonClientDpiScaling |
( |
HWND |
hwnd | ) |
const |
|
virtual |
Definition at line 79 of file windows_proc_table.cc.
80 if (!enable_non_client_dpi_scaling_.has_value()) {
84 return enable_non_client_dpi_scaling_.value()(hwnd);
◆ GetHighContrastEnabled()
bool flutter::WindowsProcTable::GetHighContrastEnabled |
( |
| ) |
const |
|
virtual |
Definition at line 47 of file windows_proc_table.cc.
48 HIGHCONTRAST high_contrast = {.cbSize =
sizeof(HIGHCONTRAST)};
49 if (!::SystemParametersInfoW(SPI_GETHIGHCONTRAST,
sizeof(HIGHCONTRAST),
54 return high_contrast.dwFlags & HCF_HIGHCONTRASTON;
◆ 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.
33 if (!get_pointer_type_.has_value()) {
37 return get_pointer_type_.value()(pointer_id, pointer_type);
◆ 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.
90 if (!set_window_composition_attribute_.has_value()) {
94 return set_window_composition_attribute_.value()(hwnd, data);
The documentation for this class was generated from the following files: