1209513Simp/**************************************************************************** 2209513Simp * Copyright 2020 Thomas E. Dickey * 3209552Simp * Copyright 1998-2009,2010 Free Software Foundation, Inc. * 4209513Simp * * 5209513Simp * Permission is hereby granted, free of charge, to any person obtaining a * 6209513Simp * copy of this software and associated documentation files (the * 7209513Simp * "Software"), to deal in the Software without restriction, including * 8209513Simp * without limitation the rights to use, copy, modify, merge, publish, * 9209513Simp * distribute, distribute with modifications, sublicense, and/or sell * 10209513Simp * copies of the Software, and to permit persons to whom the Software is * 11209513Simp * furnished to do so, subject to the following conditions: * 12209513Simp * * 13209513Simp * The above copyright notice and this permission notice shall be included * 14209513Simp * in all copies or substantial portions of the Software. * 15209513Simp * * 16209513Simp * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 17209513Simp * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 18209513Simp * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 19209513Simp * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 20209513Simp * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 21209513Simp * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 22209513Simp * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 23209513Simp * * 24209513Simp * Except as contained in this notice, the name(s) of the above copyright * 25209513Simp * holders shall not be used in advertising or otherwise to promote the * 26209513Simp * sale, use or other dealings in this Software without prior written * 27209513Simp * authorization. * 28209513Simp ****************************************************************************/ 29209513Simp 30209513Simp/**************************************************************************** 31209513Simp * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1995 * 32209513Simp * and: Eric S. Raymond <esr@snark.thyrsus.com> * 33209513Simp * and: Juergen Pfeifer 1997-1999,2008 * 34209513Simp ****************************************************************************/ 35209513Simp 36209513Simp/* p_hidden.c 37209513Simp * Test whether or not panel is hidden 38209513Simp */ 39209513Simp#include "panel.priv.h" 40209513Simp 41209513SimpMODULE_ID("$Id: p_hidden.c,v 1.11 2020/05/24 01:40:20 anonymous.maarten Exp $") 42209513Simp 43209513SimpPANEL_EXPORT(int) 44209513Simppanel_hidden(const PANEL * pan) 45209513Simp{ 46209513Simp int rc = ERR; 47209513Simp 48209513Simp T((T_CALLED("panel_hidden(%p)"), (const void *)pan)); 49209513Simp if (pan) 50209513Simp { 51209513Simp GetHook(pan); 52209513Simp rc = (IS_LINKED(pan) ? FALSE : TRUE); 53209513Simp } 54209513Simp returnCode(rc); 55209513Simp} 56209513Simp