view dep/animia/src/win.cc @ 223:84e0a3c4737a

library: implement menu bar buttons I also went ahead and put the links from Taiga in so I don't have to worry about it later...
author Paper <mrpapersonic@gmail.com>
date Mon, 08 Jan 2024 16:54:16 -0500
parents 9f3534f6b8c4
children
line wrap: on
line source

#include "animia/win.h"

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

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

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

#ifdef WAYLAND
#	include "animia/win/wayland.h"
#endif

namespace animia::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

#ifdef WAYLAND
	success |= wayland::EnumerateWindows(window_proc);
#endif

	return success;
}

} // namespace animia::internal