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 
9 namespace flutter {
10 
11 constexpr int32_t kMinPlatformViewId = -1;
12 
14 
15 SemanticsNode::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
bool IsPlatformViewNode() const
bool HasFlag(SemanticsFlags flag) const
bool HasAction(SemanticsAction action) const
SemanticsAction action
constexpr int32_t kMinPlatformViewId