source: window.h @ 402ed3d3

release-1.7release-1.8release-1.9
Last change on this file since 402ed3d3 was 402ed3d3, checked in by David Benjamin <davidben@mit.edu>, 11 years ago
Use two functions: show/show_all instead of recurse flag It's more readable, and matches GTK.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1#ifndef __BARNOWL_WINDOW_H__
2#define __BARNOWL_WINDOW_H__
3
4#include <glib.h>
5
6typedef struct _owl_window owl_window;
7
8owl_window *owl_window_get_screen(void);
9
10owl_window *owl_window_new(owl_window *parent);
11void owl_window_delete(owl_window *w);
12
13void owl_window_set_redraw_cb(owl_window *w, void (*cb)(owl_window*, WINDOW*, void*), void *cbdata, void (*cbdata_destroy)(void*));
14void owl_window_set_size_cb(owl_window *w, void (*cb)(owl_window*, void*), void *cbdata, void (*cbdata_destroy)(void*));
15void owl_window_set_destroy_cb(owl_window *w, void (*cb)(owl_window*, void*), void *cbdata, void (*cbdata_destroy)(void*));
16
17void owl_window_children_foreach(owl_window *parent, GFunc func, gpointer user_data);
18void owl_window_children_foreach_onearg(owl_window *parent, void (*func)(owl_window*));
19owl_window *owl_window_get_parent(owl_window *w);
20
21void owl_window_show(owl_window *w);
22void owl_window_show_all(owl_window *w);
23void owl_window_hide(owl_window *w);
24int owl_window_is_shown(owl_window *w);
25int owl_window_is_realized(owl_window *w);
26int owl_window_is_toplevel(owl_window *w);
27
28void owl_window_dirty(owl_window *w);
29void owl_window_dirty_children(owl_window *w);
30void owl_window_redraw_scheduled(void);
31
32void owl_window_get_position(owl_window *w, int *nlines, int *ncols, int *begin_y, int *begin_x);
33void owl_window_set_position(owl_window *w, int nlines, int ncols, int begin_y, int begin_x);
34void owl_window_move(owl_window *w, int begin_y, int begin_x);
35void owl_window_resize(owl_window *w, int nlines, int ncols);
36void owl_window_recompute_position(owl_window *w);
37
38void owl_window_top(owl_window *w);
39owl_window *owl_window_above(owl_window *w);
40owl_window *owl_window_below(owl_window *w);
41
42void owl_window_erase_cb(owl_window *w, WINDOW *win, void *user_data);
43
44#endif /* __BARNOWL_WINDOW_H__ */
Note: See TracBrowser for help on using the repository browser.