Lines Matching defs:panel
52 panel_window(PANEL *panel)
54 return (panel ? panel -> win : 0);
59 panel_userptr(PANEL *panel)
61 return (panel ? panel -> user : 0);
66 set_panel_userptr(PANEL *panel, char *ptr)
68 if (panel) {
69 panel -> user = ptr;
76 * panel_above - Return the panel above the
77 * given panel (or the bottom panel in 0)
80 panel_above(PANEL *panel)
83 if (!panel)
86 return ((panel == panel -> below) ? ((PANEL *) 0) : panel -> above);
91 * panel_below - Return the panel below the
92 * given panel (or the top panel in 0)
95 panel_below(PANEL *panel)
98 if (!panel)
101 return ((panel == panel -> below) ? ((PANEL *) 0) : panel -> below);
104 /* panel_hidden - Return TRUE if the panel is hidden, FALSE if not. */
106 panel_hidden(PANEL *panel)
108 return ((!panel || (panel != panel -> below)) ? FALSE : TRUE);
131 * in the first panel which refers the second panel.
134 _unlink_obs(PANEL *pnl, PANEL *panel)
139 if (!pnl -> obscured || !_panels_intersect(pnl, panel))
147 while (obs->panel_p != panel && obs != pnl->obscured);
148 if (obs -> panel_p != panel) {
150 fprintf(stderr, "_unlink_obs: Obscured panel lost\n");
166 * add_obs - Add an obscured node to a panel, ensuring
170 add_obs(PANEL *panel, _obscured_list *obs)
176 if ((prev_obs = panel -> obscured) == 0) {
177 panel -> obscured = obs -> next = obs;
183 for (pnl = _Top_panel; pnl != panel; pnl = pnl->below) {
187 if (prev_obs == panel -> obscured) {
188 panel -> obscured = obs;
201 * Create an obscured node for each panel that the given panel intersects.
202 * The overlap record is always attached to the panel which is covered up.
208 _intersect_panel(PANEL *panel)
217 if (pnl == panel) {
222 if (!_panels_intersect(pnl, panel))
226 obs->start = (panel->wstarty >= pnl->wstarty) ?
227 panel->wstarty : pnl->wstarty;
228 obs->end = (panel->wendy <= pnl->wendy) ?
229 panel->wendy : pnl->wendy;
233 if (panel -> obscured) {
234 obs -> next = panel -> obscured -> next;
235 panel -> obscured -> next = obs;
237 obs -> next = panel -> obscured = obs;
239 obs -> panel_p = panel;
249 * panel. The obscured nodes must be pre-allocated by this routine