#include <dxgi.h>
#include <stddef.h>
#include <stdint.h>
#include <windows.h>
#include "flutter_export.h"
#include "flutter_messenger.h"
#include "flutter_plugin_registrar.h"
Go to the source code of this file.
Classes | |
struct | FlutterDesktopEngineProperties |
Typedefs | |
typedef void(* | VoidCallback) (void *) |
typedef struct FlutterDesktopViewController * | FlutterDesktopViewControllerRef |
typedef struct FlutterDesktopView * | FlutterDesktopViewRef |
typedef struct FlutterDesktopEngine * | FlutterDesktopEngineRef |
typedef int64_t | FlutterDesktopViewId |
typedef bool(* | FlutterDesktopWindowProcCallback) (HWND, UINT, WPARAM, LPARAM, void *, LRESULT *result) |
typedef struct FlutterDesktopEngine* FlutterDesktopEngineRef |
Definition at line 33 of file flutter_windows.h.
typedef struct FlutterDesktopViewController* FlutterDesktopViewControllerRef |
Definition at line 25 of file flutter_windows.h.
typedef int64_t FlutterDesktopViewId |
Definition at line 36 of file flutter_windows.h.
typedef struct FlutterDesktopView* FlutterDesktopViewRef |
Definition at line 29 of file flutter_windows.h.
typedef bool(* FlutterDesktopWindowProcCallback) (HWND, UINT, WPARAM, LPARAM, void *, LRESULT *result) |
Definition at line 245 of file flutter_windows.h.
typedef void(* VoidCallback) (void *) |
Definition at line 21 of file flutter_windows.h.
FLUTTER_EXPORT FlutterDesktopEngineRef FlutterDesktopEngineCreate | ( | const FlutterDesktopEngineProperties * | engine_properties | ) |
Definition at line 183 of file flutter_windows.cc.
References HandleForEngine().
Referenced by flutter::FlutterEngine::FlutterEngine(), and flutter::testing::TEST().
FLUTTER_EXPORT bool FlutterDesktopEngineDestroy | ( | FlutterDesktopEngineRef | engine | ) |
Definition at line 190 of file flutter_windows.cc.
References EngineFromHandle(), flutter::FlutterWindowsEngine::running(), and flutter::FlutterWindowsEngine::Stop().
Referenced by flutter::FlutterEngine::ShutDown(), and flutter::testing::TEST().
FLUTTER_EXPORT FlutterDesktopMessengerRef FlutterDesktopEngineGetMessenger | ( | FlutterDesktopEngineRef | engine | ) |
Definition at line 228 of file flutter_windows.cc.
References EngineFromHandle(), and flutter::FlutterWindowsEngine::messenger().
Referenced by flutter::FlutterEngine::FlutterEngine().
FLUTTER_EXPORT FlutterDesktopPluginRegistrarRef FlutterDesktopEngineGetPluginRegistrar | ( | FlutterDesktopEngineRef | engine, |
const char * | plugin_name | ||
) |
Definition at line 218 of file flutter_windows.cc.
References EngineFromHandle(), and flutter::FlutterWindowsEngine::GetRegistrar().
Referenced by flutter::FlutterEngine::GetRegistrarForPlugin(), and flutter::testing::TEST_F().
FLUTTER_EXPORT FlutterDesktopTextureRegistrarRef FlutterDesktopEngineGetTextureRegistrar | ( | FlutterDesktopEngineRef | engine | ) |
Definition at line 233 of file flutter_windows.cc.
References EngineFromHandle(), and HandleForTextureRegistrar().
Referenced by flutter::testing::TEST().
FLUTTER_EXPORT bool FlutterDesktopEngineProcessExternalWindowMessage | ( | FlutterDesktopEngineRef | engine, |
HWND | hwnd, | ||
UINT | message, | ||
WPARAM | wparam, | ||
LPARAM | lparam, | ||
LRESULT * | result | ||
) |
Definition at line 266 of file flutter_windows.cc.
References EngineFromHandle(), message, and flutter::FlutterWindowsEngine::ProcessExternalWindowMessage().
Referenced by flutter::FlutterEngine::ProcessExternalWindowMessage().
FLUTTER_EXPORT uint64_t FlutterDesktopEngineProcessMessages | ( | FlutterDesktopEngineRef | engine | ) |
Definition at line 210 of file flutter_windows.cc.
Referenced by flutter::FlutterEngine::ProcessMessages().
FLUTTER_EXPORT void FlutterDesktopEngineReloadSystemFonts | ( | FlutterDesktopEngineRef | engine | ) |
Definition at line 214 of file flutter_windows.cc.
References EngineFromHandle(), and flutter::FlutterWindowsEngine::ReloadSystemFonts().
Referenced by flutter::FlutterEngine::ReloadSystemFonts().
FLUTTER_EXPORT bool FlutterDesktopEngineRun | ( | FlutterDesktopEngineRef | engine, |
const char * | entry_point | ||
) |
Definition at line 200 of file flutter_windows.cc.
References EngineFromHandle(), and flutter::FlutterWindowsEngine::Run().
Referenced by flutter::FlutterEngine::Run(), and flutter::testing::TEST_F().
FLUTTER_EXPORT void FlutterDesktopEngineSetNextFrameCallback | ( | FlutterDesktopEngineRef | engine, |
VoidCallback | callback, | ||
void * | user_data | ||
) |
Definition at line 239 of file flutter_windows.cc.
References callback, EngineFromHandle(), flutter::FlutterWindowsEngine::SetNextFrameCallback(), and user_data.
Referenced by flutter::FlutterEngine::SetNextFrameCallback(), and flutter::testing::TEST_F().
FLUTTER_EXPORT UINT FlutterDesktopGetDpiForHWND | ( | HWND | hwnd | ) |
Definition at line 316 of file flutter_windows.cc.
References flutter::GetDpiForHWND().
FLUTTER_EXPORT UINT FlutterDesktopGetDpiForMonitor | ( | HMONITOR | monitor | ) |
Definition at line 320 of file flutter_windows.cc.
References flutter::GetDpiForMonitor().
FLUTTER_EXPORT FlutterDesktopViewRef FlutterDesktopPluginRegistrarGetView | ( | FlutterDesktopPluginRegistrarRef | registrar | ) |
Definition at line 290 of file flutter_windows.cc.
References FlutterDesktopPluginRegistrar::engine, HandleForView(), flutter::kImplicitViewId, and flutter::FlutterWindowsEngine::view().
Referenced by flutter::PluginRegistrarWindows::PluginRegistrarWindows(), and flutter::testing::TEST_F().
FLUTTER_EXPORT FlutterDesktopViewRef FlutterDesktopPluginRegistrarGetViewById | ( | FlutterDesktopPluginRegistrarRef | registrar, |
FlutterDesktopViewId | view_id | ||
) |
Definition at line 295 of file flutter_windows.cc.
References FlutterDesktopPluginRegistrar::engine, HandleForView(), and flutter::FlutterWindowsEngine::view().
Referenced by flutter::PluginRegistrarWindows::GetViewById(), and flutter::testing::TEST_F().
FLUTTER_EXPORT void FlutterDesktopPluginRegistrarRegisterTopLevelWindowProcDelegate | ( | FlutterDesktopPluginRegistrarRef | registrar, |
FlutterDesktopWindowProcCallback | delegate, | ||
void * | user_data | ||
) |
Definition at line 301 of file flutter_windows.cc.
References FlutterDesktopPluginRegistrar::engine, flutter::WindowProcDelegateManager::RegisterTopLevelWindowProcDelegate(), user_data, and flutter::FlutterWindowsEngine::window_proc_delegate_manager().
Referenced by flutter::PluginRegistrarWindows::RegisterTopLevelWindowProcDelegate().
FLUTTER_EXPORT void FlutterDesktopPluginRegistrarUnregisterTopLevelWindowProcDelegate | ( | FlutterDesktopPluginRegistrarRef | registrar, |
FlutterDesktopWindowProcCallback | delegate | ||
) |
Definition at line 309 of file flutter_windows.cc.
References FlutterDesktopPluginRegistrar::engine, flutter::WindowProcDelegateManager::UnregisterTopLevelWindowProcDelegate(), and flutter::FlutterWindowsEngine::window_proc_delegate_manager().
Referenced by flutter::PluginRegistrarWindows::UnregisterTopLevelWindowProcDelegate().
FLUTTER_EXPORT void FlutterDesktopResyncOutputStreams | ( | ) |
Definition at line 324 of file flutter_windows.cc.
FLUTTER_EXPORT FlutterDesktopViewControllerRef FlutterDesktopViewControllerCreate | ( | int | width, |
int | height, | ||
FlutterDesktopEngineRef | engine | ||
) |
Definition at line 121 of file flutter_windows.cc.
References CreateViewController().
Referenced by flutter::FlutterViewController::FlutterViewController(), and flutter::testing::TEST_F().
FLUTTER_EXPORT void FlutterDesktopViewControllerDestroy | ( | FlutterDesktopViewControllerRef | controller | ) |
Definition at line 135 of file flutter_windows.cc.
References ViewControllerFromHandle().
Referenced by flutter::FlutterViewController::~FlutterViewController().
FLUTTER_EXPORT void FlutterDesktopViewControllerForceRedraw | ( | FlutterDesktopViewControllerRef | controller | ) |
Definition at line 159 of file flutter_windows.cc.
References ViewControllerFromHandle().
Referenced by flutter::FlutterViewController::ForceRedraw().
FLUTTER_EXPORT FlutterDesktopEngineRef FlutterDesktopViewControllerGetEngine | ( | FlutterDesktopViewControllerRef | controller | ) |
Definition at line 147 of file flutter_windows.cc.
References HandleForEngine(), and ViewControllerFromHandle().
Referenced by flutter::testing::TEST_F().
FLUTTER_EXPORT FlutterDesktopViewRef FlutterDesktopViewControllerGetView | ( | FlutterDesktopViewControllerRef | controller | ) |
Definition at line 153 of file flutter_windows.cc.
References HandleForView(), and ViewControllerFromHandle().
Referenced by flutter::FlutterViewController::FlutterViewController(), and flutter::testing::TEST_F().
FLUTTER_EXPORT FlutterDesktopViewId FlutterDesktopViewControllerGetViewId | ( | FlutterDesktopViewControllerRef | view_controller | ) |
Definition at line 141 of file flutter_windows.cc.
References ViewControllerFromHandle().
Referenced by flutter::testing::TEST_F(), and flutter::FlutterViewController::view_id().
FLUTTER_EXPORT bool FlutterDesktopViewControllerHandleTopLevelWindowProc | ( | FlutterDesktopViewControllerRef | controller, |
HWND | hwnd, | ||
UINT | message, | ||
WPARAM | wparam, | ||
LPARAM | lparam, | ||
LRESULT * | result | ||
) |
Definition at line 165 of file flutter_windows.cc.
References message, and ViewControllerFromHandle().
Referenced by flutter::FlutterViewController::HandleTopLevelWindowProc().
FLUTTER_EXPORT IDXGIAdapter* FlutterDesktopViewGetGraphicsAdapter | ( | FlutterDesktopViewRef | view | ) |
Definition at line 250 of file flutter_windows.cc.
References flutter::FlutterWindowsEngine::egl_manager(), flutter::FlutterWindowsView::GetEngine(), and ViewFromHandle().
Referenced by flutter::FlutterView::GetGraphicsAdapter(), and flutter::testing::TEST_F().
FLUTTER_EXPORT HWND FlutterDesktopViewGetHWND | ( | FlutterDesktopViewRef | view | ) |
Definition at line 246 of file flutter_windows.cc.
References flutter::FlutterWindowsView::GetWindowHandle(), and ViewFromHandle().
Referenced by flutter::FlutterView::GetNativeWindow(), and flutter::testing::TEST_F().