drivers/option: Add forms in cbtables
[coreboot2.git] / payloads / libpayload / include / panel.h
blob1d7cacef94a9799be4d8f7906af5a3dea9a97107
1 /* Public Domain Curses */
3 /* $Id: panel.h,v 1.19 2008/07/13 16:08:16 wmcbrine Exp $ */
5 /*----------------------------------------------------------------------*
6 * Panels for PDCurses *
7 *----------------------------------------------------------------------*/
9 #ifndef __PDCURSES_PANEL_H__
10 #define __PDCURSES_PANEL_H__ 1
12 #include <curses.h>
14 #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
15 extern "C"
17 #endif
19 typedef struct panelobs
21 struct panelobs *above;
22 struct panel *pan;
23 } PANELOBS;
25 typedef struct panel
27 WINDOW *win;
28 int wstarty;
29 int wendy;
30 int wstartx;
31 int wendx;
32 struct panel *below;
33 struct panel *above;
34 const void *user;
35 struct panelobs *obscure;
36 } PANEL;
38 int bottom_panel(PANEL *pan);
39 int del_panel(PANEL *pan);
40 int hide_panel(PANEL *pan);
41 int move_panel(PANEL *pan, int starty, int startx);
42 PANEL *new_panel(WINDOW *win);
43 PANEL *panel_above(const PANEL *pan);
44 PANEL *panel_below(const PANEL *pan);
45 int panel_hidden(const PANEL *pan);
46 const void *panel_userptr(const PANEL *pan);
47 WINDOW *panel_window(const PANEL *pan);
48 int replace_panel(PANEL *pan, WINDOW *win);
49 int set_panel_userptr(PANEL *pan, const void *uptr);
50 int show_panel(PANEL *pan);
51 int top_panel(PANEL *pan);
52 void update_panels(void);
54 #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
56 #endif
58 #endif /* __PDCURSES_PANEL_H__ */