150276Speter/****************************************************************************
2262629Sdelphij * Copyright (c) 1998-2006,2009 Free Software Foundation, Inc.              *
350276Speter *                                                                          *
450276Speter * Permission is hereby granted, free of charge, to any person obtaining a  *
550276Speter * copy of this software and associated documentation files (the            *
650276Speter * "Software"), to deal in the Software without restriction, including      *
750276Speter * without limitation the rights to use, copy, modify, merge, publish,      *
850276Speter * distribute, distribute with modifications, sublicense, and/or sell       *
950276Speter * copies of the Software, and to permit persons to whom the Software is    *
1050276Speter * furnished to do so, subject to the following conditions:                 *
1150276Speter *                                                                          *
1250276Speter * The above copyright notice and this permission notice shall be included  *
1350276Speter * in all copies or substantial portions of the Software.                   *
1450276Speter *                                                                          *
1550276Speter * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
1650276Speter * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
1750276Speter * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
1850276Speter * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
1950276Speter * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
2050276Speter * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
2150276Speter * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
2250276Speter *                                                                          *
2350276Speter * Except as contained in this notice, the name(s) of the above copyright   *
2450276Speter * holders shall not be used in advertising or otherwise to promote the     *
2550276Speter * sale, use or other dealings in this Software without prior written       *
2650276Speter * authorization.                                                           *
2750276Speter ****************************************************************************/
2850276Speter
2950276Speter/****************************************************************************
3050276Speter *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1995                    *
3150276Speter *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
32262629Sdelphij *     and: Juergen Pfeifer                         1996-1999,2008          *
3350276Speter ****************************************************************************/
3450276Speter
35262629Sdelphij/* $Id: panel.h,v 1.11 2009/04/11 19:50:40 tom Exp $ */
36166124Srafan
3750276Speter/* panel.h -- interface file for panels library */
3850276Speter
3976726Speter#ifndef NCURSES_PANEL_H_incl
4076726Speter#define NCURSES_PANEL_H_incl 1
4150276Speter
4250276Speter#include <curses.h>
4350276Speter
4450276Spetertypedef struct panel
4550276Speter{
4656639Speter  WINDOW *win;
4756639Speter  struct panel *below;
4856639Speter  struct panel *above;
4956639Speter  NCURSES_CONST void *user;
5056639Speter} PANEL;
5150276Speter
5250276Speter#if	defined(__cplusplus)
5350276Speterextern "C" {
5450276Speter#endif
5550276Speter
5676726Speterextern NCURSES_EXPORT(WINDOW*) panel_window (const PANEL *);
5776726Speterextern NCURSES_EXPORT(void)    update_panels (void);
5876726Speterextern NCURSES_EXPORT(int)     hide_panel (PANEL *);
5976726Speterextern NCURSES_EXPORT(int)     show_panel (PANEL *);
6076726Speterextern NCURSES_EXPORT(int)     del_panel (PANEL *);
6176726Speterextern NCURSES_EXPORT(int)     top_panel (PANEL *);
6276726Speterextern NCURSES_EXPORT(int)     bottom_panel (PANEL *);
6376726Speterextern NCURSES_EXPORT(PANEL*)  new_panel (WINDOW *);
6476726Speterextern NCURSES_EXPORT(PANEL*)  panel_above (const PANEL *);
6576726Speterextern NCURSES_EXPORT(PANEL*)  panel_below (const PANEL *);
6676726Speterextern NCURSES_EXPORT(int)     set_panel_userptr (PANEL *, NCURSES_CONST void *);
6776726Speterextern NCURSES_EXPORT(NCURSES_CONST void*) panel_userptr (const PANEL *);
6876726Speterextern NCURSES_EXPORT(int)     move_panel (PANEL *, int, int);
6976726Speterextern NCURSES_EXPORT(int)     replace_panel (PANEL *,WINDOW *);
7076726Speterextern NCURSES_EXPORT(int)     panel_hidden (const PANEL *);
7150276Speter
72262629Sdelphij#if NCURSES_SP_FUNCS
73262629Sdelphijextern NCURSES_EXPORT(PANEL *) ground_panel(SCREEN *);
74262629Sdelphijextern NCURSES_EXPORT(PANEL *) ceiling_panel(SCREEN *);
75262629Sdelphij
76262629Sdelphijextern NCURSES_EXPORT(void)    NCURSES_SP_NAME(update_panels) (SCREEN*);
77262629Sdelphij#endif
78262629Sdelphij
7950276Speter#if	defined(__cplusplus)
8050276Speter}
8150276Speter#endif
8250276Speter
8376726Speter#endif /* NCURSES_PANEL_H_incl */
8450276Speter
8550276Speter/* end of panel.h */
86