panel.h revision 262629
1254721Semaste/****************************************************************************
2254721Semaste * Copyright (c) 1998-2006,2009 Free Software Foundation, Inc.              *
3254721Semaste *                                                                          *
4254721Semaste * Permission is hereby granted, free of charge, to any person obtaining a  *
5254721Semaste * copy of this software and associated documentation files (the            *
6254721Semaste * "Software"), to deal in the Software without restriction, including      *
7254721Semaste * without limitation the rights to use, copy, modify, merge, publish,      *
8254721Semaste * distribute, distribute with modifications, sublicense, and/or sell       *
9254721Semaste * copies of the Software, and to permit persons to whom the Software is    *
10254721Semaste * furnished to do so, subject to the following conditions:                 *
11254721Semaste *                                                                          *
12254721Semaste * The above copyright notice and this permission notice shall be included  *
13254721Semaste * in all copies or substantial portions of the Software.                   *
14254721Semaste *                                                                          *
15254721Semaste * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16254721Semaste * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17254721Semaste * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18254721Semaste * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19254721Semaste * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20254721Semaste * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21254721Semaste * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22254721Semaste *                                                                          *
23254721Semaste * Except as contained in this notice, the name(s) of the above copyright   *
24254721Semaste * holders shall not be used in advertising or otherwise to promote the     *
25254721Semaste * sale, use or other dealings in this Software without prior written       *
26254721Semaste * authorization.                                                           *
27254721Semaste ****************************************************************************/
28254721Semaste
29254721Semaste/****************************************************************************
30254721Semaste *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1995                    *
31254721Semaste *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
32254721Semaste *     and: Juergen Pfeifer                         1996-1999,2008          *
33254721Semaste ****************************************************************************/
34254721Semaste
35254721Semaste/* $Id: panel.h,v 1.11 2009/04/11 19:50:40 tom Exp $ */
36254721Semaste
37254721Semaste/* panel.h -- interface file for panels library */
38254721Semaste
39254721Semaste#ifndef NCURSES_PANEL_H_incl
40254721Semaste#define NCURSES_PANEL_H_incl 1
41263367Semaste
42254721Semaste#include <curses.h>
43254721Semaste
44254721Semastetypedef struct panel
45254721Semaste{
46254721Semaste  WINDOW *win;
47254721Semaste  struct panel *below;
48254721Semaste  struct panel *above;
49254721Semaste  NCURSES_CONST void *user;
50254721Semaste} PANEL;
51263367Semaste
52263367Semaste#if	defined(__cplusplus)
53263367Semasteextern "C" {
54263367Semaste#endif
55263367Semaste
56263367Semasteextern NCURSES_EXPORT(WINDOW*) panel_window (const PANEL *);
57263367Semasteextern NCURSES_EXPORT(void)    update_panels (void);
58263367Semasteextern NCURSES_EXPORT(int)     hide_panel (PANEL *);
59263367Semasteextern NCURSES_EXPORT(int)     show_panel (PANEL *);
60263367Semasteextern NCURSES_EXPORT(int)     del_panel (PANEL *);
61263367Semasteextern NCURSES_EXPORT(int)     top_panel (PANEL *);
62263367Semasteextern NCURSES_EXPORT(int)     bottom_panel (PANEL *);
63263367Semasteextern NCURSES_EXPORT(PANEL*)  new_panel (WINDOW *);
64263367Semasteextern NCURSES_EXPORT(PANEL*)  panel_above (const PANEL *);
65263367Semasteextern NCURSES_EXPORT(PANEL*)  panel_below (const PANEL *);
66263367Semasteextern NCURSES_EXPORT(int)     set_panel_userptr (PANEL *, NCURSES_CONST void *);
67263367Semasteextern NCURSES_EXPORT(NCURSES_CONST void*) panel_userptr (const PANEL *);
68263367Semasteextern NCURSES_EXPORT(int)     move_panel (PANEL *, int, int);
69263367Semasteextern NCURSES_EXPORT(int)     replace_panel (PANEL *,WINDOW *);
70263367Semasteextern NCURSES_EXPORT(int)     panel_hidden (const PANEL *);
71263367Semaste
72263367Semaste#if NCURSES_SP_FUNCS
73263367Semasteextern NCURSES_EXPORT(PANEL *) ground_panel(SCREEN *);
74263367Semasteextern NCURSES_EXPORT(PANEL *) ceiling_panel(SCREEN *);
75263367Semaste
76263367Semasteextern NCURSES_EXPORT(void)    NCURSES_SP_NAME(update_panels) (SCREEN*);
77263367Semaste#endif
78263367Semaste
79263367Semaste#if	defined(__cplusplus)
80263367Semaste}
81263367Semaste#endif
82263367Semaste
83263367Semaste#endif /* NCURSES_PANEL_H_incl */
84263367Semaste
85263367Semaste/* end of panel.h */
86254721Semaste