2 define(`HTMLNAME',`terminal_interface-curses-menus-menu_user_data_s.html')dnl
4 ------------------------------------------------------------------------------
6 -- GNAT ncurses Binding --
8 -- Terminal_Interface.Curses.Menus.Menu_User_Data --
14 -- The ncurses Ada95 binding is copyrighted 1996 by --
15 -- Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de --
17 -- Permission is hereby granted to reproduce and distribute this --
18 -- binding by any means and for any fee, whether alone or as part --
19 -- of a larger distribution, in source or in binary form, PROVIDED --
20 -- this notice is included with any such distribution, and is not --
21 -- removed from any of its header files. Mention of ncurses and the --
22 -- author of this binding in any applications linked with it is --
23 -- highly appreciated. --
25 -- This binding comes AS IS with no warranty, implied or expressed. --
26 ------------------------------------------------------------------------------
29 ------------------------------------------------------------------------------
32 type User is limited private;
33 type User_Access is access User;
34 package Terminal_Interface.Curses.Menus.Menu_User_Data is
36 -- The binding uses the C level user pointer already for its own
37 -- internal purposes. So you can“t easily manipulate the user pointer
38 -- with the low level C routines for this menu without taking care of
39 -- this special situation. If you want to read or write with C routines
40 -- the user pointer of this menu, you should get first the low level
41 -- user pointer. This points to a record, that always has as its first
42 -- member the Ada95 user pointer for this menu. You should never change
43 -- the low level user pointer of an Ada created menu.
45 -- MANPAGE(`menu_userptr.3x')
47 -- ANCHOR(`set_menu_userptr',`Set_User_Data')
48 procedure Set_User_Data (Men : in Menu;
49 Data : in User_Access);
51 pragma Convention (C, Set_User_Data);
53 -- ANCHOR(`menu_userptr',`Get_User_Data')
54 procedure Get_User_Data (Men : in Menu;
55 Data : out User_Access);
57 pragma Convention (C, Get_User_Data);
59 end Terminal_Interface.Curses.Menus.Menu_User_Data;