#include <flutter_view_controller.h>
Definition at line 25 of file flutter_view_controller.h.
◆ FlutterViewController() [1/2]
FlutterViewController::FlutterViewController |
( |
int |
width, |
|
|
int |
height, |
|
|
const DartProject & |
project |
|
) |
| |
Definition at line 12 of file flutter_view_controller.cc.
14 {
15 engine_ = std::make_shared<FlutterEngine>(project);
17 engine_->RelinquishEngine());
18 if (!controller_) {
19 std::cerr << "Failed to create view controller." << std::endl;
20 return;
21 }
22 view_ = std::make_unique<FlutterView>(
24}
FlutterDesktopViewControllerRef FlutterDesktopViewControllerCreate(int width, int height, FlutterDesktopEngineRef engine)
FlutterDesktopViewRef FlutterDesktopViewControllerGetView(FlutterDesktopViewControllerRef controller)
◆ ~FlutterViewController()
FlutterViewController::~FlutterViewController |
( |
| ) |
|
|
virtual |
Definition at line 26 of file flutter_view_controller.cc.
26 {
27 if (controller_) {
29 }
30}
void FlutterDesktopViewControllerDestroy(FlutterDesktopViewControllerRef controller)
◆ FlutterViewController() [2/2]
◆ engine()
◆ ForceRedraw()
void FlutterViewController::ForceRedraw |
( |
| ) |
|
Definition at line 38 of file flutter_view_controller.cc.
38 {
40}
void FlutterDesktopViewControllerForceRedraw(FlutterDesktopViewControllerRef controller)
◆ HandleTopLevelWindowProc()
std::optional< LRESULT > FlutterViewController::HandleTopLevelWindowProc |
( |
HWND |
hwnd, |
|
|
UINT |
message, |
|
|
WPARAM |
wparam, |
|
|
LPARAM |
lparam |
|
) |
| |
Definition at line 42 of file flutter_view_controller.cc.
46 {
50 return handled ?
result : std::optional<LRESULT>(std::nullopt);
51}
bool FlutterDesktopViewControllerHandleTopLevelWindowProc(FlutterDesktopViewControllerRef controller, HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, LRESULT *result)
◆ operator=()
◆ view()
FlutterView * flutter::FlutterViewController::view |
( |
| ) |
const |
|
inline |
◆ view_id()
Definition at line 32 of file flutter_view_controller.cc.
32 {
34
36}
FlutterViewId view_id() const
FlutterDesktopViewId FlutterDesktopViewControllerGetViewId(FlutterDesktopViewControllerRef controller)
The documentation for this class was generated from the following files: