bottom_panel(PANEL * pan) { int err = OK; T((T_CALLED("bottom_panel(%p)"), pan)); if (pan) { if (!Is_Bottom(pan)) { dBug(("--> bottom_panel %s", USER_PTR(pan->user))); HIDE_PANEL(pan, err, OK); assert(_nc_bottom_panel == _nc_stdscr_pseudo_panel); dStack("<lb%d>", 1, pan); pan->below = _nc_bottom_panel; pan->above = _nc_bottom_panel->above; if (pan->above) pan->above->below = pan; _nc_bottom_panel->above = pan; dStack("<lb%d>", 9, pan); } } else err = ERR; returnCode(err); }
show_panel(PANEL * pan) { int err = ERR; T((T_CALLED("show_panel(%p)"), (void *)pan)); if (pan) { GetHook(pan); if (Is_Top(pan)) returnCode(OK); dBug(("--> show_panel %s", USER_PTR(pan->user))); HIDE_PANEL(pan, err, OK); dStack("<lt%d>", 1, pan); assert(_nc_bottom_panel == _nc_stdscr_pseudo_panel); _nc_top_panel->above = pan; pan->below = _nc_top_panel; pan->above = (PANEL *) 0; _nc_top_panel = pan; err = OK; dStack("<lt%d>", 9, pan); } returnCode(err); }
del_panel (PANEL *pan) { int err = OK; if(pan) { dBug(("--> del_panel %s", USER_PTR(pan->user))); HIDE_PANEL(pan,err,OK); free((void *)pan); } else err = ERR; return(err); }
del_panel(PANEL * pan) { int err = OK; T((T_CALLED("del_panel(%p)"), pan)); if (pan) { dBug(("--> del_panel %s", USER_PTR(pan->user))); HIDE_PANEL(pan, err, OK); free((void *)pan); } else err = ERR; returnCode(err); }
hide_panel(register PANEL * pan) { int err = OK; T((T_CALLED("hide_panel(%p)"), pan)); if (!pan) returnCode(ERR); dBug(("--> hide_panel %s", USER_PTR(pan->user))); dStack("<u%d>", 1, pan); HIDE_PANEL(pan, err, ERR); dStack("<u%d>", 9, pan); returnCode(err); }
int hide_panel(register PANEL *pan) { int err = OK; if(!pan) return(ERR); dBug(("--> hide_panel %s", USER_PTR(pan->user))); dStack("<u%d>",1,pan); HIDE_PANEL(pan,err,TRUE); dStack("<u%d>",9,pan); return(err); }
hide_panel(register PANEL * pan) { int err = ERR; T((T_CALLED("hide_panel(%p)"), (void *)pan)); if (pan) { GetHook(pan); dBug(("--> hide_panel %s", USER_PTR(pan->user))); dStack("<u%d>", 1, pan); HIDE_PANEL(pan, err, ERR); err = OK; dStack("<u%d>", 9, pan); } returnCode(err); }