Flutter Engine
The Flutter Engine
semantics_node.cc
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#include "flutter/lib/ui/semantics/semantics_node.h"
6
7#include <cstring>
8
9namespace flutter {
10
11constexpr int32_t kMinPlatformViewId = -1;
12
14
15SemanticsNode::SemanticsNode(const SemanticsNode& other) = default;
16
18
20 return (actions & static_cast<int32_t>(action)) != 0;
21}
22
24 return (flags & static_cast<int32_t>(flag)) != 0;
25}
26
29}
30
31} // namespace flutter
FlutterSemanticsFlag flag
constexpr int32_t kMinPlatformViewId
bool HasAction(SemanticsAction action) const
bool HasFlag(SemanticsFlags flag) const
bool IsPlatformViewNode() const