Flutter Engine
 
Loading...
Searching...
No Matches
semantics_flags.h
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#ifndef FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_FLAGS_H_
6#define FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_FLAGS_H_
7
10
11namespace flutter {
12
13enum class SemanticsTristate : int32_t {
14 kNone = 0,
15 kTrue = 1,
16 kFalse = 2,
17};
18enum class SemanticsCheckState : int32_t {
19 kNone = 0,
20 kTrue = 1,
21 kFalse = 2,
22 kMixed = 3,
23};
24
51
52//------------------------------------------------------------------------------
53/// The peer class for all of the SemanticsFlags subclasses in semantics.dart.
55 : public RefCountedDartWrappable<NativeSemanticsFlags> {
56 DEFINE_WRAPPERTYPEINFO();
58
59 public:
60 ~NativeSemanticsFlags() override;
61
62 //----------------------------------------------------------------------------
63 /// The init method
64 static void initSemanticsFlags(Dart_Handle semantics_flags_handle,
65 int isChecked,
66 int isSelected,
67 int isEnabled,
68 int isToggled,
69 int isExpanded,
70 int isRequired,
71 int isFocused,
72 bool isButton,
73 bool isTextField,
74 bool isInMutuallyExclusiveGroup,
75 bool isHeader,
76 bool isObscured,
77 bool scopesRoute,
78 bool namesRoute,
79 bool isHidden,
80 bool isImage,
81 bool isLiveRegion,
82 bool hasImplicitScrolling,
83 bool isMultiline,
84 bool isReadOnly,
85 bool isLink,
86 bool isSlider,
87 bool isKeyboardKey,
88 bool isAccessibilityFocusBlocked);
89
90 //----------------------------------------------------------------------------
91 /// Returns the c++ representataion of SemanticsFlags.
92
93 const SemanticsFlags GetFlags() const;
94
95 private:
97 SemanticsFlags flags_;
98};
99
100} // namespace flutter
101
102#endif // FLUTTER_LIB_UI_SEMANTICS_SEMANTICS_FLAGS_H_
The peer class for all of the SemanticsFlags subclasses in semantics.dart.
const SemanticsFlags GetFlags() const
Returns the c++ representataion of SemanticsFlags.
static void initSemanticsFlags(Dart_Handle semantics_flags_handle, int isChecked, int isSelected, int isEnabled, int isToggled, int isExpanded, int isRequired, int isFocused, bool isButton, bool isTextField, bool isInMutuallyExclusiveGroup, bool isHeader, bool isObscured, bool scopesRoute, bool namesRoute, bool isHidden, bool isImage, bool isLiveRegion, bool hasImplicitScrolling, bool isMultiline, bool isReadOnly, bool isLink, bool isSlider, bool isKeyboardKey, bool isAccessibilityFocusBlocked)
The init method.
@ kNone
Definition layer.h:43
#define FML_FRIEND_MAKE_REF_COUNTED(T)
SemanticsTristate isExpanded
SemanticsCheckState isChecked
SemanticsTristate isRequired
SemanticsTristate isFocused
SemanticsTristate isSelected
SemanticsTristate isToggled
SemanticsTristate isEnabled