Mercurial > minori
annotate dep/animone/src/win.cc @ 267:09c5bd74fe93
win32: make builds work again
| author | Paper <paper@paper.us.eu.org> | 
|---|---|
| date | Thu, 11 Apr 2024 23:39:18 -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 | 
