2 define(`HTMLNAME',`terminal_interface-curses-menus-item_user_data_s.html')dnl
4 ------------------------------------------------------------------------------
6 -- GNAT ncurses Binding --
8 -- Terminal_Interface.Curses.Menus.Item_User_Data --
12 ------------------------------------------------------------------------------
13 -- Copyright (c) 1998 Free Software Foundation, Inc. --
15 -- Permission is hereby granted, free of charge, to any person obtaining a --
16 -- copy of this software and associated documentation files (the --
17 -- "Software"), to deal in the Software without restriction, including --
18 -- without limitation the rights to use, copy, modify, merge, publish, --
19 -- distribute, distribute with modifications, sublicense, and/or sell --
20 -- copies of the Software, and to permit persons to whom the Software is --
21 -- furnished to do so, subject to the following conditions: --
23 -- The above copyright notice and this permission notice shall be included --
24 -- in all copies or substantial portions of the Software. --
26 -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
27 -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
28 -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
29 -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
30 -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
31 -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --
32 -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
34 -- Except as contained in this notice, the name(s) of the above copyright --
35 -- holders shall not be used in advertising or otherwise to promote the --
36 -- sale, use or other dealings in this Software without prior written --
38 ------------------------------------------------------------------------------
39 -- Author: Juergen Pfeifer <Juergen.Pfeifer@T-Online.de> 1996
42 -- Binding Version 00.93
43 ------------------------------------------------------------------------------
46 type User is limited private;
47 type User_Access is access User;
48 package Terminal_Interface.Curses.Menus.Item_User_Data is
49 pragma Preelaborate (Item_User_Data);
51 -- The binding uses the same user pointer for menu items
52 -- as the low level C implementation. So you can safely
53 -- read or write the user pointer also with the C routines
55 -- MANPAGE(`mitem_userptr.3x')
57 -- ANCHOR(`set_item_userptr',`Set_User_Data')
58 procedure Set_User_Data (Itm : in Item;
59 Data : in User_Access);
61 pragma Inline (Set_User_Data);
63 -- ANCHOR(`item_userptr',`Get_User_Data')
64 procedure Get_User_Data (Itm : in Item;
65 Data : out User_Access);
68 -- ANCHOR(`item_userptr',`Get_User_Data')
69 function Get_User_Data (Itm : in Item) return User_Access;
72 pragma Inline (Get_User_Data);
74 end Terminal_Interface.Curses.Menus.Item_User_Data;