]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/ada_include/terminal_interface-curses-forms-choice_field_types.ads
24a9375f2b373bd7a15192a3224e3af49bd5d138
[ncurses.git] / Ada95 / ada_include / terminal_interface-curses-forms-choice_field_types.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                           GNAT ncurses Binding                           --
4 --                                                                          --
5 --              Terminal_Interface.Curses.Forms.Choice_Field_Types          --
6 --                                                                          --
7 --                                 S P E C                                  --
8 --                                                                          --
9 --  Version 00.92                                                           --
10 --                                                                          --
11 --  The ncurses Ada95 binding is copyrighted 1996 by                        --
12 --  Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de                     --
13 --                                                                          --
14 --  Permission is hereby granted to reproduce and distribute this           --
15 --  binding by any means and for any fee, whether alone or as part          --
16 --  of a larger distribution, in source or in binary form, PROVIDED         --
17 --  this notice is included with any such distribution, and is not          --
18 --  removed from any of its header files. Mention of ncurses and the        --
19 --  author of this binding in any applications linked with it is            --
20 --  highly appreciated.                                                     --
21 --                                                                          --
22 --  This binding comes AS IS with no warranty, implied or expressed.        --
23 ------------------------------------------------------------------------------
24 --  Version Control:
25 --  $Revision: 1.6 $
26 ------------------------------------------------------------------------------
27 --  You must instantiate this package for any user defined field type
28 --  to make it visible to the runtime.
29 --
30 generic
31    type User is new Ada_Defined_Field_Type with private;
32    type User_Access is access User;
33    with function Field_Check (Fld  : Field;
34                               Info : User_Access) return Boolean;
35    with function Character_Check (Ch   : Character;
36                                   Info : User_Access) return Boolean;
37    with function Next_Choice (Fld  : Field;
38                               Info : User_Access) return Boolean;
39    with function Prev_Choice (Fld  : Field;
40                               Info : User_Access) return Boolean;
41 package Terminal_Interface.Curses.Forms.Choice_Field_Types is
42 --
43 --  Nothing public.
44 --  But we need the body.
45     pragma Elaborate_Body;
46 end Terminal_Interface.Curses.Forms.Choice_Field_Types;