#include <window_win32.h>
Public Member Functions | |
WindowWin32 () | |
WindowWin32 (std::unique_ptr< TextInputManagerWin32 > text_input_manager) | |
virtual | ~WindowWin32 () |
void | InitializeChild (const char *title, unsigned int width, unsigned int height) |
HWND | GetWindowHandle () |
virtual BOOL | Win32PeekMessage (LPMSG lpMsg, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg) override |
virtual uint32_t | Win32MapVkToChar (uint32_t virtual_key) override |
virtual UINT | Win32DispatchMessage (UINT Msg, WPARAM wParam, LPARAM lParam) override |
![]() | |
virtual | ~WindowDelegate ()=default |
virtual void | OnText (const std::u16string &text)=0 |
virtual void | OnKey (int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback)=0 |
Protected Member Functions | |
std::wstring | NarrowToWide (const char *source) |
WNDCLASS | RegisterWindowClass (std::wstring &title) |
LRESULT | HandleMessage (UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept |
LRESULT | HandleDpiChange (HWND hWnd, WPARAM wParam, LPARAM lParam, bool top_level) |
virtual void | OnDpiScale (UINT dpi)=0 |
virtual void | OnResize (UINT width, UINT height)=0 |
virtual void | OnPointerMove (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id)=0 |
virtual void | OnPointerDown (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button)=0 |
virtual void | OnPointerUp (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button)=0 |
virtual void | OnPointerLeave (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id)=0 |
virtual void | OnSetCursor ()=0 |
LRESULT | OnGetObject (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnComposeBegin ()=0 |
virtual void | OnComposeCommit ()=0 |
virtual void | OnComposeEnd ()=0 |
virtual void | OnComposeChange (const std::u16string &text, int cursor_pos)=0 |
virtual void | OnImeSetContext (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnImeStartComposition (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnImeComposition (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnImeEndComposition (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | OnImeRequest (UINT const message, WPARAM const wparam, LPARAM const lparam) |
virtual void | AbortImeComposing () |
virtual void | UpdateCursorRect (const Rect &rect) |
virtual void | OnUpdateSemanticsEnabled (bool enabled)=0 |
virtual void | OnScroll (double delta_x, double delta_y, FlutterPointerDeviceKind device_kind, int32_t device_id)=0 |
UINT | GetCurrentDPI () |
UINT | GetCurrentWidth () |
UINT | GetCurrentHeight () |
virtual LRESULT | Win32DefWindowProc (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) |
virtual gfx::NativeViewAccessible | GetNativeViewAccessible ()=0 |
Static Protected Member Functions | |
static LRESULT CALLBACK | WndProc (HWND const window, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept |
Protected Attributes | |
std::unique_ptr< DirectManipulationOwner > | direct_manipulation_owner_ |
Additional Inherited Members | |
![]() | |
using | KeyEventCallback = std::function< void(bool)> |
Definition at line 28 of file window_win32.h.
flutter::WindowWin32::WindowWin32 | ( | ) |
Definition at line 54 of file window_win32.cc.
flutter::WindowWin32::WindowWin32 | ( | std::unique_ptr< TextInputManagerWin32 > | text_input_manager | ) |
|
virtual |
Definition at line 70 of file window_win32.cc.
|
protectedvirtual |
Definition at line 275 of file window_win32.cc.
Referenced by flutter::FlutterWindowWin32::OnResetImeComposing().
|
protected |
Definition at line 543 of file window_win32.cc.
Referenced by flutter::testing::MockWin32Window::GetDpi(), and flutter::FlutterWindowWin32::GetDpiScale().
|
protected |
Definition at line 551 of file window_win32.cc.
Referenced by flutter::FlutterWindowWin32::GetPhysicalWindowBounds().
|
protected |
Definition at line 547 of file window_win32.cc.
Referenced by flutter::FlutterWindowWin32::GetPhysicalWindowBounds().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by OnGetObject().
HWND flutter::WindowWin32::GetWindowHandle | ( | ) |
Definition at line 555 of file window_win32.cc.
References direct_manipulation_owner_, height, OnResize(), width, and window.
Referenced by flutter::DirectManipulationOwner::Destroy(), flutter::FlutterWindowWin32::GetPlatformWindow(), flutter::FlutterWindowWin32::GetPrimaryPointerLocation(), flutter::FlutterWindowWin32::GetRenderTarget(), flutter::DirectManipulationOwner::Init(), flutter::FlutterWindowWin32::IsVisible(), and flutter::FlutterWindowWin32::OnScroll().
|
protected |
|
protectednoexcept |
Definition at line 308 of file window_win32.cc.
References direct_manipulation_owner_, flutter::GetDpiForHWND(), flutter::SequentialIdGenerator::GetGeneratedId(), height, kFlutterPointerDeviceKindMouse, kFlutterPointerDeviceKindTouch, message, OnDpiScale(), OnGetObject(), OnImeComposition(), OnImeEndComposition(), OnImeRequest(), OnImeSetContext(), OnImeStartComposition(), OnPointerDown(), OnPointerLeave(), OnPointerMove(), OnPointerUp(), OnScroll(), OnSetCursor(), flutter::SequentialIdGenerator::ReleaseNumber(), TRUE, width, and Win32DefWindowProc().
Referenced by flutter::testing::MockWin32Window::InjectWindowMessage().
void flutter::WindowWin32::InitializeChild | ( | const char * | title, |
unsigned int | width, | ||
unsigned int | height | ||
) |
Definition at line 74 of file window_win32.cc.
References direct_manipulation_owner_, error, FALSE, GetLastError(), height, message, NarrowToWide(), RegisterWindowClass(), result, flutter::size, and width.
Referenced by flutter::FlutterWindowWin32::FlutterWindowWin32().
|
protected |
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by OnImeStartComposition().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by OnImeComposition().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by OnImeComposition().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by OnImeEndComposition().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by HandleMessage().
|
protected |
Definition at line 173 of file window_win32.cc.
References GetNativeViewAccessible(), and OnUpdateSemanticsEnabled().
Referenced by HandleMessage().
|
protectedvirtual |
Definition at line 225 of file window_win32.cc.
References OnComposeChange(), OnComposeCommit(), and text.
Referenced by flutter::testing::MockWin32Window::CallOnImeComposition(), and HandleMessage().
|
protectedvirtual |
Definition at line 260 of file window_win32.cc.
References OnComposeEnd().
Referenced by HandleMessage().
|
protectedvirtual |
Definition at line 267 of file window_win32.cc.
Referenced by HandleMessage().
|
protectedvirtual |
Definition at line 210 of file window_win32.cc.
Referenced by HandleMessage().
|
protectedvirtual |
Definition at line 218 of file window_win32.cc.
References OnComposeBegin().
Referenced by HandleMessage().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by HandleMessage().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by HandleMessage().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by HandleMessage().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by HandleMessage().
Implemented in flutter::FlutterWindowWin32.
Referenced by GetWindowHandle().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by HandleMessage().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by HandleMessage().
|
protectedpure virtual |
Implemented in flutter::FlutterWindowWin32.
Referenced by OnGetObject().
|
protected |
Definition at line 124 of file window_win32.cc.
References WndProc().
Referenced by InitializeChild().
|
protectedvirtual |
Definition at line 279 of file window_win32.cc.
Referenced by flutter::FlutterWindowWin32::OnCursorRectUpdated().
|
protectedvirtual |
Reimplemented in flutter::testing::MockWin32Window.
Definition at line 583 of file window_win32.cc.
Referenced by HandleMessage().
|
overridevirtual |
Implements flutter::KeyboardManagerWin32::WindowDelegate.
Definition at line 602 of file window_win32.cc.
References SendMessage.
|
overridevirtual |
Implements flutter::KeyboardManagerWin32::WindowDelegate.
Definition at line 598 of file window_win32.cc.
|
overridevirtual |
Implements flutter::KeyboardManagerWin32::WindowDelegate.
Definition at line 590 of file window_win32.cc.
|
staticprotectednoexcept |
Definition at line 142 of file window_win32.cc.
References message, and window.
Referenced by RegisterWindowClass().
|
protected |
Definition at line 217 of file window_win32.h.
Referenced by GetWindowHandle(), HandleMessage(), InitializeChild(), and flutter::FlutterWindowWin32::SetView().