Acacia
ia_text.h
1 #ifndef LIB_IA2_IA_TEXT_H_
2 #define LIB_IA2_IA_TEXT_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 
13 class ACACIA_EXPORT IAText {
14  public:
15  IAText(Microsoft::WRL::ComPtr<IAccessibleText> iface) : iface_(iface) {}
16  ~IAText(){};
17 
18  bool isNull() { return !iface_; }
19  std::string toString();
20  long getCaretOffset();
21  long getNCharacters();
22  std::string getText(long start_offset, long end_offset);
23 
24  private:
25  Microsoft::WRL::ComPtr<IAccessibleText> iface_;
26 };
27 
28 } // namespace acacia
29 
30 #endif // LIB_IA2_IA_TEXT_H_
Definition: ia_text.h:13