Mercurial > minori
annotate dep/animone/src/win.cc @ 279:657fda1b9cac
*: clean up enums
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Fri, 19 Apr 2024 13:24:06 -0400 |
| parents | 1a6a5d3a94cd |
| children | 65df2813d0de |
| rev | line source |
|---|---|
| 258 | 1 #include "animone/win.h" |
| 2 | |
| 3 #ifdef WIN32 | |
| 4 # include "animone/win/win32.h" | |
| 5 #endif | |
| 6 | |
| 7 #ifdef MACOSX | |
| 8 # include "animone/win/quartz.h" | |
| 9 #endif | |
| 10 | |
| 11 #ifdef X11 | |
| 12 # include "animone/win/x11.h" | |
| 13 #endif | |
| 14 | |
|
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
15 #include <iostream> |
|
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
16 |
| 258 | 17 namespace animone::internal { |
| 18 | |
| 19 bool EnumerateWindows(window_proc_t window_proc) { | |
| 20 bool success = false; | |
| 21 | |
|
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
22 std::cout << "enumerating windows" << std::endl; |
|
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
23 |
| 258 | 24 #ifdef WIN32 |
| 25 success |= win32::EnumerateWindows(window_proc); | |
| 26 #endif | |
| 27 | |
| 28 #ifdef MACOSX | |
| 29 success |= quartz::EnumerateWindows(window_proc); | |
| 30 #endif | |
| 31 | |
| 32 #ifdef X11 | |
| 33 success |= x11::EnumerateWindows(window_proc); | |
| 34 #endif | |
| 35 | |
| 36 return success; | |
| 37 } | |
| 38 | |
| 39 } // namespace animone::internal |
