Flutter Engine
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 label
 
std::string hint
 
std::string value
 
std::string increasedValue
 
std::string decreasedValue
 
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 87 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.

References actions.

Referenced by flutter_runner::AccessibilityBridge::SetSemanticsEnabled().

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

◆ HasFlag()

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

Definition at line 23 of file semantics_node.cc.

References flags.

Referenced by flutter::CreateObject(), flutter::DidFlagChange(), and flutter_runner::AccessibilityBridge::SetSemanticsEnabled().

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

◆ IsPlatformViewNode()

bool flutter::SemanticsNode::IsPlatformViewNode ( ) const

Member Data Documentation

◆ actions

◆ childrenInHitTestOrder

◆ childrenInTraversalOrder

◆ currentValueLength

int32_t flutter::SemanticsNode::currentValueLength = -1

◆ customAccessibilityActions

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

◆ decreasedValue

std::string flutter::SemanticsNode::decreasedValue

◆ elevation

double flutter::SemanticsNode::elevation = 0.0

◆ flags

◆ hint

std::string flutter::SemanticsNode::hint

◆ id

◆ increasedValue

std::string flutter::SemanticsNode::increasedValue

◆ label

◆ maxValueLength

int32_t flutter::SemanticsNode::maxValueLength = -1

◆ platformViewId

int32_t flutter::SemanticsNode::platformViewId = -1

◆ rect

◆ scrollChildren

int32_t flutter::SemanticsNode::scrollChildren = 0

◆ scrollExtentMax

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

◆ scrollExtentMin

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

◆ scrollIndex

int32_t flutter::SemanticsNode::scrollIndex = 0

◆ scrollPosition

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

◆ textDirection

int32_t flutter::SemanticsNode::textDirection = 0

◆ textSelectionBase

int32_t flutter::SemanticsNode::textSelectionBase = -1

◆ textSelectionExtent

int32_t flutter::SemanticsNode::textSelectionExtent = -1

◆ thickness

double flutter::SemanticsNode::thickness = 0.0

◆ transform

◆ value


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