Acacia
ia_component.h
1 #ifndef LIB_IA2_IA_COMPONENT_H_
2 #define LIB_IA2_IA_COMPONENT_H_
3 
4 #include <string>
5 
6 #include <wrl/client.h>
7 
8 #include "acacia/export.h"
9 #include "third_party/ia2/include/ia2/ia2_api_all.h"
10 
11 namespace acacia {
12 
20 class ACACIA_EXPORT IAComponent {
21  public:
22  IAComponent(Microsoft::WRL::ComPtr<IAccessibleComponent> iface)
23  : iface_(iface) {}
24  ~IAComponent(){};
25 
31  bool isNull() { return !iface_; }
32 
38  std::string toString();
39 
45  std::string getBackground();
46 
52  std::string getForeground();
53 
61  std::pair<long, long> getLocationInParent();
62 
63  private:
64  Microsoft::WRL::ComPtr<IAccessibleComponent> iface_;
65 };
66 
67 } // namespace acacia
68 
69 #endif // LIB_IA2_IA_COMPONENT_H_
Definition: ia_component.h:20
std::string toString()
std::string getBackground()
std::pair< long, long > getLocationInParent()
std::string getForeground()
bool isNull()
Definition: ia_component.h:31