2 define(`HTMLNAME',`terminal_interface-curses-panels__ads.htm')dnl
4 ------------------------------------------------------------------------------
6 -- GNAT ncurses Binding --
8 -- Terminal_Interface.Curses.Panels --
12 ------------------------------------------------------------------------------
13 -- Copyright (c) 1998 Free Software Foundation, Inc. --
15 -- Permission is hereby granted, free of charge, to any person obtaining a --
16 -- copy of this software and associated documentation files (the --
17 -- "Software"), to deal in the Software without restriction, including --
18 -- without limitation the rights to use, copy, modify, merge, publish, --
19 -- distribute, distribute with modifications, sublicense, and/or sell --
20 -- copies of the Software, and to permit persons to whom the Software is --
21 -- furnished to do so, subject to the following conditions: --
23 -- The above copyright notice and this permission notice shall be included --
24 -- in all copies or substantial portions of the Software. --
26 -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
27 -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
28 -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
29 -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
30 -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
31 -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --
32 -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
34 -- Except as contained in this notice, the name(s) of the above copyright --
35 -- holders shall not be used in advertising or otherwise to promote the --
36 -- sale, use or other dealings in this Software without prior written --
38 ------------------------------------------------------------------------------
39 -- Author: Juergen Pfeifer <juergen.pfeifer@gmx.net> 1996
42 -- Binding Version 01.00
43 ------------------------------------------------------------------------------
46 package Terminal_Interface.Curses.Panels is
47 pragma Preelaborate (Terminal_Interface.Curses.Panels);
48 include(`Panel_Linker_Options')dnl
49 include(`Linker_Options')
50 type Panel is private;
52 ---------------------------
53 -- Interface constants --
54 ---------------------------
55 Null_Panel : constant Panel;
61 Panel_Exception : exception;
63 -- MANPAGE(`panel.3x')
65 -- ANCHOR(`new_panel()',`Create')
66 function Create (Win : Window) return Panel;
68 pragma Inline (Create);
70 -- ANCHOR(`new_panel()',`New_Panel')
71 function New_Panel (Win : Window) return Panel renames Create;
73 pragma Inline (New_Panel);
75 -- ANCHOR(`bottom_panel()',`Bottom')
76 procedure Bottom (Pan : in Panel);
78 pragma Inline (Bottom);
80 -- ANCHOR(`top_panel()',`Top')
81 procedure Top (Pan : in Panel);
85 -- ANCHOR(`show_panel()',`Show')
86 procedure Show (Pan : in Panel);
90 -- ANCHOR(`update_panels()',`Update_Panels')
91 procedure Update_Panels;
93 pragma Import (C, Update_Panels, "update_panels");
95 -- ANCHOR(`hide_panel()',`Hide')
96 procedure Hide (Pan : in Panel);
100 -- ANCHOR(`panel_window()',`Get_Window')
101 function Get_Window (Pan : Panel) return Window;
103 pragma Inline (Get_Window);
105 -- ANCHOR(`panel_window()',`Panel_Window')
106 function Panel_Window (Pan : Panel) return Window renames Get_Window;
107 pragma Inline (Panel_Window);
109 -- ANCHOR(`replace_panel()',`Replace')
110 procedure Replace (Pan : in Panel;
113 pragma Inline (Replace);
115 -- ANCHOR(`move_panel()',`Move')
116 procedure Move (Pan : in Panel;
117 Line : in Line_Position;
118 Column : in Column_Position);
120 pragma Inline (Move);
122 -- ANCHOR(`panel_hidden()',`Is_Hidden')
123 function Is_Hidden (Pan : Panel) return Boolean;
125 pragma Inline (Is_Hidden);
127 -- ANCHOR(`panel_above()',`Above')
128 function Above (Pan : Panel) return Panel;
130 pragma Import (C, Above, "panel_above");
132 -- ANCHOR(`panel_below()',`Below')
133 function Below (Pan : Panel) return Panel;
135 pragma Import (C, Below, "panel_below");
137 -- ANCHOR(`del_panel()',`Delete')
138 procedure Delete (Pan : in out Panel);
140 pragma Inline (Delete);
143 type Panel is new System.Storage_Elements.Integer_Address;
144 Null_Panel : constant Panel := 0;
146 end Terminal_Interface.Curses.Panels;