Flutter Engine
 
Loading...
Searching...
No Matches
flutter_windows_internal.h File Reference

Go to the source code of this file.

Classes

struct  FlutterDesktopViewControllerProperties
 
struct  FlutterPlatformViewCreationParameters
 
struct  FlutterPlatformViewTypeEntry
 

Typedefs

typedef int64_t PlatformViewId
 
typedef HWND(* FlutterPlatformViewFactory) (const FlutterPlatformViewCreationParameters *)
 

Functions

FLUTTER_EXPORT FlutterDesktopViewControllerRef FlutterDesktopEngineCreateViewController (FlutterDesktopEngineRef engine, const FlutterDesktopViewControllerProperties *properties)
 
FLUTTER_EXPORT void FlutterDesktopEngineRegisterPlatformViewType (FlutterDesktopEngineRef engine, const char *view_type_name, FlutterPlatformViewTypeEntry view_type)
 
FLUTTER_EXPORT FlutterDesktopEngineRef FlutterDesktopEngineForId (int64_t engine_id)
 

Typedef Documentation

◆ FlutterPlatformViewFactory

◆ PlatformViewId

typedef int64_t PlatformViewId

Definition at line 42 of file flutter_windows_internal.h.

Function Documentation

◆ FlutterDesktopEngineCreateViewController()

FLUTTER_EXPORT FlutterDesktopViewControllerRef FlutterDesktopEngineCreateViewController ( FlutterDesktopEngineRef  engine,
const FlutterDesktopViewControllerProperties properties 
)

Definition at line 129 of file flutter_windows.cc.

131 {
132 return CreateViewController(engine, properties->width, properties->height,
133 /*owns_engine=*/false);
134}
FlutterEngine engine
Definition main.cc:84
static FlutterDesktopViewControllerRef CreateViewController(FlutterDesktopEngineRef engine_ref, int width, int height, bool owns_engine)

References CreateViewController(), engine, FlutterDesktopViewControllerProperties::height, and FlutterDesktopViewControllerProperties::width.

Referenced by flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().

◆ FlutterDesktopEngineForId()

FLUTTER_EXPORT FlutterDesktopEngineRef FlutterDesktopEngineForId ( int64_t  engine_id)

Definition at line 202 of file flutter_windows.cc.

202 {
203 return HandleForEngine(
205}
static FlutterWindowsEngine * GetEngineForId(int64_t engine_id)
static FlutterDesktopEngineRef HandleForEngine(flutter::FlutterWindowsEngine *engine)

References flutter::FlutterWindowsEngine::GetEngineForId(), and HandleForEngine().

Referenced by flutter::testing::TEST_F().

◆ FlutterDesktopEngineRegisterPlatformViewType()

FLUTTER_EXPORT void FlutterDesktopEngineRegisterPlatformViewType ( FlutterDesktopEngineRef  engine,
const char *  view_type_name,
FlutterPlatformViewTypeEntry  view_type 
)

Definition at line 185 of file stub_flutter_windows_api.cc.

188 {
191 view_type);
192 }
193}
virtual void EngineRegisterPlatformViewType(const char *view_type_name, FlutterPlatformViewTypeEntry view_type)
static flutter::testing::StubFlutterWindowsApi * s_stub_implementation

References flutter::testing::StubFlutterWindowsApi::EngineRegisterPlatformViewType(), and s_stub_implementation.