2 define(`HTMLNAME',`terminal_interface-curses-panels__ads.htm')dnl
4 ------------------------------------------------------------------------------
6 -- GNAT ncurses Binding --
8 -- Terminal_Interface.Curses.Panels --
12 ------------------------------------------------------------------------------
13 -- Copyright 2020 Thomas E. Dickey --
14 -- Copyright 1998-2009,2014 Free Software Foundation, Inc. --
16 -- Permission is hereby granted, free of charge, to any person obtaining a --
17 -- copy of this software and associated documentation files (the --
18 -- "Software"), to deal in the Software without restriction, including --
19 -- without limitation the rights to use, copy, modify, merge, publish, --
20 -- distribute, distribute with modifications, sublicense, and/or sell --
21 -- copies of the Software, and to permit persons to whom the Software is --
22 -- furnished to do so, subject to the following conditions: --
24 -- The above copyright notice and this permission notice shall be included --
25 -- in all copies or substantial portions of the Software. --
27 -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
28 -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
29 -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
30 -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
31 -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
32 -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --
33 -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
35 -- Except as contained in this notice, the name(s) of the above copyright --
36 -- holders shall not be used in advertising or otherwise to promote the --
37 -- sale, use or other dealings in this Software without prior written --
39 ------------------------------------------------------------------------------
40 -- Author: Juergen Pfeifer, 1996
43 -- $Date: 2020/02/02 23:34:34 $
44 -- Binding Version 01.00
45 ------------------------------------------------------------------------------
48 package Terminal_Interface.Curses.Panels is
49 pragma Preelaborate (Terminal_Interface.Curses.Panels);
50 pragma Linker_Options ("-lpanel" & Curses_Constants.DFT_ARG_SUFFIX);
52 type Panel is private;
54 ---------------------------
55 -- Interface constants --
56 ---------------------------
57 Null_Panel : constant Panel;
63 Panel_Exception : exception;
65 -- MANPAGE(`panel.3x')
67 -- ANCHOR(`new_panel()',`Create')
68 function Create (Win : Window) return Panel;
70 pragma Inline (Create);
72 -- ANCHOR(`new_panel()',`New_Panel')
73 function New_Panel (Win : Window) return Panel renames Create;
75 -- pragma Inline (New_Panel);
77 -- ANCHOR(`bottom_panel()',`Bottom')
78 procedure Bottom (Pan : Panel);
80 pragma Inline (Bottom);
82 -- ANCHOR(`top_panel()',`Top')
83 procedure Top (Pan : Panel);
87 -- ANCHOR(`show_panel()',`Show')
88 procedure Show (Pan : Panel);
92 -- ANCHOR(`update_panels()',`Update_Panels')
93 procedure Update_Panels;
95 pragma Import (C, Update_Panels, "update_panels");
97 -- ANCHOR(`hide_panel()',`Hide')
98 procedure Hide (Pan : Panel);
100 pragma Inline (Hide);
102 -- ANCHOR(`panel_window()',`Get_Window')
103 function Get_Window (Pan : Panel) return Window;
105 pragma Inline (Get_Window);
107 -- ANCHOR(`panel_window()',`Panel_Window')
108 function Panel_Window (Pan : Panel) return Window renames Get_Window;
109 -- pragma Inline (Panel_Window);
111 -- ANCHOR(`replace_panel()',`Replace')
112 procedure Replace (Pan : Panel;
115 pragma Inline (Replace);
117 -- ANCHOR(`move_panel()',`Move')
118 procedure Move (Pan : Panel;
119 Line : Line_Position;
120 Column : Column_Position);
122 pragma Inline (Move);
124 -- ANCHOR(`panel_hidden()',`Is_Hidden')
125 function Is_Hidden (Pan : Panel) return Boolean;
127 pragma Inline (Is_Hidden);
129 -- ANCHOR(`panel_above()',`Above')
130 function Above (Pan : Panel) return Panel;
132 pragma Import (C, Above, "panel_above");
134 -- ANCHOR(`panel_below()',`Below')
135 function Below (Pan : Panel) return Panel;
137 pragma Import (C, Below, "panel_below");
139 -- ANCHOR(`del_panel()',`Delete')
140 procedure Delete (Pan : in out Panel);
142 pragma Inline (Delete);
145 type Panel is new System.Storage_Elements.Integer_Address;
146 Null_Panel : constant Panel := 0;
148 end Terminal_Interface.Curses.Panels;