Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
sksg::Node::ScopedFlag Class Reference

Public Member Functions

 ScopedFlag (Node *node, uint32_t flag)
 
 ~ScopedFlag ()
 
bool wasSet () const
 

Detailed Description

Definition at line 18 of file SkSGNode.cpp.

Constructor & Destructor Documentation

◆ ScopedFlag()

sksg::Node::ScopedFlag::ScopedFlag ( Node node,
uint32_t  flag 
)
inline

Definition at line 20 of file SkSGNode.cpp.

21 : fNode(node)
22 , fFlag(flag)
23 , fWasSet(node->fFlags & flag) {
24 node->fFlags |= flag;
25 }
FlutterSemanticsFlag flag

◆ ~ScopedFlag()

sksg::Node::ScopedFlag::~ScopedFlag ( )
inline

Definition at line 26 of file SkSGNode.cpp.

26 {
27 if (!fWasSet) {
28 fNode->fFlags &= ~fFlag;
29 }
30 }

Member Function Documentation

◆ wasSet()

bool sksg::Node::ScopedFlag::wasSet ( ) const
inline

Definition at line 32 of file SkSGNode.cpp.

32{ return fWasSet; }

The documentation for this class was generated from the following file: