Classes | |
| class | acacia::AXAPINode |
Enumerations | |
| enum class | acacia::ValueType { NOT_PRESENT , UNKNOWN , LIST , BOOLEAN , INT , FLOAT , STRING , URL , NODE , POINT , SIZE , RECT , RANGE , DICTIONARY , DATA , TEXTMARKER , TEXTMARKERRANGE } |
Functions | |
| AXAPINode | acacia::findRootAXAPINodeForPID (int pid) |
| AXAPINode | acacia::findRootAXAPINodeForName (const std::string &name) |
| acacia::AXAPINode::AXAPINode () | |
| bool | acacia::AXAPINode::isNull () const |
| std::vector< std::string > | acacia::AXAPINode::getAttributeNames () const |
| bool | acacia::AXAPINode::hasAttribute (const std::string &attribute) const |
| ValueType | acacia::AXAPINode::getValueType (const std::string &attribute) const |
| ValueType | acacia::AXAPINode::getListElementType (const std::string &attribute) const |
| int | acacia::AXAPINode::getListElementCount (const std::string &attribute) const |
| bool | acacia::AXAPINode::getBooleanValue (const std::string &attribute) const |
| int | acacia::AXAPINode::getIntValue (const std::string &attribute) const |
| float | acacia::AXAPINode::getFloatValue (const std::string &attribute) const |
| std::string | acacia::AXAPINode::getStringValue (const std::string &attribute) const |
| std::string | acacia::AXAPINode::getURLValue (const std::string &attribute) const |
| AXAPINode | acacia::AXAPINode::getNodeValue (const std::string &attribute) const |
| Point | acacia::AXAPINode::getPointValue (const std::string &attribute) const |
| Size | acacia::AXAPINode::getSizeValue (const std::string &attribute) const |
| Rect | acacia::AXAPINode::getRectValue (const std::string &attribute) const |
| Range | acacia::AXAPINode::getRangeValue (const std::string &attribute) const |
| std::vector< AXAPINode > | acacia::AXAPINode::getNodeListValue (const std::string &attribute) const |
| AXAPINode | acacia::AXAPINode::getNodeListValueAtIndex (const std::string &attribute, int index) const |
| std::vector< std::string > | acacia::AXAPINode::getStringListValue (const std::string &attribute) const |
| std::string | acacia::AXAPINode::getStringListValueAtIndex (const std::string &attribute, int index) const |
| std::vector< Range > | acacia::AXAPINode::getRangeListValue (const std::string &attribute) const |
| Range | acacia::AXAPINode::getRangeListValueAtIndex (const std::string &attribute, int index) const |
| std::vector< Dictionary > | acacia::AXAPINode::getDictionaryListValue (const std::string &attribute) const |
| Dictionary | acacia::AXAPINode::getDictionaryListValueAtIndex (const std::string &attribute, int index) const |
Accessiblity API for MacOS
|
strong |
Represents the types that various polymorphic getters may return.
| Enumerator | |
|---|---|
| UNKNOWN | There is no value for the given parameter on this object. |
| LIST | The value type couldn't be deduced. |
| BOOLEAN | The value is a CFArrayRef. Values of this type are converted to a std::vector. |
| INT | The value is a boolean. |
| FLOAT | The value is an int. |
| STRING | The value is a float. |
| URL | The value is a CFStringRef. Values of this type are converted to std::string. |
| NODE | The value is a CFURLRef. Values of this type are converted to std::string. |
| POINT | The value is an AXUIElementRef. Values of this type are converted to an AXAPINode. |
| SIZE | The value is a CGPoint. Values of this type are converted to a Point. |
| RECT | The value is a CGSize. Values of this type are converted to a Size. |
| RANGE | The value is a CGRect. Values of this type are converted to a Rect. |
| DICTIONARY | The value is a CFRange. Values of this type are converted to a Range. |
| DATA | The value is a CFDictionary. Values of this type are converted to a Dictionary. |
| TEXTMARKER | The value is a CFDataRef. |
| TEXTMARKERRANGE | The value is an AXTextMarker. |
| acacia::AXAPINode::AXAPINode | ( | ) |
Constructs a null AXAPINode.
Note: This is required for SWIG bindings to compile, but creates a node which doesn't wrap an AXUIElementRef, and will cause a crash when any of the accessor methods which depend on a valid AXUIElementRef are called.
| AXAPINode acacia::findRootAXAPINodeForName | ( | const std::string & | name | ) |
| AXAPINode acacia::findRootAXAPINodeForPID | ( | int | pid | ) |
| std::vector<std::string> acacia::AXAPINode::getAttributeNames | ( | ) | const |
Wraps AXUIElementCopyAttributeNames().
| bool acacia::AXAPINode::getBooleanValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::BOOLEAN.
| std::vector<Dictionary> acacia::AXAPINode::getDictionaryListValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the values for an attribute whose value is a ValueType::LIST whose elements are ValueType::DICTIONARY values.
| Dictionary acacia::AXAPINode::getDictionaryListValueAtIndex | ( | const std::string & | attribute, |
| int | index | ||
| ) | const |
Wraps AXUIElementCopyAttributeValues.
Gets the individual value at the given index for an attribute whose value is a ValueType::LIST whose elements are ValueType::DICTIONARY values.
| float acacia::AXAPINode::getFloatValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::FLOAT.
| int acacia::AXAPINode::getIntValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::INT.
| int acacia::AXAPINode::getListElementCount | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementGetAttributeValueCount.
For attributes whose value is a ValueType::LIST, gets the number of list elements.
| ValueType acacia::AXAPINode::getListElementType | ( | const std::string & | attribute | ) | const |
For attributes whose value is a ValueType::LIST, deduces the type of the list elements.
| std::vector<AXAPINode> acacia::AXAPINode::getNodeListValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValues.
Gets the values for an attribute whose value is a ValueType::LIST whose elements are ValueType::NODE values.
| AXAPINode acacia::AXAPINode::getNodeListValueAtIndex | ( | const std::string & | attribute, |
| int | index | ||
| ) | const |
Wraps AXUIElementCopyAttributeValues.
Gets the individual value at the given index for an attribute whose value is a ValueType::LIST whose elements are ValueType::NODE values.
| AXAPINode acacia::AXAPINode::getNodeValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::NODE.
| Point acacia::AXAPINode::getPointValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::POINT.
| std::vector<Range> acacia::AXAPINode::getRangeListValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the values for an attribute whose value is a ValueType::LIST whose elements are ValueType::RANGE values.
| Range acacia::AXAPINode::getRangeListValueAtIndex | ( | const std::string & | attribute, |
| int | index | ||
| ) | const |
Wraps AXUIElementCopyAttributeValues.
Gets the individual value at the given index for an attribute whose value is a ValueType::LIST whose elements are ValueType::RANGE values.
| Range acacia::AXAPINode::getRangeValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::RANGE.
| Rect acacia::AXAPINode::getRectValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::RECT.
| Size acacia::AXAPINode::getSizeValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::SIZE.
| std::vector<std::string> acacia::AXAPINode::getStringListValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValues.
Gets the values for an attribute whose value is a ValueType::LIST whose elements are ValueType::STRING values.
| std::string acacia::AXAPINode::getStringListValueAtIndex | ( | const std::string & | attribute, |
| int | index | ||
| ) | const |
Wraps AXUIElementCopyAttributeValues.
Gets the individual value at the given index for an attribute whose value is a ValueType::LIST whose elements are ValueType::STRING values.
| std::string acacia::AXAPINode::getStringValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::STRING.
| std::string acacia::AXAPINode::getURLValue | ( | const std::string & | attribute | ) | const |
Wraps AXUIElementCopyAttributeValue.
Gets the value for an attribute whose value is a ValueType::URL.
| ValueType acacia::AXAPINode::getValueType | ( | const std::string & | attribute | ) | const |
Deduces the type of the given attribute's value on this accessibility object. This can be used to call the correct getter.
Note: Some attributes, such as "AXValue", have values of different types depending on the role of the accessibility object.
| bool acacia::AXAPINode::hasAttribute | ( | const std::string & | attribute | ) | const |
Checks whether the given attribute is present on this accessibility object.