Lines Matching defs:panel
31 /* A panels subsystem built on curses--Delete panel routines */
42 /* hide_panel - Unlink a panel from the pile and remove it from the screen. */
44 hide_panel(PANEL *panel)
46 if (!panel)
49 /* It is ok to hide a panel that is already hidden. */
51 if (panel == panel -> below)
54 /* unlink panel */
56 _remove_overlap(panel);
57 if (panel == _Bottom_panel)
58 _Bottom_panel = panel -> above;
60 panel -> below -> above = panel -> above;
62 if (panel == _Top_panel)
63 _Top_panel = panel -> below;
65 panel -> above -> below = panel -> below;
68 panel -> below = panel;
73 * del_panel - Delete a panel from the pile
77 del_panel(PANEL *panel)
79 return ((hide_panel(panel) == OK) ? free(panel), OK : ERR);
84 * Remove all references to a panel from the obscured lists of all panels.
85 * Also remove all obscured nodes from the given panel. This routine
90 _remove_overlap(PANEL *panel)
98 (void) touchline(stdscr, panel->wstarty,
99 panel->wendy - panel->wstarty + 1);
101 /* Remove all references to the panel from the remaining panels */
103 for (pnl = _Bottom_panel; pnl != panel; pnl = pnl->above) {
104 if (obs = _unlink_obs(pnl, panel))
108 /* delete the obscured list from the panel */
110 if ((obs = panel -> obscured) != 0) {
116 while (obs != panel -> obscured);
117 panel -> obscured = 0;