Flutter Engine
 
Loading...
Searching...
No Matches
flutter::SemanticsNode Struct Reference

#include <semantics_node.h>

Public Member Functions

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

Public Attributes

int32_t id = 0
 
SemanticsFlags flags
 
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
 
int32_t traversalParent = 0
 
double scrollPosition = std::nan("")
 
double scrollExtentMax = std::nan("")
 
double scrollExtentMin = std::nan("")
 
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{}
 
SkM44 hitTestTransform = SkM44{}
 
std::vector< int32_t > childrenInTraversalOrder
 
std::vector< int32_t > childrenInHitTestOrder
 
std::vector< int32_t > customAccessibilityActions
 
int32_t headingLevel = 0
 
std::string linkUrl
 
SemanticsRole role
 
SemanticsValidationResult validationResult = SemanticsValidationResult::kNone
 
std::string locale
 

Detailed Description

Definition at line 122 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}

References action, and actions.

◆ IsPlatformViewNode()

bool flutter::SemanticsNode::IsPlatformViewNode ( ) const

Definition at line 23 of file semantics_node.cc.

23 {
25}
constexpr int32_t kMinPlatformViewId

References flutter::kMinPlatformViewId, and platformViewId.

Member Data Documentation

◆ actions

◆ childrenInHitTestOrder

◆ childrenInTraversalOrder

◆ currentValueLength

◆ customAccessibilityActions

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

◆ decreasedValue

std::string flutter::SemanticsNode::decreasedValue

◆ decreasedValueAttributes

◆ flags

◆ headingLevel

◆ hint

◆ hintAttributes

◆ hitTestTransform

◆ id

◆ identifier

◆ increasedValue

std::string flutter::SemanticsNode::increasedValue

◆ increasedValueAttributes

◆ label

◆ labelAttributes

◆ linkUrl

std::string flutter::SemanticsNode::linkUrl

◆ locale

◆ maxValueLength

◆ platformViewId

◆ rect

◆ role

SemanticsRole flutter::SemanticsNode::role

◆ scrollChildren

◆ scrollExtentMax

◆ scrollExtentMin

◆ scrollIndex

◆ scrollPosition

◆ textDirection

◆ textSelectionBase

◆ textSelectionExtent

◆ tooltip

◆ transform

◆ traversalParent

◆ validationResult

SemanticsValidationResult flutter::SemanticsNode::validationResult = SemanticsValidationResult::kNone

Definition at line 172 of file semantics_node.h.

Referenced by flutter::SemanticsUpdateBuilder::updateNode().

◆ value

◆ valueAttributes


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