]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/ada_include/terminal_interface-curses-text_io-complex_io.ads
ncurses 4.1
[ncurses.git] / Ada95 / ada_include / terminal_interface-curses-text_io-complex_io.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                           GNAT ncurses Binding                           --
4 --                                                                          --
5 --               Terminal_Interface.Curses.Text_IO.Complex_IO               --
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.3 $
26 ------------------------------------------------------------------------------
27 with Ada.Numerics.Generic_Complex_Types;
28
29 generic
30    with package Complex_Types is new Ada.Numerics.Generic_Complex_Types (<>);
31
32 package Terminal_Interface.Curses.Text_IO.Complex_IO is
33
34    use Complex_Types;
35
36    Default_Fore : Field := 2;
37    Default_Aft  : Field := Real'Digits - 1;
38    Default_Exp  : Field := 3;
39    
40    procedure Put
41      (Win  : in Window;
42       Item : in Complex;
43       Fore : in Field := Default_Fore;
44       Aft  : in Field := Default_Aft;
45       Exp  : in Field := Default_Exp);
46
47    procedure Put
48      (Item : in Complex;
49       Fore : in Field := Default_Fore;
50       Aft  : in Field := Default_Aft;
51       Exp  : in Field := Default_Exp);
52
53 private
54    pragma Inline (Put);
55
56 end Terminal_Interface.Curses.Text_IO.Complex_IO;