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