Flutter Engine
The Flutter Engine
|
#include <flutter_window.h>
Public Member Functions | |
FlutterWindow (FlutterDesktopWindowRef window) | |
~FlutterWindow ()=default | |
FlutterWindow (FlutterWindow const &)=delete | |
FlutterWindow & | operator= (FlutterWindow const &)=delete |
void | SetHoverEnabled (bool enabled) |
void | SetTitle (const std::string &title) |
void | SetIcon (uint8_t *pixel_data, int width, int height) |
WindowFrame | GetFrame () |
void | SetFrame (const WindowFrame &frame) |
double | GetScaleFactor () |
void | SetPixelRatioOverride (double pixel_ratio) |
void | SetSizeLimits (FlutterDesktopSize minimum_size, FlutterDesktopSize maximum_size) |
FlutterWindow (int width, int height, std::shared_ptr< WindowsProcTable > windows_proc_table=nullptr, std::unique_ptr< TextInputManager > text_input_manager=nullptr) | |
virtual | ~FlutterWindow () |
void | InitializeChild (const char *title, unsigned int width, unsigned int height) |
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 void | OnDpiScale (unsigned int dpi) |
virtual void | OnResize (unsigned int width, unsigned int height) |
virtual void | OnPaint () |
virtual void | OnPointerMove (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, int modifiers_state) |
virtual void | OnPointerDown (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button) |
virtual void | OnPointerUp (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id, UINT button) |
virtual void | OnPointerLeave (double x, double y, FlutterPointerDeviceKind device_kind, int32_t device_id) |
virtual void | OnSetCursor () |
virtual void | OnText (const std::u16string &text) override |
virtual void | OnKey (int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback) override |
virtual void | OnComposeBegin () |
virtual void | OnComposeCommit () |
virtual void | OnComposeEnd () |
virtual void | OnComposeChange (const std::u16string &text, int cursor_pos) |
virtual void | OnCursorRectUpdated (const Rect &rect) override |
virtual void | OnResetImeComposing () override |
virtual void | OnUpdateSemanticsEnabled (bool enabled) |
virtual void | OnScroll (double delta_x, double delta_y, FlutterPointerDeviceKind device_kind, int32_t device_id) |
virtual gfx::NativeViewAccessible | GetNativeViewAccessible () |
virtual void | SetView (WindowBindingHandlerDelegate *view) override |
virtual HWND | GetWindowHandle () override |
virtual float | GetDpiScale () override |
virtual PhysicalWindowBounds | GetPhysicalWindowBounds () override |
virtual void | UpdateFlutterCursor (const std::string &cursor_name) override |
virtual void | SetFlutterCursor (HCURSOR cursor) override |
virtual bool | OnBitmapSurfaceCleared () override |
virtual bool | OnBitmapSurfaceUpdated (const void *allocation, size_t row_bytes, size_t height) override |
virtual PointerLocation | GetPrimaryPointerLocation () override |
virtual void | OnThemeChange () |
virtual AlertPlatformNodeDelegate * | GetAlertDelegate () override |
virtual ui::AXPlatformNodeWin * | GetAlert () override |
virtual ui::AXFragmentRootDelegateWin * | GetAxFragmentRootDelegate () |
virtual void | OnWindowStateEvent (WindowStateEvent event) |
Public Member Functions inherited from flutter::KeyboardManager::WindowDelegate | |
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 |
virtual BOOL | Win32PeekMessage (LPMSG lpMsg, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)=0 |
virtual uint32_t | Win32MapVkToChar (uint32_t virtual_key)=0 |
virtual UINT | Win32DispatchMessage (UINT Msg, WPARAM wParam, LPARAM lParam)=0 |
Public Member Functions inherited from flutter::WindowBindingHandler | |
virtual | ~WindowBindingHandler ()=default |
virtual void | SetView (WindowBindingHandlerDelegate *view)=0 |
virtual HWND | GetWindowHandle ()=0 |
virtual float | GetDpiScale ()=0 |
virtual PhysicalWindowBounds | GetPhysicalWindowBounds ()=0 |
virtual void | UpdateFlutterCursor (const std::string &cursor_name)=0 |
virtual void | SetFlutterCursor (HCURSOR cursor)=0 |
virtual void | OnCursorRectUpdated (const Rect &rect)=0 |
virtual bool | OnBitmapSurfaceCleared ()=0 |
virtual bool | OnBitmapSurfaceUpdated (const void *allocation, size_t row_bytes, size_t height)=0 |
virtual void | OnResetImeComposing ()=0 |
virtual PointerLocation | GetPrimaryPointerLocation ()=0 |
virtual AlertPlatformNodeDelegate * | GetAlertDelegate ()=0 |
virtual ui::AXPlatformNodeWin * | GetAlert ()=0 |
Protected Member Functions | |
FlutterWindow () | |
virtual LRESULT | Win32DefWindowProc (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) |
std::wstring | NarrowToWide (const char *source) |
LRESULT | HandleMessage (UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept |
virtual LRESULT | OnGetObject (UINT const message, WPARAM const wparam, LPARAM const lparam) |
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) |
UINT | GetCurrentDPI () |
UINT | GetCurrentWidth () |
UINT | GetCurrentHeight () |
virtual float | GetScrollOffsetMultiplier () |
Protected Attributes | |
std::unique_ptr< AlertPlatformNodeDelegate > | alert_delegate_ |
std::unique_ptr< ui::AXPlatformNodeWin > | alert_node_ |
std::unique_ptr< DirectManipulationOwner > | direct_manipulation_owner_ |
Friends | |
class | WindowAXFragmentRootDelegate |
Additional Inherited Members | |
Public Types inherited from flutter::KeyboardManager::WindowDelegate | |
using | KeyEventCallback = std::function< void(bool)> |
Definition at line 26 of file flutter_window.h.
|
inlineexplicit |
Definition at line 28 of file flutter_window.h.
|
default |
Definition at line 154 of file flutter_window.cc.
|
delete |
flutter::FlutterWindow::FlutterWindow | ( | int | width, |
int | height, | ||
std::shared_ptr< WindowsProcTable > | windows_proc_table = nullptr , |
||
std::unique_ptr< TextInputManager > | text_input_manager = nullptr |
||
) |
Definition at line 119 of file flutter_window.cc.
|
virtual |
|
protected |
Definition at line 151 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 905 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 364 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 359 of file flutter_window.cc.
|
virtual |
Definition at line 355 of file flutter_window.cc.
|
protected |
Definition at line 913 of file flutter_window.cc.
|
protected |
Definition at line 921 of file flutter_window.cc.
|
protected |
Definition at line 917 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 171 of file flutter_window.cc.
|
inline |
Definition at line 61 of file flutter_window.h.
|
virtual |
Definition at line 336 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 175 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 344 of file flutter_window.cc.
|
inline |
Definition at line 79 of file flutter_window.h.
|
protectedvirtual |
Definition at line 925 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 463 of file flutter_window.cc.
|
protectednoexcept |
Definition at line 532 of file flutter_window.cc.
void flutter::FlutterWindow::InitializeChild | ( | const char * | title, |
unsigned int | width, | ||
unsigned int | height | ||
) |
Definition at line 428 of file flutter_window.cc.
|
protected |
Definition at line 485 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 311 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 318 of file flutter_window.cc.
|
virtual |
Definition at line 265 of file flutter_window.cc.
|
virtual |
Definition at line 277 of file flutter_window.cc.
|
virtual |
Definition at line 269 of file flutter_window.cc.
|
virtual |
Definition at line 273 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 299 of file flutter_window.cc.
|
virtual |
Definition at line 188 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 784 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 855 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 890 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 897 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 840 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 848 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 254 of file flutter_window.cc.
|
virtual |
Definition at line 198 of file flutter_window.cc.
|
virtual |
Definition at line 213 of file flutter_window.cc.
|
virtual |
Definition at line 239 of file flutter_window.cc.
|
virtual |
Definition at line 204 of file flutter_window.cc.
|
virtual |
Definition at line 226 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 307 of file flutter_window.cc.
Definition at line 192 of file flutter_window.cc.
|
virtual |
Definition at line 286 of file flutter_window.cc.
|
virtual |
Definition at line 246 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 250 of file flutter_window.cc.
|
virtual |
Definition at line 351 of file flutter_window.cc.
|
virtual |
Definition at line 282 of file flutter_window.cc.
|
virtual |
Definition at line 369 of file flutter_window.cc.
|
delete |
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 183 of file flutter_window.cc.
|
inline |
Definition at line 70 of file flutter_window.h.
|
inline |
Definition at line 41 of file flutter_window.h.
Definition at line 55 of file flutter_window.h.
|
inline |
Definition at line 87 of file flutter_window.h.
|
inline |
Definition at line 93 of file flutter_window.h.
|
inline |
Definition at line 46 of file flutter_window.h.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 158 of file flutter_window.cc.
|
protectedvirtual |
Definition at line 909 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::WindowBindingHandler.
Definition at line 179 of file flutter_window.cc.
|
protectedvirtual |
Reimplemented in flutter::testing::MockWindow.
Definition at line 929 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 479 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 475 of file flutter_window.cc.
|
overridevirtual |
Implements flutter::KeyboardManager::WindowDelegate.
Definition at line 467 of file flutter_window.cc.
|
friend |
Definition at line 385 of file flutter_window.h.
|
protected |
Definition at line 274 of file flutter_window.h.
|
protected |
Definition at line 277 of file flutter_window.h.
|
protected |
Definition at line 281 of file flutter_window.h.