source: window.h @ 3da1f4f

release-1.10release-1.7release-1.8release-1.9
Last change on this file since 3da1f4f was 3da1f4f, checked in by David Benjamin <davidben@mit.edu>, 14 years ago
Export owl_window_unlink
  • 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);
12void owl_window_unlink(owl_window *w);
13
14void owl_window_set_redraw_cb(owl_window *w, void (*cb)(owl_window*, WINDOW*, void*), void *cbdata, void (*cbdata_destroy)(void*));
15void owl_window_set_size_cb(owl_window *w, void (*cb)(owl_window*, void*), void *cbdata, void (*cbdata_destroy)(void*));
16void owl_window_set_destroy_cb(owl_window *w, void (*cb)(owl_window*, void*), void *cbdata, void (*cbdata_destroy)(void*));
17
18void owl_window_children_foreach(owl_window *parent, GFunc func, gpointer user_data);
19void owl_window_children_foreach_onearg(owl_window *parent, void (*func)(owl_window*));
20owl_window *owl_window_get_parent(owl_window *w);
21
22void owl_window_show(owl_window *w);
23void owl_window_show_all(owl_window *w);
24void owl_window_hide(owl_window *w);
25int owl_window_is_shown(owl_window *w);
26int owl_window_is_realized(owl_window *w);
27int owl_window_is_toplevel(owl_window *w);
28
29void owl_window_dirty(owl_window *w);
30void owl_window_dirty_children(owl_window *w);
31void owl_window_redraw_scheduled(void);
32
33void owl_window_get_position(owl_window *w, int *nlines, int *ncols, int *begin_y, int *begin_x);
34void owl_window_set_position(owl_window *w, int nlines, int ncols, int begin_y, int begin_x);
35void owl_window_move(owl_window *w, int begin_y, int begin_x);
36void owl_window_resize(owl_window *w, int nlines, int ncols);
37void owl_window_recompute_position(owl_window *w);
38
39void owl_window_top(owl_window *w);
40owl_window *owl_window_above(owl_window *w);
41owl_window *owl_window_below(owl_window *w);
42
43void owl_window_erase_cb(owl_window *w, WINDOW *win, void *user_data);
44
45#endif /* __BARNOWL_WINDOW_H__ */
Note: See TracBrowser for help on using the repository browser.