Flutter Engine
The Flutter Engine
|
#include <windows_lifecycle_manager.h>
Public Member Functions | |
WindowsLifecycleManager (FlutterWindowsEngine *engine) | |
virtual | ~WindowsLifecycleManager () |
virtual void | Quit (std::optional< HWND > window, std::optional< WPARAM > wparam, std::optional< LPARAM > lparam, UINT exit_code) |
bool | WindowProc (HWND hwnd, UINT msg, WPARAM w, LPARAM l, LRESULT *result) |
virtual void | BeginProcessingLifecycle () |
virtual void | BeginProcessingExit () |
virtual void | SetLifecycleState (AppLifecycleState state) |
virtual void | OnWindowStateEvent (HWND hwnd, WindowStateEvent event) |
AppLifecycleState | GetLifecycleState () |
std::optional< LRESULT > | ExternalWindowMessage (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) |
Protected Member Functions | |
virtual bool | IsLastWindowOfProcess () |
virtual void | DispatchMessage (HWND window, UINT msg, WPARAM wparam, LPARAM lparam) |
A manager for lifecycle events of the top-level windows.
WndProc is called for window messages of the top-level Flutter window. ExternalWindowMessage is called for non-flutter top-level window messages. OnWindowStateEvent is called when the visibility or focus state of a window is changed, including the FlutterView window.
Definition at line 37 of file windows_lifecycle_manager.h.
flutter::WindowsLifecycleManager::WindowsLifecycleManager | ( | FlutterWindowsEngine * | engine | ) |
Definition at line 16 of file windows_lifecycle_manager.cc.
|
virtual |
Definition at line 19 of file windows_lifecycle_manager.cc.
|
virtual |
Definition at line 191 of file windows_lifecycle_manager.cc.
|
virtual |
Reimplemented in flutter::testing::MockWindowsLifecycleManager.
Definition at line 187 of file windows_lifecycle_manager.cc.
|
protectedvirtual |
Definition at line 34 of file windows_lifecycle_manager.cc.
std::optional< LRESULT > flutter::WindowsLifecycleManager::ExternalWindowMessage | ( | HWND | hwnd, |
UINT | message, | ||
WPARAM | wparam, | ||
LPARAM | lparam | ||
) |
Definition at line 256 of file windows_lifecycle_manager.cc.
|
inline |
Definition at line 75 of file windows_lifecycle_manager.h.
|
protectedvirtual |
Definition at line 164 of file windows_lifecycle_manager.cc.
|
virtual |
Definition at line 208 of file windows_lifecycle_manager.cc.
|
virtual |
Definition at line 21 of file windows_lifecycle_manager.cc.
|
virtual |
Definition at line 195 of file windows_lifecycle_manager.cc.
bool flutter::WindowsLifecycleManager::WindowProc | ( | HWND | hwnd, |
UINT | msg, | ||
WPARAM | w, | ||
LPARAM | l, | ||
LRESULT * | result | ||
) |
Definition at line 65 of file windows_lifecycle_manager.cc.