Acacia
acacia::AXAPINode Class Reference

#include <axapi_node.h>

Public Member Functions

 AXAPINode ()
 
 AXAPINode (const AXAPINode &other)
 
AXAPINodeoperator= (AXAPINode other)
 
bool isNull () const
 
std::vector< std::string > getAttributeNames () const
 
bool hasAttribute (const std::string &attribute) const
 
ValueType getValueType (const std::string &attribute) const
 
ValueType getListElementType (const std::string &attribute) const
 
int getListElementCount (const std::string &attribute) const
 
bool getBooleanValue (const std::string &attribute) const
 
int getIntValue (const std::string &attribute) const
 
float getFloatValue (const std::string &attribute) const
 
std::string getStringValue (const std::string &attribute) const
 
std::string getURLValue (const std::string &attribute) const
 
AXAPINode getNodeValue (const std::string &attribute) const
 
Point getPointValue (const std::string &attribute) const
 
Size getSizeValue (const std::string &attribute) const
 
Rect getRectValue (const std::string &attribute) const
 
Range getRangeValue (const std::string &attribute) const
 
std::vector< AXAPINodegetNodeListValue (const std::string &attribute) const
 
AXAPINode getNodeListValueAtIndex (const std::string &attribute, int index) const
 
std::vector< std::string > getStringListValue (const std::string &attribute) const
 
std::string getStringListValueAtIndex (const std::string &attribute, int index) const
 
std::vector< RangegetRangeListValue (const std::string &attribute) const
 
Range getRangeListValueAtIndex (const std::string &attribute, int index) const
 
std::vector< DictionarygetDictionaryListValue (const std::string &attribute) const
 
Dictionary getDictionaryListValueAtIndex (const std::string &attribute, int index) const
 

Friends

class AXAPIContextImpl
 
class Dictionary
 
AXAPINode findRootAXAPINodeForPID (int pid)
 
AXAPINode findRootAXAPINodeForName (const std::string &name)
 

Detailed Description

Represents a node in the macOS (AX API) accessibility tree.

Each valid AXAPINode wraps a single AXUIElementRef.

Friends And Related Function Documentation

◆ findRootAXAPINodeForName

AXAPINode findRootAXAPINodeForName ( const std::string &  name)
friend

Returns the root node of the tree of a running application with the given name.

Returns
An AXAPINode representing the root accessibility object for an application whose name matches the given name, or a null AXAPINode if no such application exists.

◆ findRootAXAPINodeForPID

AXAPINode findRootAXAPINodeForPID ( int  pid)
friend

Returns the root node of the tree of a running application with the given PID.

Returns
An AXAPINode representing the root accessibility object for the application with the given PID, or a null AXAPINode if no such application exists.

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