Mercurial > minori
comparison dep/animia/include/animia.h @ 156:cdf79282d647
dep/animia: add VERY early x11 window stuff
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 15 Nov 2023 18:04:04 -0500 |
| parents | 8700806c2cc2 |
| children |
comparison
equal
deleted
inserted
replaced
| 155:d2bbb5773616 | 156:cdf79282d647 |
|---|---|
| 11 Process, | 11 Process, |
| 12 Window | 12 Window |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 struct Process { | 15 struct Process { |
| 16 internal::pid_t pid = 0; | 16 internal::pid_t pid = 0; |
| 17 std::string name; | 17 std::string name; |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 struct Window { | 20 struct Window { |
| 21 unsigned int id = 0; | 21 unsigned int id = 0; |
| 22 std::string class_name; | 22 std::string class_name; |
| 23 std::string text; // title bar text | 23 std::string text; // title bar text |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 struct Result { | 26 struct Result { |
| 27 ResultType type; | 27 ResultType type; |
| 28 Player player; | 28 Player player; |
| 29 Process process; // unused when using window_title. it's dumb, blame X11 | 29 Process process; // unused when using window_title. it's dumb, blame X11 |
| 30 Window window; // unused with file descriptors | 30 Window window; // unused with file descriptors |
| 31 std::vector<Media> media; | 31 std::vector<Media> media; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 bool GetResults(const std::vector<Player>& players, std::vector<Result>& results); | 34 bool GetResults(const std::vector<Player>& players, std::vector<Result>& results); |
| 35 | 35 |
| 36 } // namespace animia | 36 } // namespace animia |
