From 97d24e6a1b1fe8d2a4e217f9ee3f82a1accf468a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 17 Jan 2025 12:44:14 +0100 Subject: Expose mgl_for_each_active_monitor_output --- include/mgl/window/window.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h index a5ccbf7..748e728 100644 --- a/include/mgl/window/window.h +++ b/include/mgl/window/window.h @@ -187,4 +187,7 @@ void mgl_window_flush(mgl_window *self); void* mgl_window_get_egl_display(mgl_window *self); void* mgl_window_get_egl_context(mgl_window *self); +typedef void (*mgl_active_monitor_callback)(const mgl_monitor *monitor, void *userdata); +void mgl_for_each_active_monitor_output(void *display, mgl_active_monitor_callback callback, void *userdata); + #endif /* MGL_WINDOW_H */ -- cgit v1.2.3