source: windowcb.c @ 38e2250

release-1.10release-1.7release-1.8release-1.9
Last change on this file since 38e2250 was 853f397, checked in by David Benjamin <davidben@mit.edu>, 15 years ago
Make mainpanel's fill_parent_cb also generic
  • Property mode set to 100644
File size: 418 bytes
Line 
1#include "owl.h"
2
3void owl_window_erase_cb(owl_window *w, WINDOW *win, void *user_data)
4{
5  werase(win);
6  owl_window_dirty_children(w);
7}
8
9void owl_window_fill_parent_cb(owl_window *parent, void *user_data)
10{
11  int lines, cols;
12  owl_window *window = user_data;
13
14  /* Make this panel full-screen */
15  owl_window_get_position(parent, &lines, &cols, NULL, NULL);
16  owl_window_set_position(window, lines, cols, 0, 0);
17}
Note: See TracBrowser for help on using the repository browser.