1226584Sdim/**************************************************************************** 2226584Sdim * Copyright (c) 1998-2001,2006 Free Software Foundation, Inc. * 3226584Sdim * * 4226584Sdim * Permission is hereby granted, free of charge, to any person obtaining a * 5226584Sdim * copy of this software and associated documentation files (the * 6226584Sdim * "Software"), to deal in the Software without restriction, including * 7226584Sdim * without limitation the rights to use, copy, modify, merge, publish, * 8226584Sdim * distribute, distribute with modifications, sublicense, and/or sell * 9226584Sdim * copies of the Software, and to permit persons to whom the Software is * 10251662Sdim * furnished to do so, subject to the following conditions: * 11226584Sdim * * 12226584Sdim * The above copyright notice and this permission notice shall be included * 13263508Sdim * in all copies or substantial portions of the Software. * 14263508Sdim * * 15243830Sdim * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 16226584Sdim * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 17226584Sdim * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 18226584Sdim * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 19226584Sdim * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 20226584Sdim * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 21226584Sdim * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 22226584Sdim * * 23251662Sdim * Except as contained in this notice, the name(s) of the above copyright * 24263508Sdim * holders shall not be used in advertising or otherwise to promote the * 25263508Sdim * sale, use or other dealings in this Software without prior written * 26263508Sdim * authorization. * 27251662Sdim ****************************************************************************/ 28226584Sdim 29251662Sdim/**************************************************************************** 30263508Sdim * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1995 * 31263508Sdim * and: Eric S. Raymond <esr@snark.thyrsus.com> * 32263508Sdim ****************************************************************************/ 33263508Sdim 34263508Sdim/* $Id: panel.h,v 1.10 2006/05/27 19:49:40 tom Exp $ */ 35263508Sdim 36263508Sdim/* panel.h -- interface file for panels library */ 37263508Sdim 38263508Sdim#ifndef NCURSES_PANEL_H_incl 39263508Sdim#define NCURSES_PANEL_H_incl 1 40263508Sdim 41263508Sdim#include <curses.h> 42263508Sdim 43263508Sdimtypedef struct panel 44263508Sdim{ 45263508Sdim WINDOW *win; 46263508Sdim struct panel *below; 47263508Sdim struct panel *above; 48263508Sdim NCURSES_CONST void *user; 49263508Sdim} PANEL; 50263508Sdim 51263508Sdim#if defined(__cplusplus) 52263508Sdimextern "C" { 53263508Sdim#endif 54263508Sdim 55263508Sdimextern NCURSES_EXPORT(WINDOW*) panel_window (const PANEL *); 56263508Sdimextern NCURSES_EXPORT(void) update_panels (void); 57263508Sdimextern NCURSES_EXPORT(int) hide_panel (PANEL *); 58263508Sdimextern NCURSES_EXPORT(int) show_panel (PANEL *); 59263508Sdimextern NCURSES_EXPORT(int) del_panel (PANEL *); 60251662Sdimextern NCURSES_EXPORT(int) top_panel (PANEL *); 61263508Sdimextern NCURSES_EXPORT(int) bottom_panel (PANEL *); 62251662Sdimextern NCURSES_EXPORT(PANEL*) new_panel (WINDOW *); 63263508Sdimextern NCURSES_EXPORT(PANEL*) panel_above (const PANEL *); 64263508Sdimextern NCURSES_EXPORT(PANEL*) panel_below (const PANEL *); 65251662Sdimextern NCURSES_EXPORT(int) set_panel_userptr (PANEL *, NCURSES_CONST void *); 66251662Sdimextern NCURSES_EXPORT(NCURSES_CONST void*) panel_userptr (const PANEL *); 67263508Sdimextern NCURSES_EXPORT(int) move_panel (PANEL *, int, int); 68251662Sdimextern NCURSES_EXPORT(int) replace_panel (PANEL *,WINDOW *); 69263508Sdimextern NCURSES_EXPORT(int) panel_hidden (const PANEL *); 70251662Sdim 71263508Sdim#if defined(__cplusplus) 72251662Sdim} 73263508Sdim#endif 74263508Sdim 75226584Sdim#endif /* NCURSES_PANEL_H_incl */ 76226584Sdim 77263508Sdim/* end of panel.h */ 78263508Sdim