⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 terminal_interface-curses-forms-field_types__ads.htm

📁 ncurses-5.4
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<HTML><HEAD><TITLE>terminal_interface-curses-forms-field_types.ads</TITLE></HEAD><BODY><HR><DIV ALIGN="center"><H1> File : terminal_interface-curses-forms-field_types.ads </H1></DIV><HR><PRE><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>--                           <A HREF="http://www.gnat.com">GNAT</A> ncurses Binding                           --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>--                 Terminal_Interface.Curses.Forms.Field_Types              --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>--                                 S P E C                                  --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><FONT COLOR=green><EM>-- Copyright (c) 1998 Free Software Foundation, Inc.                        --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>-- Permission is hereby granted, free of charge, to any person obtaining a  --</EM></FONT><FONT COLOR=green><EM>-- copy of this software and associated documentation files (the            --</EM></FONT><FONT COLOR=green><EM>-- "Software"), to deal in the Software without restriction, including      --</EM></FONT><FONT COLOR=green><EM>-- without limitation the rights to use, copy, modify, merge, publish,      --</EM></FONT><FONT COLOR=green><EM>-- distribute, distribute with modifications, sublicense, and/or sell       --</EM></FONT><FONT COLOR=green><EM>-- copies of the Software, and to permit persons to whom the Software is    --</EM></FONT><FONT COLOR=green><EM>-- furnished to do so, subject to the following conditions:                 --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>-- The above copyright notice and this permission notice shall be included  --</EM></FONT><FONT COLOR=green><EM>-- in all copies or substantial portions of the Software.                   --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  --</EM></FONT><FONT COLOR=green><EM>-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               --</EM></FONT><FONT COLOR=green><EM>-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   --</EM></FONT><FONT COLOR=green><EM>-- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   --</EM></FONT><FONT COLOR=green><EM>-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    --</EM></FONT><FONT COLOR=green><EM>-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    --</EM></FONT><FONT COLOR=green><EM>-- THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>-- Except as contained in this notice, the name(s) of the above copyright   --</EM></FONT><FONT COLOR=green><EM>-- holders shall not be used in advertising or otherwise to promote the     --</EM></FONT><FONT COLOR=green><EM>-- sale, use or other dealings in this Software without prior written       --</EM></FONT><FONT COLOR=green><EM>-- authorization.                                                           --</EM></FONT><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><FONT COLOR=green><EM>--  Author:  Juergen Pfeifer, 1996</EM></FONT><FONT COLOR=green><EM>--  Version Control:</EM></FONT><FONT COLOR=green><EM>--  @Revision: 1.14 @</EM></FONT><FONT COLOR=green><EM>--  Binding Version 01.00</EM></FONT><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><b>with</b> Interfaces.C;<b>package</b> Terminal_Interface.Curses.Forms.Field_Types <b>is</b>   <b>pragma</b> Preelaborate (Terminal_Interface.Curses.Forms.Field_Types);   <b>use</b> <b>type</b><FONT COLOR=red><A NAME="46_12"> </A></FONT>Interfaces.C.int;   <b>subtype</b> C_Int <b>is</b> Interfaces.C.int;   <FONT COLOR=green><EM>--  |=====================================================================</EM></FONT>   <FONT COLOR=green><EM>--  | Man page <A HREF="../man/form_fieldtype.3x.html">form_fieldtype.3x</A></EM></FONT>   <FONT COLOR=green><EM>--  |=====================================================================</EM></FONT>   <b>type</b> Field_Type <b>is</b> <b>abstract</b> <b>tagged</b> <b>null</b> <b>record</b>;   <FONT COLOR=green><EM>--  Abstract base type for all field types. A concrete field type</EM></FONT>   <FONT COLOR=green><EM>--  is an extension that adds some data elements describing formats or</EM></FONT>   <FONT COLOR=green><EM>--  boundary values for the type and validation routines.</EM></FONT>   <FONT COLOR=green><EM>--  For the builtin low-level fieldtypes, the validation routines are</EM></FONT>   <FONT COLOR=green><EM>--  already defined by the low-level C library.</EM></FONT>   <FONT COLOR=green><EM>--  The builtin types like Alpha or AlphaNumeric etc. are defined in</EM></FONT>   <FONT COLOR=green><EM>--  child packages of this package. You may use one of them as example</EM></FONT>   <FONT COLOR=green><EM>--  how to create you own child packages for low-level field types that</EM></FONT>   <FONT COLOR=green><EM>--  you may have already written in C.</EM></FONT>   <b>type</b> Field_Type_Access <b>is</b> <b>access</b> <b>all</b> Field_Type'Class;   <FONT COLOR=green><EM>--  #1A NAME="AFU_1"#2|</EM></FONT>   <b>procedure</b> Set_Field_Type (<FONT COLOR=red><A NAME="67_30">Fld</A></FONT>      : <b>in</b> <A HREF="terminal_interface-curses-forms-field_types__ads.htm#52_9">Field</A>;                             Fld_Type : <b>in</b> Field_Type) <b>is</b> <b>abstract</b>;   <FONT COLOR=green><EM>--  AKA: <A HREF="../man/form_fieldtype.3x.html">set_field_type()</A></EM></FONT>   <FONT COLOR=green><EM>--  But: we hide the vararg mechanism of the C interface. You always</EM></FONT>   <FONT COLOR=green><EM>--       have to pass a single Field_Type parameter.</EM></FONT>   <FONT COLOR=green><EM>--  ---------------------------------------------------------------------</EM></FONT>   <FONT COLOR=green><EM>--  |=====================================================================</EM></FONT>   <FONT COLOR=green><EM>--  | Man page <A HREF="../man/form_field_validation.3x.html">form_field_validation.3x</A></EM></FONT>   <FONT COLOR=green><EM>--  |=====================================================================</EM></FONT>   <FONT COLOR=green><EM>--  #1A NAME="AFU_2"#2|</EM></FONT>   <b>function</b> Get_Type (Fld : <b>in</b> Field) <b>return</b> Field_Type_Access;   <FONT COLOR=green><EM>--  AKA: <A HREF="../man/form_field_validation.3x.html">field_type()</A></EM></FONT>   <FONT COLOR=green><EM>--  AKA: field_arg()</EM></FONT>   <FONT COLOR=green><EM>--  In Ada95 we can combine these. If you try to retrieve the field type</EM></FONT>   <FONT COLOR=green><EM>--  that is not defined as extension of the abstract tagged type above,</EM></FONT>   <FONT COLOR=green><EM>--  you will raise a Form_Exception.</EM></FONT>   <FONT COLOR=green><EM>--  This is not inlined</EM></FONT>   <FONT COLOR=green><EM>--  +----------------------------------------------------------------------</EM></FONT>   <FONT COLOR=green><EM>--  | Private Part.</EM></FONT>   <FONT COLOR=green><EM>--  | Most of this is used by the implementations of the child packages.</EM></FONT>   <FONT COLOR=green><EM>--  |</EM></FONT><b>private</b>   <b>type</b> Makearg_Function <b>is</b> <b>access</b>     <b>function</b> (Args : System.Address) <b>return</b> System.Address;   <b>pragma</b> Convention (C, Makearg_Function);   <b>type</b> Copyarg_Function <b>is</b> <b>access</b>     <b>function</b> (Usr : System.Address) <b>return</b> System.Address;   <b>pragma</b> Convention (C, Copyarg_Function);   <b>type</b> Freearg_Function <b>is</b> <b>access</b>     <b>procedure</b> (Usr : System.Address);   <b>pragma</b> Convention (C, Freearg_Function);   <b>type</b> Field_Check_Function<FONT COLOR=red><A NAME="105_29"> </A></FONT><b>is</b> <b>access</b>     <b>function</b> (Fld : Field; Usr : System.Address) <b>return</b> C_Int;   <b>pragma</b> Convention (C, Field_Check_Function);   <b>type</b> Char_Check_Function<FONT COLOR=red><A NAME="109_28"> </A></FONT><b>is</b> <b>access</b>     <b>function</b> (Ch : C_Int<A HREF="terminal_interface-curses-forms-field_types__ads.htm#108_9">;</A> Usr : System.Address) <b>return</b> C_Int;   <b>pragma</b> Convention (C, Char_Check_Function);   <b>type</b> Choice_Function <b>is</b> <b>access</b>     <b>function</b> (Fld : Field; Usr : System.Address) <b>return</b> C_Int;   <b>pragma</b> Convention (C, Choice_Function);   <FONT COLOR=green><EM>--  +----------------------------------------------------------------------</EM></FONT>   <FONT COLOR=green><EM>--  | This must be in sync with the FIELDTYPE structure in form.h</EM></FONT>   <FONT COLOR=green><EM>--  |</EM></FONT>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -