Flutter Engine
 
Loading...
Searching...
No Matches
FlutterAddViewInfo Struct Reference

#include <embedder.h>

Public Attributes

size_t struct_size
 
FlutterViewId view_id
 The identifier for the view to add. This must be unique.
 
const FlutterWindowMetricsEventview_metrics
 
void * user_data
 
FlutterAddViewCallback add_view_callback
 

Detailed Description

Definition at line 1091 of file embedder.h.

Member Data Documentation

◆ add_view_callback

FlutterAddViewCallback FlutterAddViewInfo::add_view_callback

Called once the engine has attempted to add the view. This callback is required.

The embedder/app must not use the view until the callback is invoked with an added value of true.

This callback is invoked on an internal engine managed thread. Embedders must re-thread if necessary.

Definition at line 1117 of file embedder.h.

Referenced by flutter::FlutterWindowsEngine::CreateView(), fl_engine_add_view(), FlutterEngineAddView(), TEST(), TEST(), TEST(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().

◆ struct_size

◆ user_data

void* FlutterAddViewInfo::user_data

A baton that is not interpreted by the engine in any way. It will be given back to the embedder in |add_view_callback|. Embedder resources may be associated with this baton.

Definition at line 1107 of file embedder.h.

Referenced by flutter::FlutterWindowsEngine::CreateView(), fl_engine_add_view(), FlutterEngineAddView(), TEST(), TEST(), TEST(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().

◆ view_id

◆ view_metrics


The documentation for this struct was generated from the following file: