5 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
8 <I>------------------------------------------------------------------------------</I>
10 <I>-- <A HREF="http://www.gnat.com">GNAT</A> ncurses Binding --</I>
12 <I>-- Terminal_Interface.Curses.Panels --</I>
16 <I>------------------------------------------------------------------------------</I>
17 <I>-- Copyright (c) 1998 Free Software Foundation, Inc. --</I>
19 <I>-- Permission is hereby granted, free of charge, to any person obtaining a --</I>
20 <I>-- copy of this software and associated documentation files (the --</I>
21 <I>-- "Software"), to deal in the Software without restriction, including --</I>
22 <I>-- without limitation the rights to use, copy, modify, merge, publish, --</I>
23 <I>-- distribute, distribute with modifications, sublicense, and/or sell --</I>
24 <I>-- copies of the Software, and to permit persons to whom the Software is --</I>
25 <I>-- furnished to do so, subject to the following conditions: --</I>
27 <I>-- The above copyright notice and this permission notice shall be included --</I>
28 <I>-- in all copies or substantial portions of the Software. --</I>
30 <I>-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --</I>
31 <I>-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --</I>
32 <I>-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --</I>
33 <I>-- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --</I>
34 <I>-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --</I>
35 <I>-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --</I>
36 <I>-- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --</I>
38 <I>-- Except as contained in this notice, the name(s) of the above copyright --</I>
39 <I>-- holders shall not be used in advertising or otherwise to promote the --</I>
40 <I>-- sale, use or other dealings in this Software without prior written --</I>
41 <I>-- authorization. --</I>
42 <I>------------------------------------------------------------------------------</I>
43 <I>-- <A HREF="http://home.t-online.de/home/Juergen.Pfeifer">Jürgen Pfeifer</A>, Email: <A HREF="mailto:Juergen.Pfeifer@T-Online.de">Juergen.Pfeifer@T-Online.de</A> --</I>
44 <I>-- Version Control:</I>
45 <I>-- @Revision: 1.3 @</I>
46 <I>------------------------------------------------------------------------------</I>
49 <B>package</B> Terminal_Interface.Curses.Panels <B>is</B>
51 <B>pragma</B> Linker_Options ("-lpanel");
54 type Panel <B>is</B> <B>private</B>;
56 <I>---------------------------</I>
57 <I>-- Interface constants --</I>
58 <I>---------------------------</I>
59 Null_Panel : <B>constant</B> Panel;
61 <I>-------------------</I>
62 <I>-- Exceptions --</I>
63 <I>-------------------</I>
65 Panel_Exception : <B>exception</B>;
67 <I>-- |=====================================================================</I>
68 <I>-- | Man page <A HREF="panel.3x.html">panel.3x</A></I>
69 <I>-- |=====================================================================</I>
71 <I>-- <A NAME="AFU_1">|</I>
72 <B>function</B> Create (Win : Window) <B>return</B> Panel;
73 <I>-- AKA: <A HREF="panel.3x.html">new_panel()</A></I>
75 <I>-- <A NAME="AFU_2">|</I>
76 <B>function</B> New_Panel (Win : Window) <B>return</B> Panel <B>renames</B> Create;
77 <I>-- AKA: <A HREF="panel.3x.html">new_panel()</A></I>
79 <I>-- <A NAME="AFU_3">|</I>
80 <B>procedure</B> Bottom (Pan : <B>in</B> Panel);
81 <I>-- AKA: <A HREF="panel.3x.html">bottom_panel()</A></I>
83 <I>-- <A NAME="AFU_4">|</I>
84 <B>procedure</B> Top (Pan : <B>in</B> Panel);
85 <I>-- AKA: <A HREF="panel.3x.html">top_panel()</A></I>
87 <I>-- <A NAME="AFU_5">|</I>
88 <B>procedure</B> Show (Pan : <B>in</B> Panel);
89 <I>-- AKA: <A HREF="panel.3x.html">show_panel()</A></I>
91 <I>-- <A NAME="AFU_6">|</I>
92 <B>procedure</B> Update_Panels;
93 <I>-- AKA: <A HREF="panel.3x.html">update_panels()</A></I>
94 <B>pragma</B> Import (C, Update_Panels, "update_panels");
96 <I>-- <A NAME="AFU_7">|</I>
97 <B>procedure</B> Hide (Pan : <B>in</B> Panel);
98 <I>-- AKA: <A HREF="panel.3x.html">hide_panel()</A></I>
100 <I>-- <A NAME="AFU_8">|</I>
101 <B>function</B> Get_Window (Pan : Panel) <B>return</B> Window;
102 <I>-- AKA: <A HREF="panel.3x.html">panel_window()</A></I>
104 <I>-- <A NAME="AFU_9">|</I>
105 <B>function</B> Panel_Window (Pan : Panel) <B>return</B> Window <B>renames</B> Get_Window;
107 <I>-- <A NAME="AFU_10">|</I>
108 <B>procedure</B> Replace (Pan : <B>in</B> Panel;
109 Win : <B>in</B> Window);
110 <I>-- AKA: <A HREF="panel.3x.html">replace_panel()</A></I>
112 <I>-- <A NAME="AFU_11">|</I>
113 <B>procedure</B> Move (Pan : <B>in</B> Panel;
114 Line : <B>in</B> Line_Position;
115 Column : <B>in</B> Column_Position);
116 <I>-- AKA: <A HREF="panel.3x.html">move_panel()</A></I>
118 <I>-- <A NAME="AFU_12">|</I>
119 <B>function</B> Is_Hidden (Pan : Panel) <B>return</B> Boolean;
120 <I>-- AKA: <A HREF="panel.3x.html">panel_hidden()</A></I>
122 <I>-- <A NAME="AFU_13">|</I>
123 <B>function</B> Above (Pan : Panel) <B>return</B> Panel;
124 <I>-- AKA: <A HREF="panel.3x.html">panel_above()</A></I>
125 <B>pragma</B> Import (C, Above, "panel_above");
127 <I>-- <A NAME="AFU_14">|</I>
128 <B>function</B> Below (Pan : Panel) <B>return</B> Panel;
129 <I>-- AKA: <A HREF="panel.3x.html">panel_below()</A></I>
130 <B>pragma</B> Import (C, Below, "panel_below");
132 <I>-- <A NAME="AFU_15">|</I>
133 <B>procedure</B> Delete (Pan : <B>in</B> <B>out</B> Panel);
134 <I>-- AKA: <A HREF="panel.3x.html">del_panel()</A></I>
137 type Panel <B>is</B> <B>new</B> System.Address;
138 Null_Panel : <B>constant</B> Panel := Panel (System.Null_Address);
140 <B>end</B> Terminal_Interface.Curses.Panels;
146 This is BETA software. The interface is subject to change without notice.<P>
147 <!-- Do NOT delete my name or the tool name from below; -->
148 <!-- giving me credit is a condition of use of ada2html -->
149 <P><I>This hypertext format was generated by <A HREF="http://www.adahome.com/Tutorials/Lovelace/dwheeler.htm">David A. Wheeler</A>'s <A HREF="http://www.adahome.com/Resources/Tools/ada2html/ada2html.htm">ada2html</A></I>