Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::EmbedderSemanticsUpdate Class Reference

#include <embedder_semantics_update.h>

Public Member Functions

 EmbedderSemanticsUpdate (const SemanticsNodeUpdates &nodes, const CustomAccessibilityActionUpdates &actions)
 
 ~EmbedderSemanticsUpdate ()
 
FlutterSemanticsUpdateget ()
 

Detailed Description

Definition at line 16 of file embedder_semantics_update.h.

Constructor & Destructor Documentation

◆ EmbedderSemanticsUpdate()

flutter::EmbedderSemanticsUpdate::EmbedderSemanticsUpdate ( const SemanticsNodeUpdates nodes,
const CustomAccessibilityActionUpdates actions 
)

Definition at line 9 of file embedder_semantics_update.cc.

11 {
12 for (const auto& value : nodes) {
13 AddNode(value.second);
14 }
15
16 for (const auto& value : actions) {
17 AddAction(value.second);
18 }
19
20 update_ = {
22 .nodes_count = nodes_.size(),
23 .nodes = nodes_.data(),
24 .custom_actions_count = actions_.size(),
25 .custom_actions = actions_.data(),
26 };
27}
uint8_t value
size_t struct_size
The size of the struct. Must be sizeof(FlutterSemanticsUpdate).
Definition: embedder.h:1492

◆ ~EmbedderSemanticsUpdate()

flutter::EmbedderSemanticsUpdate::~EmbedderSemanticsUpdate ( )

Definition at line 88 of file embedder_semantics_update.cc.

88{}

Member Function Documentation

◆ get()

FlutterSemanticsUpdate * flutter::EmbedderSemanticsUpdate::get ( )
inline

Definition at line 25 of file embedder_semantics_update.h.

25{ return &update_; }

The documentation for this class was generated from the following files: