Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
flutter::SemanticsNode Struct Reference

#include <semantics_node.h>

Public Member Functions

 SemanticsNode ()
 
 SemanticsNode (const SemanticsNode &other)
 
 ~SemanticsNode ()
 
bool HasAction (SemanticsAction action) const
 
bool HasFlag (SemanticsFlags flag) const
 
bool IsPlatformViewNode () const
 

Public Attributes

int32_t id = 0
 
int32_t flags = 0
 
int32_t actions = 0
 
int32_t maxValueLength = -1
 
int32_t currentValueLength = -1
 
int32_t textSelectionBase = -1
 
int32_t textSelectionExtent = -1
 
int32_t platformViewId = -1
 
int32_t scrollChildren = 0
 
int32_t scrollIndex = 0
 
double scrollPosition = std::nan("")
 
double scrollExtentMax = std::nan("")
 
double scrollExtentMin = std::nan("")
 
double elevation = 0.0
 
double thickness = 0.0
 
std::string identifier
 
std::string label
 
StringAttributes labelAttributes
 
std::string hint
 
StringAttributes hintAttributes
 
std::string value
 
StringAttributes valueAttributes
 
std::string increasedValue
 
StringAttributes increasedValueAttributes
 
std::string decreasedValue
 
StringAttributes decreasedValueAttributes
 
std::string tooltip
 
int32_t textDirection = 0
 
SkRect rect = SkRect::MakeEmpty()
 
SkM44 transform = SkM44{}
 
std::vector< int32_t > childrenInTraversalOrder
 
std::vector< int32_t > childrenInHitTestOrder
 
std::vector< int32_t > customAccessibilityActions
 

Detailed Description

Definition at line 98 of file semantics_node.h.

Constructor & Destructor Documentation

◆ SemanticsNode() [1/2]

flutter::SemanticsNode::SemanticsNode ( )
default

◆ SemanticsNode() [2/2]

flutter::SemanticsNode::SemanticsNode ( const SemanticsNode other)
default

◆ ~SemanticsNode()

flutter::SemanticsNode::~SemanticsNode ( )
default

Member Function Documentation

◆ HasAction()

bool flutter::SemanticsNode::HasAction ( SemanticsAction  action) const

Definition at line 19 of file semantics_node.cc.

19 {
20 return (actions & static_cast<int32_t>(action)) != 0;
21}

◆ HasFlag()

bool flutter::SemanticsNode::HasFlag ( SemanticsFlags  flag) const

Definition at line 23 of file semantics_node.cc.

23 {
24 return (flags & static_cast<int32_t>(flag)) != 0;
25}
FlutterSemanticsFlag flag

◆ IsPlatformViewNode()

bool flutter::SemanticsNode::IsPlatformViewNode ( ) const

Definition at line 27 of file semantics_node.cc.

27 {
29}
constexpr int32_t kMinPlatformViewId

Member Data Documentation

◆ actions

int32_t flutter::SemanticsNode::actions = 0

Definition at line 113 of file semantics_node.h.

◆ childrenInHitTestOrder

std::vector<int32_t> flutter::SemanticsNode::childrenInHitTestOrder

Definition at line 143 of file semantics_node.h.

◆ childrenInTraversalOrder

std::vector<int32_t> flutter::SemanticsNode::childrenInTraversalOrder

Definition at line 142 of file semantics_node.h.

◆ currentValueLength

int32_t flutter::SemanticsNode::currentValueLength = -1

Definition at line 115 of file semantics_node.h.

◆ customAccessibilityActions

std::vector<int32_t> flutter::SemanticsNode::customAccessibilityActions

Definition at line 144 of file semantics_node.h.

◆ decreasedValue

std::string flutter::SemanticsNode::decreasedValue

Definition at line 135 of file semantics_node.h.

◆ decreasedValueAttributes

StringAttributes flutter::SemanticsNode::decreasedValueAttributes

Definition at line 136 of file semantics_node.h.

◆ elevation

double flutter::SemanticsNode::elevation = 0.0

Definition at line 124 of file semantics_node.h.

◆ flags

int32_t flutter::SemanticsNode::flags = 0

Definition at line 112 of file semantics_node.h.

◆ hint

std::string flutter::SemanticsNode::hint

Definition at line 129 of file semantics_node.h.

◆ hintAttributes

StringAttributes flutter::SemanticsNode::hintAttributes

Definition at line 130 of file semantics_node.h.

◆ id

int32_t flutter::SemanticsNode::id = 0

Definition at line 111 of file semantics_node.h.

◆ identifier

std::string flutter::SemanticsNode::identifier

Definition at line 126 of file semantics_node.h.

◆ increasedValue

std::string flutter::SemanticsNode::increasedValue

Definition at line 133 of file semantics_node.h.

◆ increasedValueAttributes

StringAttributes flutter::SemanticsNode::increasedValueAttributes

Definition at line 134 of file semantics_node.h.

◆ label

std::string flutter::SemanticsNode::label

Definition at line 127 of file semantics_node.h.

◆ labelAttributes

StringAttributes flutter::SemanticsNode::labelAttributes

Definition at line 128 of file semantics_node.h.

◆ maxValueLength

int32_t flutter::SemanticsNode::maxValueLength = -1

Definition at line 114 of file semantics_node.h.

◆ platformViewId

int32_t flutter::SemanticsNode::platformViewId = -1

Definition at line 118 of file semantics_node.h.

◆ rect

SkRect flutter::SemanticsNode::rect = SkRect::MakeEmpty()

Definition at line 140 of file semantics_node.h.

◆ scrollChildren

int32_t flutter::SemanticsNode::scrollChildren = 0

Definition at line 119 of file semantics_node.h.

◆ scrollExtentMax

double flutter::SemanticsNode::scrollExtentMax = std::nan("")

Definition at line 122 of file semantics_node.h.

◆ scrollExtentMin

double flutter::SemanticsNode::scrollExtentMin = std::nan("")

Definition at line 123 of file semantics_node.h.

◆ scrollIndex

int32_t flutter::SemanticsNode::scrollIndex = 0

Definition at line 120 of file semantics_node.h.

◆ scrollPosition

double flutter::SemanticsNode::scrollPosition = std::nan("")

Definition at line 121 of file semantics_node.h.

◆ textDirection

int32_t flutter::SemanticsNode::textDirection = 0

Definition at line 138 of file semantics_node.h.

◆ textSelectionBase

int32_t flutter::SemanticsNode::textSelectionBase = -1

Definition at line 116 of file semantics_node.h.

◆ textSelectionExtent

int32_t flutter::SemanticsNode::textSelectionExtent = -1

Definition at line 117 of file semantics_node.h.

◆ thickness

double flutter::SemanticsNode::thickness = 0.0

Definition at line 125 of file semantics_node.h.

◆ tooltip

std::string flutter::SemanticsNode::tooltip

Definition at line 137 of file semantics_node.h.

◆ transform

SkM44 flutter::SemanticsNode::transform = SkM44{}

Definition at line 141 of file semantics_node.h.

141{}; // Identity

◆ value

std::string flutter::SemanticsNode::value

Definition at line 131 of file semantics_node.h.

◆ valueAttributes

StringAttributes flutter::SemanticsNode::valueAttributes

Definition at line 132 of file semantics_node.h.


The documentation for this struct was generated from the following files: