The Webview Univeral Flutter package for Appeto SDK.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

39 lignes
743 B

  1. //
  2. // Created by yangbin on 2021/11/12.
  3. //
  4. #ifndef WEBVIEW_WINDOW_WINDOWS_FLUTTER_VIEW_H_
  5. #define WEBVIEW_WINDOW_WINDOWS_FLUTTER_VIEW_H_
  6. #include "windows.h"
  7. #include <flutter/flutter_view_controller.h>
  8. namespace webview_window {
  9. class FlutterView {
  10. public:
  11. FlutterView(std::vector<std::string> arguments);
  12. virtual ~FlutterView();
  13. std::optional<LRESULT> HandleTopLevelWindowProc(HWND hwnd, UINT message, WPARAM w_param, LPARAM l_param);
  14. [[nodiscard]] HWND GetWindow() const { return flutter_controller_->view()->GetNativeWindow(); }
  15. void ReloadSystemFonts();
  16. void ForceRedraw();
  17. private:
  18. std::unique_ptr<flutter::FlutterViewController> flutter_controller_;
  19. };
  20. }
  21. #endif //WEBVIEW_WINDOW_WINDOWS_FLUTTER_VIEW_H_