FDOSTUI
FreeDOS Text User Interface
wm.hpp
Go to the documentation of this file.
1 /*
2  WM.HPP
3 
4  License CC0 PUBLIC DOMAIN
5 
6  To the extent possible under law, Mark J. Olesen has waived all copyright
7  and related or neighboring rights to FDOSTUI Library. This work is published
8  from: United States.
9 */
10 #ifndef __wm_hpp__
11 
12 #include "window.hpp"
13 
15 {
21 };
22 
23 extern enum wm_error
24 wm_init();
25 
26 extern void
27 wm_deinit();
28 
29 extern void
31  window*const i_window);
32 
33 extern enum wm_error
34 wm_run();
35 
36 extern enum event_response
38  widget& i_widget);
39 
40 extern void
41 wm_quit(
42  enum wm_error const i_reason);
43 
44 extern void
45 wm_draw(
46  window *const i_window);
47 
48 extern void
50  widget *const i_widget);
51 
52 extern window*const
53 wm_grab(
54  window*const i_window);
55 
56 extern void
58  window*const i_window);
59 
60 #define __wm_hpp__
61 #endif
contains window class
void wm_deinit()
return the system to it's initial state
Definition: wm.cpp:124
void wm_draw_widget(widget *const i_widget)
draw a widget
Definition: wm.cpp:199
enum wm_error wm_init()
initialize the FDOSTUI subsystem
Definition: wm.cpp:65
Definition: wm.hpp:16
Definition: wm.hpp:19
Definition: wm.hpp:18
base class for all derived widgets
Definition: widget.hpp:19
Definition: wm.hpp:17
enum wm_error wm_run()
enter the main loop
Definition: wm.cpp:466
void wm_draw(window *const i_window)
redraw window
Definition: wm.cpp:155
event_response
response
Definition: event.h:14
Definition: wm.hpp:20
void wm_quit(enum wm_error const i_reason)
signal the event manager to close down
Definition: wm.cpp:147
window *const wm_grab(window *const i_window)
grab the focus
Definition: wm.cpp:593
enum event_response wm_run_modal(widget &i_widget)
runs a widget as modal
Definition: wm.cpp:529
top level container widget that can be moved and resized by the user
Definition: window.hpp:19
void wm_register_window(window *const i_window)
add a window to the window manager
Definition: wm.cpp:269
wm_error
error codes
Definition: wm.hpp:14
void wm_unregister_window(window *const i_window)
remove a window from the window manager
Definition: wm.cpp:605