#include <window_proc_delegate_manager.h>
◆ WindowProcDelegateManager()
flutter::WindowProcDelegateManager::WindowProcDelegateManager |
( |
| ) |
|
|
explicitdefault |
◆ ~WindowProcDelegateManager()
flutter::WindowProcDelegateManager::~WindowProcDelegateManager |
( |
| ) |
|
|
default |
◆ OnTopLevelWindowProc()
std::optional< LRESULT > flutter::WindowProcDelegateManager::OnTopLevelWindowProc |
( |
HWND |
hwnd, |
|
|
UINT |
message, |
|
|
WPARAM |
wparam, |
|
|
LPARAM |
lparam |
|
) |
| const |
Definition at line 37 of file window_proc_delegate_manager.cc.
41 {
42 std::optional<LRESULT>
result;
43 for (const auto& delegate : delegates_) {
45
46 if (delegate.callback(hwnd,
message, wparam, lparam, delegate.user_data,
47 &handler_result)) {
49 break;
50 }
51 }
53}
◆ RegisterTopLevelWindowProcDelegate()
Definition at line 16 of file window_proc_delegate_manager.cc.
18 {
20
24 });
25}
void UnregisterTopLevelWindowProcDelegate(FlutterDesktopWindowProcCallback callback)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
std::function< std::optional< LRESULT >(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)> WindowProcDelegate
◆ UnregisterTopLevelWindowProcDelegate()
Definition at line 27 of file window_proc_delegate_manager.cc.
28 {
29 delegates_.erase(
30 std::remove_if(delegates_.begin(), delegates_.end(),
32 return delegate.callback == callback;
33 }),
34 delegates_.end());
35}
The documentation for this class was generated from the following files: