1 | #ifndef __BARNOWL_WINDOW_H__ |
---|
2 | #define __BARNOWL_WINDOW_H__ |
---|
3 | |
---|
4 | #include <glib.h> |
---|
5 | |
---|
6 | typedef struct _owl_window owl_window; |
---|
7 | |
---|
8 | owl_window *owl_window_get_screen(void); |
---|
9 | |
---|
10 | owl_window *owl_window_new(owl_window *parent); |
---|
11 | void owl_window_delete(owl_window *w); |
---|
12 | |
---|
13 | void owl_window_set_redraw_cb(owl_window *w, void (*cb)(owl_window*, WINDOW*, void*), void *cbdata, void (*cbdata_destroy)(void*)); |
---|
14 | void owl_window_set_size_cb(owl_window *w, void (*cb)(owl_window*, void*), void *cbdata, void (*cbdata_destroy)(void*)); |
---|
15 | void owl_window_set_destroy_cb(owl_window *w, void (*cb)(owl_window*, void*), void *cbdata, void (*cbdata_destroy)(void*)); |
---|
16 | |
---|
17 | void owl_window_children_foreach(owl_window *parent, GFunc func, gpointer user_data); |
---|
18 | void owl_window_children_foreach_onearg(owl_window *parent, void (*func)(owl_window*)); |
---|
19 | owl_window *owl_window_get_parent(owl_window *w); |
---|
20 | |
---|
21 | void owl_window_map(owl_window *w, int recurse); |
---|
22 | void owl_window_unmap(owl_window *w); |
---|
23 | int owl_window_is_mapped(owl_window *w); |
---|
24 | int owl_window_is_visible(owl_window *w); |
---|
25 | int owl_window_is_toplevel(owl_window *w); |
---|
26 | |
---|
27 | void owl_window_dirty(owl_window *w); |
---|
28 | void owl_window_dirty_children(owl_window *w); |
---|
29 | void owl_window_redraw_scheduled(void); |
---|
30 | |
---|
31 | void owl_window_get_position(owl_window *w, int *nlines, int *ncols, int *begin_y, int *begin_x); |
---|
32 | void owl_window_set_position(owl_window *w, int nlines, int ncols, int begin_y, int begin_x); |
---|
33 | void owl_window_move(owl_window *w, int begin_y, int begin_x); |
---|
34 | void owl_window_resize(owl_window *w, int nlines, int ncols); |
---|
35 | void owl_window_recompute_position(owl_window *w); |
---|
36 | |
---|
37 | void owl_window_top(owl_window *w); |
---|
38 | owl_window *owl_window_above(owl_window *w); |
---|
39 | owl_window *owl_window_below(owl_window *w); |
---|
40 | |
---|
41 | void owl_window_erase_cb(owl_window *w, WINDOW *win, void *user_data); |
---|
42 | |
---|
43 | #endif /* __BARNOWL_WINDOW_H__ */ |
---|