1*c7ef0cfcSnicm /* $OpenBSD: panel.h,v 1.9 2023/10/17 09:52:10 nicm Exp $ */ 2d5238b59Smillert /**************************************************************************** 3*c7ef0cfcSnicm * Copyright 2020 Thomas E. Dickey * 4*c7ef0cfcSnicm * Copyright 1998-2009,2017 Free Software Foundation, Inc. * 55ccab619Stholo * * 6d5238b59Smillert * Permission is hereby granted, free of charge, to any person obtaining a * 7d5238b59Smillert * copy of this software and associated documentation files (the * 8d5238b59Smillert * "Software"), to deal in the Software without restriction, including * 9d5238b59Smillert * without limitation the rights to use, copy, modify, merge, publish, * 10d5238b59Smillert * distribute, distribute with modifications, sublicense, and/or sell * 11d5238b59Smillert * copies of the Software, and to permit persons to whom the Software is * 12d5238b59Smillert * furnished to do so, subject to the following conditions: * 135ccab619Stholo * * 14d5238b59Smillert * The above copyright notice and this permission notice shall be included * 15d5238b59Smillert * in all copies or substantial portions of the Software. * 165ccab619Stholo * * 17d5238b59Smillert * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 18d5238b59Smillert * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 19d5238b59Smillert * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 20d5238b59Smillert * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 21d5238b59Smillert * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 22d5238b59Smillert * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 23d5238b59Smillert * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 245ccab619Stholo * * 25d5238b59Smillert * Except as contained in this notice, the name(s) of the above copyright * 26d5238b59Smillert * holders shall not be used in advertising or otherwise to promote the * 27d5238b59Smillert * sale, use or other dealings in this Software without prior written * 28d5238b59Smillert * authorization. * 29d5238b59Smillert ****************************************************************************/ 30d5238b59Smillert 31d5238b59Smillert /**************************************************************************** 32d5238b59Smillert * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1995 * 33d5238b59Smillert * and: Eric S. Raymond <esr@snark.thyrsus.com> * 34*c7ef0cfcSnicm * and: Juergen Pfeifer 1996-1999,2008 * 35d5238b59Smillert ****************************************************************************/ 365ccab619Stholo 37*c7ef0cfcSnicm /* $Id: panel.h,v 1.9 2023/10/17 09:52:10 nicm Exp $ */ 3881d8c4e1Snicm 395ccab619Stholo /* panel.h -- interface file for panels library */ 405ccab619Stholo 4181d8c4e1Snicm #ifndef NCURSES_PANEL_H_incl 4281d8c4e1Snicm #define NCURSES_PANEL_H_incl 1 435ccab619Stholo 445ccab619Stholo #include <curses.h> 455ccab619Stholo 465ccab619Stholo typedef struct panel 47*c7ef0cfcSnicm #if !NCURSES_OPAQUE_PANEL 485ccab619Stholo { 495ccab619Stholo WINDOW *win; 505ccab619Stholo struct panel *below; 515ccab619Stholo struct panel *above; 5215fe46beSmillert NCURSES_CONST void *user; 53*c7ef0cfcSnicm } 54*c7ef0cfcSnicm #endif /* !NCURSES_OPAQUE_PANEL */ 55*c7ef0cfcSnicm PANEL; 565ccab619Stholo 575ccab619Stholo #if defined(__cplusplus) 585ccab619Stholo extern "C" { 595ccab619Stholo #endif 605ccab619Stholo 61*c7ef0cfcSnicm #if defined(BUILDING_PANEL) 62*c7ef0cfcSnicm # define PANEL_IMPEXP NCURSES_EXPORT_GENERAL_EXPORT 63*c7ef0cfcSnicm #else 64*c7ef0cfcSnicm # define PANEL_IMPEXP NCURSES_EXPORT_GENERAL_IMPORT 65*c7ef0cfcSnicm #endif 66*c7ef0cfcSnicm 67*c7ef0cfcSnicm #define PANEL_WRAPPED_VAR(type,name) extern PANEL_IMPEXP type NCURSES_PUBLIC_VAR(name)(void) 68*c7ef0cfcSnicm 69*c7ef0cfcSnicm #define PANEL_EXPORT(type) PANEL_IMPEXP type NCURSES_API 70*c7ef0cfcSnicm #define PANEL_EXPORT_VAR(type) PANEL_IMPEXP type 71*c7ef0cfcSnicm 72*c7ef0cfcSnicm extern PANEL_EXPORT(WINDOW*) panel_window (const PANEL *); 73*c7ef0cfcSnicm extern PANEL_EXPORT(void) update_panels (void); 74*c7ef0cfcSnicm extern PANEL_EXPORT(int) hide_panel (PANEL *); 75*c7ef0cfcSnicm extern PANEL_EXPORT(int) show_panel (PANEL *); 76*c7ef0cfcSnicm extern PANEL_EXPORT(int) del_panel (PANEL *); 77*c7ef0cfcSnicm extern PANEL_EXPORT(int) top_panel (PANEL *); 78*c7ef0cfcSnicm extern PANEL_EXPORT(int) bottom_panel (PANEL *); 79*c7ef0cfcSnicm extern PANEL_EXPORT(PANEL*) new_panel (WINDOW *); 80*c7ef0cfcSnicm extern PANEL_EXPORT(PANEL*) panel_above (const PANEL *); 81*c7ef0cfcSnicm extern PANEL_EXPORT(PANEL*) panel_below (const PANEL *); 82*c7ef0cfcSnicm extern PANEL_EXPORT(int) set_panel_userptr (PANEL *, NCURSES_CONST void *); 83*c7ef0cfcSnicm extern PANEL_EXPORT(NCURSES_CONST void*) panel_userptr (const PANEL *); 84*c7ef0cfcSnicm extern PANEL_EXPORT(int) move_panel (PANEL *, int, int); 85*c7ef0cfcSnicm extern PANEL_EXPORT(int) replace_panel (PANEL *,WINDOW *); 86*c7ef0cfcSnicm extern PANEL_EXPORT(int) panel_hidden (const PANEL *); 87*c7ef0cfcSnicm 88*c7ef0cfcSnicm #if NCURSES_SP_FUNCS 89*c7ef0cfcSnicm extern PANEL_EXPORT(PANEL *) ground_panel(SCREEN *); 90*c7ef0cfcSnicm extern PANEL_EXPORT(PANEL *) ceiling_panel(SCREEN *); 91*c7ef0cfcSnicm 92*c7ef0cfcSnicm extern PANEL_EXPORT(void) NCURSES_SP_NAME(update_panels) (SCREEN*); 93*c7ef0cfcSnicm #endif 945ccab619Stholo 955ccab619Stholo #if defined(__cplusplus) 965ccab619Stholo } 975ccab619Stholo #endif 985ccab619Stholo 9981d8c4e1Snicm #endif /* NCURSES_PANEL_H_incl */ 1005ccab619Stholo 1015ccab619Stholo /* end of panel.h */ 102