1 <HTML><HEAD><TITLE>terminal_interface-curses-panels.ads</TITLE></HEAD>
3 <HR><DIV ALIGN="center"><H1> File : terminal_interface-curses-panels.ads </H1></DIV><HR>
6 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
7 <FONT COLOR=green><EM>-- --</EM></FONT>
8 <FONT COLOR=green><EM>-- <A HREF="http://www.gnat.com">GNAT</A> ncurses Binding --</EM></FONT>
9 <FONT COLOR=green><EM>-- --</EM></FONT>
10 <FONT COLOR=green><EM>-- Terminal_Interface.Curses.Panels --</EM></FONT>
11 <FONT COLOR=green><EM>-- --</EM></FONT>
12 <FONT COLOR=green><EM>-- S P E C --</EM></FONT>
13 <FONT COLOR=green><EM>-- --</EM></FONT>
14 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
15 <FONT COLOR=green><EM>-- Copyright (c) 1998 Free Software Foundation, Inc. --</EM></FONT>
16 <FONT COLOR=green><EM>-- --</EM></FONT>
17 <FONT COLOR=green><EM>-- Permission is hereby granted, free of charge, to any person obtaining a --</EM></FONT>
18 <FONT COLOR=green><EM>-- copy of this software and associated documentation files (the --</EM></FONT>
19 <FONT COLOR=green><EM>-- "Software"), to deal in the Software without restriction, including --</EM></FONT>
20 <FONT COLOR=green><EM>-- without limitation the rights to use, copy, modify, merge, publish, --</EM></FONT>
21 <FONT COLOR=green><EM>-- distribute, distribute with modifications, sublicense, and/or sell --</EM></FONT>
22 <FONT COLOR=green><EM>-- copies of the Software, and to permit persons to whom the Software is --</EM></FONT>
23 <FONT COLOR=green><EM>-- furnished to do so, subject to the following conditions: --</EM></FONT>
24 <FONT COLOR=green><EM>-- --</EM></FONT>
25 <FONT COLOR=green><EM>-- The above copyright notice and this permission notice shall be included --</EM></FONT>
26 <FONT COLOR=green><EM>-- in all copies or substantial portions of the Software. --</EM></FONT>
27 <FONT COLOR=green><EM>-- --</EM></FONT>
28 <FONT COLOR=green><EM>-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --</EM></FONT>
29 <FONT COLOR=green><EM>-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --</EM></FONT>
30 <FONT COLOR=green><EM>-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --</EM></FONT>
31 <FONT COLOR=green><EM>-- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --</EM></FONT>
32 <FONT COLOR=green><EM>-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --</EM></FONT>
33 <FONT COLOR=green><EM>-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --</EM></FONT>
34 <FONT COLOR=green><EM>-- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --</EM></FONT>
35 <FONT COLOR=green><EM>-- --</EM></FONT>
36 <FONT COLOR=green><EM>-- Except as contained in this notice, the name(s) of the above copyright --</EM></FONT>
37 <FONT COLOR=green><EM>-- holders shall not be used in advertising or otherwise to promote the --</EM></FONT>
38 <FONT COLOR=green><EM>-- sale, use or other dealings in this Software without prior written --</EM></FONT>
39 <FONT COLOR=green><EM>-- authorization. --</EM></FONT>
40 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
41 <FONT COLOR=green><EM>-- Author: Juergen Pfeifer, 1996</EM></FONT>
42 <FONT COLOR=green><EM>-- Version Control:</EM></FONT>
43 <FONT COLOR=green><EM>-- @Revision: 1.17 @</EM></FONT>
44 <FONT COLOR=green><EM>-- Binding Version 01.00</EM></FONT>
45 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
48 <b>package</b> Terminal_Interface.Curses.Panels <b>is</b>
49 <b>pragma</b> Preelaborate (Terminal_Interface.Curses.Panels);
50 <b>pragma</b> Linker_Options ("-lpanel");
51 <b>pragma</b> Linker_Options ("-lncurses");
53 <b>type</b> Panel <b>is</b> <b>private</b>;
55 <FONT COLOR=green><EM>---------------------------</EM></FONT>
56 <FONT COLOR=green><EM>-- Interface constants --</EM></FONT>
57 <FONT COLOR=green><EM>---------------------------</EM></FONT>
58 Null_Panel : <b>constant</b> Panel;
60 <FONT COLOR=green><EM>-------------------</EM></FONT>
61 <FONT COLOR=green><EM>-- Exceptions --</EM></FONT>
62 <FONT COLOR=green><EM>-------------------</EM></FONT>
64 Panel_Exception : <b>exception</b>;
66 <FONT COLOR=green><EM>-- |=====================================================================</EM></FONT>
67 <FONT COLOR=green><EM>-- | Man page <A HREF="../man/panel.3x.html">panel.3x</A></EM></FONT>
68 <FONT COLOR=green><EM>-- |=====================================================================</EM></FONT>
70 <FONT COLOR=green><EM>-- #1A NAME="AFU_1"#2|</EM></FONT>
71 <b>function</b> Create (Win : Window) <b>return</b> Panel;
72 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">new_panel()</A></EM></FONT>
73 <b>pragma</b> Inline (Create);
75 <FONT COLOR=green><EM>-- #1A NAME="AFU_2"#2|</EM></FONT>
76 <b>function</b> New_Panel (Win : Window) <b>return</b> Panel <b>renames</b> Create;
77 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">new_panel()</A></EM></FONT>
78 <b>pragma</b> Inline (New_Panel);
80 <FONT COLOR=green><EM>-- #1A NAME="AFU_3"#2|</EM></FONT>
81 <b>procedure</b> Bottom (Pan : <b>in</b> Panel);
82 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">bottom_panel()</A></EM></FONT>
83 <b>pragma</b> Inline (Bottom);
85 <FONT COLOR=green><EM>-- #1A NAME="AFU_4"#2|</EM></FONT>
86 <b>procedure</b> Top (Pan : <b>in</b> Panel);
87 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">top_panel()</A></EM></FONT>
88 <b>pragma</b> Inline (Top);
90 <FONT COLOR=green><EM>-- #1A NAME="AFU_5"#2|</EM></FONT>
91 <b>procedure</b> Show (Pan : <b>in</b> Panel);
92 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">show_panel()</A></EM></FONT>
93 <b>pragma</b> Inline (Show);
95 <FONT COLOR=green><EM>-- #1A NAME="AFU_6"#2|</EM></FONT>
96 <b>procedure</b> Update_Panels;
97 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">update_panels()</A></EM></FONT>
98 <b>pragma</b> Import (C, Update_Panels, "update_panels");
100 <FONT COLOR=green><EM>-- #1A NAME="AFU_7"#2|</EM></FONT>
101 <b>procedure</b> Hide (Pan : <b>in</b> Panel);
102 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">hide_panel()</A></EM></FONT>
103 <b>pragma</b> Inline (Hide);
105 <FONT COLOR=green><EM>-- #1A NAME="AFU_8"#2|</EM></FONT>
106 <b>function</b> Get_Window (Pan : Panel) <b>return</b> Window;
107 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">panel_window()</A></EM></FONT>
108 <b>pragma</b> Inline (Get_Window);
110 <FONT COLOR=green><EM>-- #1A NAME="AFU_9"#2|</EM></FONT>
111 <b>function</b> Panel_Window (Pan : Panel) <b>return</b> Window <b>renames</b> Get_Window;
112 <b>pragma</b> Inline (Panel_Window);
114 <FONT COLOR=green><EM>-- #1A NAME="AFU_10"#2|</EM></FONT>
115 <b>procedure</b> Replace (<FONT COLOR=red><A NAME="111_23">Pan</A></FONT> : <b>in</b> <A HREF="terminal_interface-curses__ads.htm#56_9">Panel</A>;
116 Win : <b>in</b> Window);
117 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">replace_panel()</A></EM></FONT>
118 <b>pragma</b> Inline (Replace);
120 <FONT COLOR=green><EM>-- #1A NAME="AFU_11"#2|</EM></FONT>
121 <b>procedure</b> Move (<FONT COLOR=red><A NAME="117_20">Pan</A></FONT> : <b>in</b> <A HREF="terminal_interface-curses__ads.htm#59_9">Panel</A>;
122 <FONT COLOR=red><A NAME="118_20">Line</A></FONT> : <b>in</b> <A HREF="terminal_interface-curses__ads.htm#60_9">Line_Position</A>;
123 Column : <b>in</b> Column_Position);
124 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">move_panel()</A></EM></FONT>
125 <b>pragma</b> Inline (Move);
127 <FONT COLOR=green><EM>-- #1A NAME="AFU_12"#2|</EM></FONT>
128 <b>function</b> Is_Hidden (Pan : Panel) <b>return</b> Boolean;
129 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">panel_hidden()</A></EM></FONT>
130 <b>pragma</b> Inline (Is_Hidden);
132 <FONT COLOR=green><EM>-- #1A NAME="AFU_13"#2|</EM></FONT>
133 <b>function</b> Above (Pan : Panel) <b>return</b> Panel;
134 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">panel_above()</A></EM></FONT>
135 <b>pragma</b> Import (C, Above, "panel_above");
137 <FONT COLOR=green><EM>-- #1A NAME="AFU_14"#2|</EM></FONT>
138 <b>function</b> Below (Pan : Panel) <b>return</b> Panel;
139 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">panel_below()</A></EM></FONT>
140 <b>pragma</b> Import (C, Below, "panel_below");
142 <FONT COLOR=green><EM>-- #1A NAME="AFU_15"#2|</EM></FONT>
143 <b>procedure</b> Delete (Pan : <b>in</b> <b>out</b> Panel);
144 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/panel.3x.html">del_panel()</A></EM></FONT>
145 <b>pragma</b> Inline (Delete);
148 <b>type</b> Panel <b>is</b> <b>new</b> System.Storage_Elements.Integer_Address;
149 Null_Panel : <b>constant</b> Panel := 0;
151 <b>end</b> Terminal_Interface.Curses.Panels;