10e3d5408SPeter Wemm /**************************************************************************** 2*e1865124SBaptiste Daroussin * Copyright 2020 Thomas E. Dickey * 3*e1865124SBaptiste Daroussin * Copyright 1998-2009,2017 Free Software Foundation, Inc. * 40e3d5408SPeter Wemm * * 50e3d5408SPeter Wemm * Permission is hereby granted, free of charge, to any person obtaining a * 60e3d5408SPeter Wemm * copy of this software and associated documentation files (the * 70e3d5408SPeter Wemm * "Software"), to deal in the Software without restriction, including * 80e3d5408SPeter Wemm * without limitation the rights to use, copy, modify, merge, publish, * 90e3d5408SPeter Wemm * distribute, distribute with modifications, sublicense, and/or sell * 100e3d5408SPeter Wemm * copies of the Software, and to permit persons to whom the Software is * 110e3d5408SPeter Wemm * furnished to do so, subject to the following conditions: * 120e3d5408SPeter Wemm * * 130e3d5408SPeter Wemm * The above copyright notice and this permission notice shall be included * 140e3d5408SPeter Wemm * in all copies or substantial portions of the Software. * 150e3d5408SPeter Wemm * * 160e3d5408SPeter Wemm * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 170e3d5408SPeter Wemm * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 180e3d5408SPeter Wemm * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 190e3d5408SPeter Wemm * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 200e3d5408SPeter Wemm * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 210e3d5408SPeter Wemm * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 220e3d5408SPeter Wemm * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 230e3d5408SPeter Wemm * * 240e3d5408SPeter Wemm * Except as contained in this notice, the name(s) of the above copyright * 250e3d5408SPeter Wemm * holders shall not be used in advertising or otherwise to promote the * 260e3d5408SPeter Wemm * sale, use or other dealings in this Software without prior written * 270e3d5408SPeter Wemm * authorization. * 280e3d5408SPeter Wemm ****************************************************************************/ 290e3d5408SPeter Wemm 300e3d5408SPeter Wemm /**************************************************************************** 315d08fb1fSRong-En Fan * Author: Juergen Pfeifer 1997 * 325d08fb1fSRong-En Fan * and: Thomas E. Dickey * 330e3d5408SPeter Wemm ****************************************************************************/ 340e3d5408SPeter Wemm 350e3d5408SPeter Wemm /* 36*e1865124SBaptiste Daroussin * $Id: nc_panel.h,v 1.10 2020/02/02 23:34:34 tom Exp $ 370e3d5408SPeter Wemm * 380e3d5408SPeter Wemm * nc_panel.h 390e3d5408SPeter Wemm * 400e3d5408SPeter Wemm * Headerfile to provide an interface for the panel layer into 410e3d5408SPeter Wemm * the SCREEN structure of the ncurses core. 420e3d5408SPeter Wemm */ 430e3d5408SPeter Wemm 440e3d5408SPeter Wemm #ifndef NC_PANEL_H 450e3d5408SPeter Wemm #define NC_PANEL_H 1 460e3d5408SPeter Wemm 47aae38d10SBaptiste Daroussin #include <ncurses_cfg.h> 48aae38d10SBaptiste Daroussin #include <curses.h> 49aae38d10SBaptiste Daroussin 500e3d5408SPeter Wemm #ifdef __cplusplus 5106bfebdeSXin LI extern "C" 5206bfebdeSXin LI { 530e3d5408SPeter Wemm #endif 540e3d5408SPeter Wemm 550e3d5408SPeter Wemm struct panel; /* Forward Declaration */ 560e3d5408SPeter Wemm 5706bfebdeSXin LI struct panelhook 5806bfebdeSXin LI { 590e3d5408SPeter Wemm struct panel *top_panel; 600e3d5408SPeter Wemm struct panel *bottom_panel; 610e3d5408SPeter Wemm struct panel *stdscr_pseudo_panel; 625d08fb1fSRong-En Fan #if NO_LEAKS 635d08fb1fSRong-En Fan int (*destroy) (struct panel *); 645d08fb1fSRong-En Fan #endif 650e3d5408SPeter Wemm }; 660e3d5408SPeter Wemm 6706bfebdeSXin LI struct screen; /* Forward declaration */ 6806bfebdeSXin LI /* Retrieve the panelhook of the specified screen */ 6906bfebdeSXin LI extern NCURSES_EXPORT(struct panelhook *) 7006bfebdeSXin LI _nc_panelhook (void); 7106bfebdeSXin LI #if NCURSES_SP_FUNCS 7206bfebdeSXin LI extern NCURSES_EXPORT(struct panelhook *) 7306bfebdeSXin LI NCURSES_SP_NAME(_nc_panelhook) (SCREEN *); 7406bfebdeSXin LI #endif 750e3d5408SPeter Wemm 760e3d5408SPeter Wemm #ifdef __cplusplus 770e3d5408SPeter Wemm } 780e3d5408SPeter Wemm #endif 790e3d5408SPeter Wemm 800e3d5408SPeter Wemm #endif /* NC_PANEL_H */ 81