| 1 |
-- -*- ada -*- |
| 2 |
define(`HTMLNAME',`terminal_interface-curses-panels-user_data__ads.htm')dnl |
| 3 |
include(M4MACRO)dnl |
| 4 |
------------------------------------------------------------------------------ |
| 5 |
-- -- |
| 6 |
-- GNAT ncurses Binding -- |
| 7 |
-- -- |
| 8 |
-- Terminal_Interface.Curses.Panels.User_Data -- |
| 9 |
-- -- |
| 10 |
-- S P E C -- |
| 11 |
-- -- |
| 12 |
------------------------------------------------------------------------------ |
| 13 |
-- Copyright 2020 Thomas E. Dickey -- |
| 14 |
-- Copyright 1998-2003,2009 Free Software Foundation, Inc. -- |
| 15 |
-- -- |
| 16 |
-- Permission is hereby granted, free of charge, to any person obtaining a -- |
| 17 |
-- copy of this software and associated documentation files (the -- |
| 18 |
-- "Software"), to deal in the Software without restriction, including -- |
| 19 |
-- without limitation the rights to use, copy, modify, merge, publish, -- |
| 20 |
-- distribute, distribute with modifications, sublicense, and/or sell -- |
| 21 |
-- copies of the Software, and to permit persons to whom the Software is -- |
| 22 |
-- furnished to do so, subject to the following conditions: -- |
| 23 |
-- -- |
| 24 |
-- The above copyright notice and this permission notice shall be included -- |
| 25 |
-- in all copies or substantial portions of the Software. -- |
| 26 |
-- -- |
| 27 |
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -- |
| 28 |
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- |
| 29 |
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -- |
| 30 |
-- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- |
| 31 |
-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -- |
| 32 |
-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -- |
| 33 |
-- THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- |
| 34 |
-- -- |
| 35 |
-- Except as contained in this notice, the name(s) of the above copyright -- |
| 36 |
-- holders shall not be used in advertising or otherwise to promote the -- |
| 37 |
-- sale, use or other dealings in this Software without prior written -- |
| 38 |
-- authorization. -- |
| 39 |
------------------------------------------------------------------------------ |
| 40 |
-- Author: Juergen Pfeifer, 1996 |
| 41 |
-- Version Control: |
| 42 |
-- $Revision: 1.16 $ |
| 43 |
-- Binding Version 01.00 |
| 44 |
------------------------------------------------------------------------------ |
| 45 |
|
| 46 |
generic |
| 47 |
type User is limited private; |
| 48 |
type User_Access is access all User; |
| 49 |
package Terminal_Interface.Curses.Panels.User_Data is |
| 50 |
pragma Preelaborate (Terminal_Interface.Curses.Panels.User_Data); |
| 51 |
|
| 52 |
-- MANPAGE(`panel.3x') |
| 53 |
|
| 54 |
-- ANCHOR(`set_panel_userptr',`Set_User_Data') |
| 55 |
procedure Set_User_Data (Pan : Panel; |
| 56 |
Data : User_Access); |
| 57 |
-- AKA |
| 58 |
pragma Inline (Set_User_Data); |
| 59 |
|
| 60 |
-- ANCHOR(`panel_userptr',`Get_User_Data') |
| 61 |
procedure Get_User_Data (Pan : Panel; |
| 62 |
Data : out User_Access); |
| 63 |
-- AKA |
| 64 |
|
| 65 |
-- ANCHOR(`panel_userptr',`Get_User_Data') |
| 66 |
function Get_User_Data (Pan : Panel) return User_Access; |
| 67 |
-- AKA |
| 68 |
-- Same as function |
| 69 |
pragma Inline (Get_User_Data); |
| 70 |
|
| 71 |
end Terminal_Interface.Curses.Panels.User_Data; |