15 engine_ = std::make_shared<FlutterEngine>(project);
17 engine_->RelinquishEngine());
19 std::cerr <<
"Failed to create view controller." << std::endl;
22 view_ = std::make_unique<FlutterView>(
50 return handled ?
result : std::optional<LRESULT>(std::nullopt);
virtual ~FlutterViewController()
std::optional< LRESULT > HandleTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
FlutterViewController(int width, int height, const DartProject &project)
FlutterViewId view_id() const
void FlutterDesktopViewControllerDestroy(FlutterDesktopViewControllerRef controller)
FlutterDesktopViewId FlutterDesktopViewControllerGetViewId(FlutterDesktopViewControllerRef controller)
FlutterDesktopViewControllerRef FlutterDesktopViewControllerCreate(int width, int height, FlutterDesktopEngineRef engine)
bool FlutterDesktopViewControllerHandleTopLevelWindowProc(FlutterDesktopViewControllerRef controller, HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, LRESULT *result)
FlutterDesktopViewRef FlutterDesktopViewControllerGetView(FlutterDesktopViewControllerRef controller)
void FlutterDesktopViewControllerForceRedraw(FlutterDesktopViewControllerRef controller)