1 ------------------------------------------------------------------------------
3 -- GNAT ncurses Binding --
5 -- Terminal_Interface.Curses.Forms.Field_Types --
11 -- The ncurses Ada95 binding is copyrighted 1996 by --
12 -- Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de --
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. --
22 -- This binding comes AS IS with no warranty, implied or expressed. --
23 ------------------------------------------------------------------------------
26 ------------------------------------------------------------------------------
27 with Ada.Finalization; use Ada.Finalization;
29 -- You must instantiate this package for any user defined field type
30 -- to make it visible to the runtime.
33 type User is new Ada_Defined_Field_Type with private;
34 type User_Access is access User;
35 with function Field_Check (Fld : Field;
36 Info : User_Access) return Boolean;
37 with function Character_Check (Ch : Character;
38 Info : User_Access) return Boolean;
39 package Terminal_Interface.Curses.Forms.Field_Types is
41 -- Nothing public. All happens magically.
44 type Tracker is new Limited_Controlled with null record;
46 procedure Initialize (Obj : in out Tracker);
47 procedure Finalize (Obj : in out Tracker);
49 end Terminal_Interface.Curses.Forms.Field_Types;