comparison include/animone/a11y.h @ 23:1cfa7d57c022

dep/animone: add experimental accessibility strategy I also moved most of the functions out of util/win32.cc, because that file is meant for things that are shared between the different functions, and currently that is only wide string conversion helpers.
author Paper <paper@paper.us.eu.org>
date Wed, 19 Jun 2024 23:13:55 -0400
parents
children fac2b2d242d3
comparison
equal deleted inserted replaced
22:bc22d57076e3 23:1cfa7d57c022
1 #ifndef ANIMONE_ANIMONE_A11Y_H_
2 #define ANIMONE_ANIMONE_A11Y_H_
3
4 #include <functional>
5 #include <string>
6
7 #include "animone.h"
8
9 namespace animone {
10 namespace internal {
11
12 enum class WebBrowserInformationType {
13 Address,
14 Tab,
15 Title,
16 };
17
18 struct WebBrowserInformation {
19 WebBrowserInformationType type = WebBrowserInformationType::Title;
20 std::string value;
21 };
22
23 using web_browser_proc_t = std::function<void(const WebBrowserInformation&)>;
24
25 bool GetWebBrowserInformation(const Window& window, web_browser_proc_t web_browser_proc);
26
27 } // namespace internal
28 } // namespace animone
29
30 #endif // ANIMONE_ANIMONE_A11Y_H_