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
8
#include "
flutter/shell/platform/windows/public/flutter_windows.h
"
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
;
21
HWND
parent_window
;
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
;
26
PlatformViewId
platform_view_id
;
27
}
FlutterPlatformViewCreationParameters
;
28
29
typedef
HWND (*
FlutterPlatformViewFactory
)(
30
const
FlutterPlatformViewCreationParameters
*);
31
32
typedef
struct
{
33
size_t
struct_size
;
34
FlutterPlatformViewFactory
factory
;
35
void
*
user_data
;
// Arbitrary user data supplied to the creation struct.
36
}
FlutterPlatformViewTypeEntry
;
37
38
FLUTTER_EXPORT
void
FlutterDesktopEngineRegisterPlatformViewType
(
39
FlutterDesktopEngineRef
engine,
40
const
char
* view_type_name,
41
FlutterPlatformViewTypeEntry
view_type);
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
shell
platform
windows
flutter_windows_internal.h
Generated by
1.8.17