70 {
72 (scrollChildren > 0 && childrenInHitTestOrder.data()))
73 << "Semantics update contained scrollChildren but did not have "
74 "childrenInHitTestOrder";
75 SemanticsNode node;
78 node.actions = actions;
79 node.maxValueLength = maxValueLength;
80 node.currentValueLength = currentValueLength;
81 node.textSelectionBase = textSelectionBase;
82 node.textSelectionExtent = textSelectionExtent;
83 node.platformViewId = platformViewId;
84 node.scrollChildren = scrollChildren;
85 node.scrollIndex = scrollIndex;
86 node.scrollPosition = scrollPosition;
87 node.scrollExtentMax = scrollExtentMax;
88 node.scrollExtentMin = scrollExtentMin;
91 node.elevation = elevation;
92 node.thickness = thickness;
94 node.label = std::move(label);
96 node.value = std::move(
value);
98 node.increasedValue = std::move(increasedValue);
100 node.decreasedValue = std::move(decreasedValue);
102 node.hint = std::move(hint);
104 node.tooltip = std::move(tooltip);
105 node.textDirection = textDirection;
107 for (
int i = 0;
i < 16; ++
i) {
109 }
111 node.childrenInTraversalOrder =
112 std::vector<int32_t>(childrenInTraversalOrder.data(),
113 childrenInTraversalOrder.data() +
114 childrenInTraversalOrder.num_elements());
115 node.childrenInHitTestOrder = std::vector<int32_t>(
116 childrenInHitTestOrder.data(),
117 childrenInHitTestOrder.data() + childrenInHitTestOrder.num_elements());
118 node.customAccessibilityActions = std::vector<int32_t>(
119 localContextActions.data(),
120 localContextActions.data() + localContextActions.num_elements());
122
123 node.headingLevel = headingLevel;
124}
static SkM44 ColMajor(const SkScalar c[16])
static SkString identifier(const FontFamilyDesc &family, const FontDesc &font)
FlutterSemanticsFlag flags
#define FML_CHECK(condition)
void pushStringAttributes(StringAttributes &destination, const std::vector< NativeStringAttribute * > &native_attributes)
static float SafeNarrow(double value)
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)