#include <host_window.h>
Public Member Functions | |
| virtual | ~HostWindow () |
| HWND | GetWindowHandle () const |
| void | SetContentSize (const WindowSizeRequest &size) |
| void | SetConstraints (const WindowConstraints &constraints) |
| void | SetFullscreen (bool fullscreen, std::optional< FlutterEngineDisplayId > display_id) |
| bool | GetFullscreen () const |
Static Public Member Functions | |
| static std::unique_ptr< HostWindow > | CreateRegularWindow (WindowManager *controller, FlutterWindowsEngine *engine, const WindowSizeRequest &preferred_size, const WindowConstraints &preferred_constraints, LPCWSTR title) |
| static HostWindow * | GetThisFromHandle (HWND hwnd) |
| static ActualWindowSize | GetWindowContentSize (HWND hwnd) |
Definition at line 26 of file host_window.h.
|
virtual |
Definition at line 385 of file host_window.cc.
|
static |
Definition at line 257 of file host_window.cc.
References flutter::FlutterWindowsEngine::CreateView(), flutter::FlutterWindowsEngine::display_manager(), flutter::WindowSizeRequest::has_preferred_view_size, flutter::kRegular, flutter::WindowSizeRequest::preferred_view_height, flutter::WindowSizeRequest::preferred_view_width, flutter::FlutterWindowsEngine::running(), flutter::FlutterWindowsEngine::UpdateAccessibilityFeatures(), flutter::WCharBufferToString(), and flutter::FlutterWindowsEngine::windows_proc_table().
Referenced by flutter::WindowManager::CreateRegularWindow().
| bool flutter::HostWindow::GetFullscreen | ( | ) | const |
Definition at line 748 of file host_window.cc.
Referenced by InternalFlutterWindows_WindowManager_GetFullscreen(), SetConstraints(), SetContentSize(), and SetFullscreen().
|
static |
|
static |
Definition at line 752 of file host_window.cc.
References FlutterDesktopGetDpiForHWND().
Referenced by InternalFlutterWindows_WindowManager_GetWindowContentSize(), SetConstraints(), and SetFullscreen().
| HWND flutter::HostWindow::GetWindowHandle | ( | ) | const |
Definition at line 400 of file host_window.cc.
| void flutter::HostWindow::SetConstraints | ( | const WindowConstraints & | constraints | ) |
Definition at line 561 of file host_window.cc.
References GetFullscreen(), GetWindowContentSize(), and flutter::FlutterWindowsEngine::windows_proc_table().
Referenced by InternalFlutterWindows_WindowManager_SetWindowConstraints().
| void flutter::HostWindow::SetContentSize | ( | const WindowSizeRequest & | size | ) |
Definition at line 519 of file host_window.cc.
References GetFullscreen(), flutter::WindowSizeRequest::has_preferred_view_size, flutter::WindowSizeRequest::preferred_view_height, flutter::WindowSizeRequest::preferred_view_width, flutter::ActualWindowSize::width, and flutter::FlutterWindowsEngine::windows_proc_table().
Referenced by InternalFlutterWindows_WindowManager_SetWindowSize().
| void flutter::HostWindow::SetFullscreen | ( | bool | fullscreen, |
| std::optional< FlutterEngineDisplayId > | display_id | ||
| ) |
Definition at line 602 of file host_window.cc.
References flutter::AreRectsEqual(), flutter::FlutterWindowsEngine::display_manager(), flutter::GetDpiForHWND(), GetFullscreen(), GetWindowContentSize(), flutter::RectHeight(), and flutter::RectWidth().
Referenced by InternalFlutterWindows_WindowManager_SetFullscreen().