view dep/animone/src/win.cc @ 301:b1f625b0227c

*: convert all files CRLF -> LF some files were in DOS format, others were in unix. now everything (that at least is under our control) should all be the same format
author Paper <paper@paper.us.eu.org>
date Mon, 13 May 2024 15:04:51 -0400
parents 65df2813d0de
children a7d4e5107531
line wrap: on
line source

#include "animone/win.h"

#ifdef WIN32
#	include "animone/win/win32.h"
#endif

#ifdef MACOSX
#	include "animone/win/quartz.h"
#endif

#ifdef X11
#	include "animone/win/x11.h"
#endif

namespace animone::internal {

bool EnumerateWindows(window_proc_t window_proc) {
	bool success = false;

#ifdef WIN32
	success |= win32::EnumerateWindows(window_proc);
#endif

#ifdef MACOSX
	success |= quartz::EnumerateWindows(window_proc);
#endif

#ifdef X11
	success |= x11::EnumerateWindows(window_proc);
#endif

	return success;
}

} // namespace animone::internal