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 | void owl_window_unlink(owl_window *w); |
---|
13 | |
---|
14 | void owl_window_set_redraw_cb(owl_window *w, void (*cb)(owl_window*, WINDOW*, void*), void *cbdata, void (*cbdata_destroy)(void*)); |
---|
15 | void owl_window_set_size_cb(owl_window *w, void (*cb)(owl_window*, void*), void *cbdata, void (*cbdata_destroy)(void*)); |
---|
16 | void owl_window_set_destroy_cb(owl_window *w, void (*cb)(owl_window*, void*), void *cbdata, void (*cbdata_destroy)(void*)); |
---|
17 | |
---|
18 | void owl_window_children_foreach(owl_window *parent, GFunc func, gpointer user_data); |
---|
19 | void owl_window_children_foreach_onearg(owl_window *parent, void (*func)(owl_window*)); |
---|
20 | owl_window *owl_window_get_parent(owl_window *w); |
---|
21 | |
---|
22 | void owl_window_show(owl_window *w); |
---|
23 | void owl_window_show_all(owl_window *w); |
---|
24 | void owl_window_hide(owl_window *w); |
---|
25 | int owl_window_is_shown(owl_window *w); |
---|
26 | int owl_window_is_realized(owl_window *w); |
---|
27 | int owl_window_is_toplevel(owl_window *w); |
---|
28 | |
---|
29 | void owl_window_dirty(owl_window *w); |
---|
30 | void owl_window_dirty_children(owl_window *w); |
---|
31 | void owl_window_redraw_scheduled(void); |
---|
32 | |
---|
33 | void owl_window_get_position(owl_window *w, int *nlines, int *ncols, int *begin_y, int *begin_x); |
---|
34 | void owl_window_set_position(owl_window *w, int nlines, int ncols, int begin_y, int begin_x); |
---|
35 | void owl_window_move(owl_window *w, int begin_y, int begin_x); |
---|
36 | void owl_window_resize(owl_window *w, int nlines, int ncols); |
---|
37 | void owl_window_recompute_position(owl_window *w); |
---|
38 | |
---|
39 | void owl_window_top(owl_window *w); |
---|
40 | owl_window *owl_window_above(owl_window *w); |
---|
41 | owl_window *owl_window_below(owl_window *w); |
---|
42 | |
---|
43 | void owl_window_erase_cb(owl_window *w, WINDOW *win, void *user_data); |
---|
44 | |
---|
45 | #endif /* __BARNOWL_WINDOW_H__ */ |
---|