5#ifndef FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_UPDATE_BUILDER_H_
6#define FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_UPDATE_BUILDER_H_
11#include "flutter/lib/ui/dart_wrapper.h"
12#include "flutter/lib/ui/semantics/semantics_update.h"
13#include "flutter/lib/ui/ui_dart_state.h"
20 DEFINE_WRAPPERTYPEINFO();
26 auto res = fml::MakeRefCounted<SemanticsUpdateBuilder>();
27 res->AssociateWithDartWrapper(wrapper);
37 int currentValueLength,
38 int textSelectionBase,
39 int textSelectionExtent,
43 double scrollPosition,
44 double scrollExtentMax,
45 double scrollExtentMin,
54 const std::vector<NativeStringAttribute*>& labelAttributes,
56 const std::vector<NativeStringAttribute*>& valueAttributes,
57 std::string increasedValue,
58 const std::vector<NativeStringAttribute*>& increasedValueAttributes,
59 std::string decreasedValue,
60 const std::vector<NativeStringAttribute*>& decreasedValueAttributes,
62 const std::vector<NativeStringAttribute*>& hintAttributes,
66 const tonic::Int32List& childrenInTraversalOrder,
67 const tonic::Int32List& childrenInHitTestOrder,
68 const tonic::Int32List& customAccessibilityActions,
void build(Dart_Handle semantics_update_handle)
void updateNode(int id, int flags, int actions, int maxValueLength, int currentValueLength, int textSelectionBase, int textSelectionExtent, int platformViewId, int scrollChildren, int scrollIndex, double scrollPosition, double scrollExtentMax, double scrollExtentMin, double left, double top, double right, double bottom, double elevation, double thickness, std::string identifier, std::string label, const std::vector< NativeStringAttribute * > &labelAttributes, std::string value, const std::vector< NativeStringAttribute * > &valueAttributes, std::string increasedValue, const std::vector< NativeStringAttribute * > &increasedValueAttributes, std::string decreasedValue, const std::vector< NativeStringAttribute * > &decreasedValueAttributes, std::string hint, const std::vector< NativeStringAttribute * > &hintAttributes, std::string tooltip, int textDirection, const tonic::Float64List &transform, const tonic::Int32List &childrenInTraversalOrder, const tonic::Int32List &childrenInHitTestOrder, const tonic::Int32List &customAccessibilityActions, int headingLevel)
void updateCustomAction(int id, std::string label, std::string hint, int overrideId)
~SemanticsUpdateBuilder() override
static void Create(Dart_Handle wrapper)
static void ThrowIfUIOperationsProhibited()
static SkString identifier(const FontFamilyDesc &family, const FontDesc &font)
struct _Dart_Handle * Dart_Handle
FlutterSemanticsFlag flags
std::unordered_map< int32_t, SemanticsNode > SemanticsNodeUpdates
std::unordered_map< int32_t, CustomAccessibilityAction > CustomAccessibilityActionUpdates
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)