panel.h revision 56639
150276Speter/**************************************************************************** 250276Speter * Copyright (c) 1998 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> * 3250276Speter ****************************************************************************/ 3350276Speter 3450276Speter/* panel.h -- interface file for panels library */ 3550276Speter 3650276Speter#ifndef _PANEL_H 3750276Speter#define _PANEL_H 3850276Speter 3950276Speter#include <curses.h> 4050276Speter 4150276Spetertypedef struct panel 4250276Speter{ 4356639Speter WINDOW *win; 4456639Speter struct panel *below; 4556639Speter struct panel *above; 4656639Speter NCURSES_CONST void *user; 4756639Speter} PANEL; 4850276Speter 4950276Speter#if defined(__cplusplus) 5050276Speterextern "C" { 5150276Speter#endif 5250276Speter 5356639Speterextern WINDOW* panel_window(const PANEL *); 5456639Speterextern void update_panels(void); 5556639Speterextern int hide_panel(PANEL *); 5656639Speterextern int show_panel(PANEL *); 5756639Speterextern int del_panel(PANEL *); 5856639Speterextern int top_panel(PANEL *); 5956639Speterextern int bottom_panel(PANEL *); 6056639Speterextern PANEL* new_panel(WINDOW *); 6156639Speterextern PANEL* panel_above(const PANEL *); 6256639Speterextern PANEL* panel_below(const PANEL *); 6356639Speterextern int set_panel_userptr(PANEL *, NCURSES_CONST void *); 6450276Speterextern NCURSES_CONST void* panel_userptr(const PANEL *); 6556639Speterextern int move_panel(PANEL *, int, int); 6656639Speterextern int replace_panel(PANEL *,WINDOW *); 6756639Speterextern int panel_hidden(const PANEL *); 6850276Speter 6950276Speter#if defined(__cplusplus) 7050276Speter} 7150276Speter#endif 7250276Speter 7350276Speter#endif /* _PANEL_H */ 7450276Speter 7550276Speter/* end of panel.h */ 76