source: windowcb.c @ 0d53dfb

release-1.7release-1.8release-1.9
Last change on this file since 0d53dfb was 853f397, checked in by David Benjamin <davidben@mit.edu>, 11 years ago
Make mainpanel's fill_parent_cb also generic
  • Property mode set to 100644
File size: 418 bytes
RevLine 
[8f9a044]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}
[853f397]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.