source: window.h @ 50031f0

release-1.7release-1.8release-1.9
Last change on this file since 50031f0 was 50031f0, checked in by David Benjamin <davidben@mit.edu>, 12 years ago
Rename map/unmap to hide/show to match GTK+ Also, the names make much more sense.
  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[e96b4ce]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
[50031f0]21void owl_window_show(owl_window *w, int recurse);
22void owl_window_hide(owl_window *w);
23int owl_window_is_shown(owl_window *w);
[ce7c6c3]24int owl_window_is_realized(owl_window *w);
[e96b4ce]25int owl_window_is_toplevel(owl_window *w);
26
27void owl_window_dirty(owl_window *w);
28void owl_window_dirty_children(owl_window *w);
29void owl_window_redraw_scheduled(void);
30
31void owl_window_get_position(owl_window *w, int *nlines, int *ncols, int *begin_y, int *begin_x);
32void owl_window_set_position(owl_window *w, int nlines, int ncols, int begin_y, int begin_x);
33void owl_window_move(owl_window *w, int begin_y, int begin_x);
34void owl_window_resize(owl_window *w, int nlines, int ncols);
35void owl_window_recompute_position(owl_window *w);
36
37void owl_window_top(owl_window *w);
38owl_window *owl_window_above(owl_window *w);
39owl_window *owl_window_below(owl_window *w);
40
41void owl_window_erase_cb(owl_window *w, WINDOW *win, void *user_data);
42
43#endif /* __BARNOWL_WINDOW_H__ */
Note: See TracBrowser for help on using the repository browser.