1 /*
2  * This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
3  * It is copyright by its individual contributors, as recorded in the
4  * project's Git history.  See COPYING.txt at the top level for license
5  * terms and a link to the Git history.
6  */
7 
8 #pragma once
9 
10 #ifdef __cplusplus
11 #include "fwd-event.h"
12 #include "fwd-gr.h"
13 
14 #ifdef dsx
15 namespace dsx {
16 
17 struct arch_atexit
18 {
19 	~arch_atexit();
20 };
21 
22 [[nodiscard]]
23 arch_atexit arch_init();
24 }
25 #endif
26 namespace dcx {
27 
28 class window;
29 
30 int window_close(window *wind);
31 window *window_get_front();
32 window *window_get_first();
33 window *window_get_next(window &wind);
34 window *window_get_prev(window &wind);
35 void window_select(window &wind);
36 #if !DXX_USE_OGL
37 void window_update_canvases();
38 #endif
39 
40 #define WINDOW_SEND_EVENT(w)	((WINDOW_SEND_EVENT)(*w, event, __FILE__, __LINE__))
41 
42 }
43 
44 #endif
45