panel.h revision 256281
1210284Sjmallett/**************************************************************************** 2232812Sjmallett * Copyright (c) 1998-2001,2006 Free Software Foundation, Inc. * 3215990Sjmallett * * 4210284Sjmallett * Permission is hereby granted, free of charge, to any person obtaining a * 5210284Sjmallett * copy of this software and associated documentation files (the * 6215990Sjmallett * "Software"), to deal in the Software without restriction, including * 7215990Sjmallett * without limitation the rights to use, copy, modify, merge, publish, * 8215990Sjmallett * distribute, distribute with modifications, sublicense, and/or sell * 9210284Sjmallett * copies of the Software, and to permit persons to whom the Software is * 10215990Sjmallett * furnished to do so, subject to the following conditions: * 11215990Sjmallett * * 12210284Sjmallett * The above copyright notice and this permission notice shall be included * 13215990Sjmallett * in all copies or substantial portions of the Software. * 14215990Sjmallett * * 15215990Sjmallett * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 16215990Sjmallett * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 17215990Sjmallett * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 18232812Sjmallett * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 19215990Sjmallett * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 20215990Sjmallett * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 21215990Sjmallett * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 22215990Sjmallett * * 23215990Sjmallett * Except as contained in this notice, the name(s) of the above copyright * 24215990Sjmallett * holders shall not be used in advertising or otherwise to promote the * 25215990Sjmallett * sale, use or other dealings in this Software without prior written * 26215990Sjmallett * authorization. * 27215990Sjmallett ****************************************************************************/ 28215990Sjmallett 29232812Sjmallett/**************************************************************************** 30215990Sjmallett * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1995 * 31215990Sjmallett * and: Eric S. Raymond <esr@snark.thyrsus.com> * 32215990Sjmallett ****************************************************************************/ 33215990Sjmallett 34215990Sjmallett/* $Id: panel.h,v 1.10 2006/05/27 19:49:40 tom Exp $ */ 35215990Sjmallett 36215990Sjmallett/* panel.h -- interface file for panels library */ 37215990Sjmallett 38210284Sjmallett#ifndef NCURSES_PANEL_H_incl 39210284Sjmallett#define NCURSES_PANEL_H_incl 1 40210284Sjmallett 41210284Sjmallett#include <curses.h> 42210284Sjmallett 43210284Sjmalletttypedef struct panel 44210284Sjmallett{ 45215990Sjmallett WINDOW *win; 46210284Sjmallett struct panel *below; 47210284Sjmallett struct panel *above; 48210284Sjmallett NCURSES_CONST void *user; 49210284Sjmallett} PANEL; 50210284Sjmallett 51232812Sjmallett#if defined(__cplusplus) 52210284Sjmallettextern "C" { 53210284Sjmallett#endif 54210284Sjmallett 55215990Sjmallettextern NCURSES_EXPORT(WINDOW*) panel_window (const PANEL *); 56215990Sjmallettextern NCURSES_EXPORT(void) update_panels (void); 57215990Sjmallettextern NCURSES_EXPORT(int) hide_panel (PANEL *); 58215990Sjmallettextern NCURSES_EXPORT(int) show_panel (PANEL *); 59215990Sjmallettextern NCURSES_EXPORT(int) del_panel (PANEL *); 60210284Sjmallettextern NCURSES_EXPORT(int) top_panel (PANEL *); 61210284Sjmallettextern NCURSES_EXPORT(int) bottom_panel (PANEL *); 62210284Sjmallettextern NCURSES_EXPORT(PANEL*) new_panel (WINDOW *); 63215990Sjmallettextern NCURSES_EXPORT(PANEL*) panel_above (const PANEL *); 64210284Sjmallettextern NCURSES_EXPORT(PANEL*) panel_below (const PANEL *); 65210284Sjmallettextern NCURSES_EXPORT(int) set_panel_userptr (PANEL *, NCURSES_CONST void *); 66210284Sjmallettextern NCURSES_EXPORT(NCURSES_CONST void*) panel_userptr (const PANEL *); 67210284Sjmallettextern NCURSES_EXPORT(int) move_panel (PANEL *, int, int); 68210284Sjmallettextern NCURSES_EXPORT(int) replace_panel (PANEL *,WINDOW *); 69210284Sjmallettextern NCURSES_EXPORT(int) panel_hidden (const PANEL *); 70210284Sjmallett 71210284Sjmallett#if defined(__cplusplus) 72210284Sjmallett} 73210284Sjmallett#endif 74210284Sjmallett 75215990Sjmallett#endif /* NCURSES_PANEL_H_incl */ 76215990Sjmallett 77210284Sjmallett/* end of panel.h */ 78210284Sjmallett