10SN/A/****************************************************************************
212306Svtewari * Copyright 2020 Thomas E. Dickey                                          *
30SN/A * Copyright 1998-2009,2010 Free Software Foundation, Inc.                  *
40SN/A *                                                                          *
50SN/A * Permission is hereby granted, free of charge, to any person obtaining a  *
60SN/A * copy of this software and associated documentation files (the            *
70SN/A * "Software"), to deal in the Software without restriction, including      *
80SN/A * without limitation the rights to use, copy, modify, merge, publish,      *
90SN/A * distribute, distribute with modifications, sublicense, and/or sell       *
100SN/A * copies of the Software, and to permit persons to whom the Software is    *
110SN/A * furnished to do so, subject to the following conditions:                 *
120SN/A *                                                                          *
130SN/A * The above copyright notice and this permission notice shall be included  *
140SN/A * in all copies or substantial portions of the Software.                   *
150SN/A *                                                                          *
160SN/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
170SN/A * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
180SN/A * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
191472SN/A * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
201472SN/A * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
211472SN/A * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
220SN/A * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
230SN/A *                                                                          *
240SN/A * Except as contained in this notice, the name(s) of the above copyright   *
250SN/A * holders shall not be used in advertising or otherwise to promote the     *
260SN/A * sale, use or other dealings in this Software without prior written       *
270SN/A * authorization.                                                           *
280SN/A ****************************************************************************/
290SN/A
300SN/A/****************************************************************************
310SN/A *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1995                    *
320SN/A *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
330SN/A *     and: Juergen Pfeifer                         1997-1999,2008          *
340SN/A ****************************************************************************/
350SN/A
368413SN/A/* p_hidden.c
378413SN/A * Test whether or not panel is hidden
380SN/A */
390SN/A#include "panel.priv.h"
400SN/A
410SN/AMODULE_ID("$Id: p_hidden.c,v 1.11 2020/05/24 01:40:20 anonymous.maarten Exp $")
420SN/A
430SN/APANEL_EXPORT(int)
440SN/Apanel_hidden(const PANEL * pan)
450SN/A{
460SN/A  int rc = ERR;
470SN/A
480SN/A  T((T_CALLED("panel_hidden(%p)"), (const void *)pan));
490SN/A  if (pan)
500SN/A    {
510SN/A      GetHook(pan);
520SN/A      rc = (IS_LINKED(pan) ? FALSE : TRUE);
530SN/A    }
540SN/A  returnCode(rc);
550SN/A}
560SN/A