Flutter Windows Embedder
flutter_windows_internal.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOWS_INTERNAL_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOWS_INTERNAL_H_
7 
9 
10 #if defined(__cplusplus)
11 extern "C" {
12 #endif
13 
14 // Declare functions that are currently in-progress and shall be exposed to the
15 // public facing API upon completion.
16 
17 typedef int64_t PlatformViewId;
18 
19 typedef struct {
20  size_t struct_size;
22  const char* platform_view_type;
23  // user_data may hold any necessary additional information for creating a new
24  // platform view. For example, an instance of FlutterWindow.
25  void* user_data;
28 
31 
32 typedef struct {
33  size_t struct_size;
35  void* user_data; // Arbitrary user data supplied to the creation struct.
37 
40  const char* view_type_name,
42 
43 #if defined(__cplusplus)
44 }
45 #endif
46 
47 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_WINDOWS_INTERNAL_H_
FlutterPlatformViewCreationParameters::platform_view_type
const char * platform_view_type
Definition: flutter_windows_internal.h:22
FlutterPlatformViewCreationParameters::struct_size
size_t struct_size
Definition: flutter_windows_internal.h:20
FLUTTER_EXPORT
#define FLUTTER_EXPORT
Definition: flutter_export.h:23
FlutterPlatformViewTypeEntry::struct_size
size_t struct_size
Definition: flutter_windows_internal.h:33
PlatformViewId
int64_t PlatformViewId
Definition: flutter_windows_internal.h:17
FlutterPlatformViewCreationParameters::user_data
void * user_data
Definition: flutter_windows_internal.h:25
FlutterPlatformViewCreationParameters
Definition: flutter_windows_internal.h:19
FlutterPlatformViewTypeEntry::user_data
void * user_data
Definition: flutter_windows_internal.h:35
FlutterPlatformViewTypeEntry
Definition: flutter_windows_internal.h:32
FlutterPlatformViewFactory
HWND(* FlutterPlatformViewFactory)(const FlutterPlatformViewCreationParameters *)
Definition: flutter_windows_internal.h:29
FlutterDesktopEngineRef
struct FlutterDesktopEngine * FlutterDesktopEngineRef
Definition: flutter_windows.h:33
FlutterPlatformViewCreationParameters::platform_view_id
PlatformViewId platform_view_id
Definition: flutter_windows_internal.h:26
FlutterPlatformViewCreationParameters::parent_window
HWND parent_window
Definition: flutter_windows_internal.h:21
FlutterDesktopEngineRegisterPlatformViewType
FLUTTER_EXPORT void FlutterDesktopEngineRegisterPlatformViewType(FlutterDesktopEngineRef engine, const char *view_type_name, FlutterPlatformViewTypeEntry view_type)
Definition: flutter_windows.cc:254
FlutterPlatformViewTypeEntry::factory
FlutterPlatformViewFactory factory
Definition: flutter_windows_internal.h:34
flutter_windows.h