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

📄 terminal_interface-curses-mouse__ads.htm

📁 ncurses 库 可能有用酒用 没用就算了 我觉得还可以用
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><TITLE>terminal_interface-curses-mouse.ads</TITLE></HEAD><BODY><HR><DIV ALIGN="center"><H1> File : terminal_interface-curses-mouse.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.Mouse                     --</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,2004 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.25 @</EM></FONT><FONT COLOR=green><EM>--  @Date: 2004/08/21 21:37:00 @</EM></FONT><FONT COLOR=green><EM>--  Binding Version 01.00</EM></FONT><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><FONT COLOR=green><EM>--  mouse binding.</EM></FONT><FONT COLOR=green><EM>--  This module is generated. Please don't change it manually!</EM></FONT><FONT COLOR=green><EM>--  Run the generator instead.</EM></FONT><FONT COLOR=green><EM>--  |</EM></FONT><b>with</b> System;<b>package</b> Terminal_Interface.Curses.Mouse <b>is</b>   <b>pragma</b> Preelaborate (Terminal_Interface.Curses.Mouse);   <FONT COLOR=green><EM>--  |=====================================================================</EM></FONT>   <FONT COLOR=green><EM>--  | Man page <A HREF="../man/curs_mouse.3x.html">curs_mouse.3x</A></EM></FONT>   <FONT COLOR=green><EM>--  |=====================================================================</EM></FONT>   <FONT COLOR=green><EM>--  Please note, that in ncurses-1.9.9e documentation mouse support</EM></FONT>   <FONT COLOR=green><EM>--  is still marked as experimental. So also this binding will change</EM></FONT>   <FONT COLOR=green><EM>--  if the ncurses methods change.</EM></FONT>   <FONT COLOR=green><EM>--</EM></FONT>   <FONT COLOR=green><EM>--  mouse_trafo, wmouse_trafo are implemented as Transform_Coordinates</EM></FONT>   <FONT COLOR=green><EM>--  in the parent package.</EM></FONT>   <FONT COLOR=green><EM>--</EM></FONT>   <FONT COLOR=green><EM>--  Not implemented:</EM></FONT>   <FONT COLOR=green><EM>--  REPORT_MOUSE_POSITION (i.e. as a parameter to Register_Reportable_Event</EM></FONT>   <FONT COLOR=green><EM>--  or Start_Mouse)</EM></FONT>   <b>type</b> Event_Mask <b>is</b> <b>private</b>;   <FONT COLOR=red><A NAME="ref_66_4">No_Events</A></FONT>  : <b>constant</b> <A HREF="terminal_interface-curses-mouse__ads.htm#ref_64_9">Event_Mask</A>;   All_Events : <b>constant</b> Event_Mask;   <b>type</b> Mouse_Button <b>is</b> (<FONT COLOR=red><A NAME="ref_69_26">Left</A></FONT>,     <FONT COLOR=green><EM>-- aka: Button 1</EM></FONT>                         <FONT COLOR=red><A NAME="ref_70_26">Middle</A></FONT>,   <FONT COLOR=green><EM>-- aka: Button 2</EM></FONT>                         <FONT COLOR=red><A NAME="ref_71_26">Right</A></FONT>,    <FONT COLOR=green><EM>-- aka: Button 3</EM></FONT>                         <FONT COLOR=red><A NAME="ref_72_26">Button4</A></FONT>,  <FONT COLOR=green><EM>-- aka: Button 4</EM></FONT>                         <FONT COLOR=red><A NAME="ref_73_26">Control</A></FONT>,  <FONT COLOR=green><EM>-- Control Key</EM></FONT>                         <FONT COLOR=red><A NAME="ref_74_26">Shift</A></FONT>,    <FONT COLOR=green><EM>-- Shift Key</EM></FONT>                         Alt);     <FONT COLOR=green><EM>-- ALT Key</EM></FONT>   <b>subtype</b> <FONT COLOR=red><A NAME="ref_77_12">Real_Buttons</A></FONT>  <b>is</b> <A HREF="terminal_interface-curses-mouse__ads.htm#ref_68_9">Mouse_Button</A> <b>range</b> <A HREF="terminal_interface-curses-mouse__ads.htm#ref_72_26">Left</A> .. Button4;   <b>subtype</b> Modifier_Keys <b>is</b> Mouse_Button <b>range</b> Control .. Alt;   <b>type</b> Button_State <b>is</b> (<FONT COLOR=red><A NAME="ref_80_26">Released</A></FONT>,                         <FONT COLOR=red><A NAME="ref_81_26">Pressed</A></FONT>,                         <FONT COLOR=red><A NAME="ref_82_26">Clicked</A></FONT>,                         <FONT COLOR=red><A NAME="ref_83_26">Double_Clicked</A></FONT>,                         Triple_Clicked);   <b>type</b> Button_States <b>is</b> <b>array</b> (Button_State) <b>of</b> Boolean;   <b>pragma</b> Pack (Button_States);   All_Clicks : <b>constant</b> Button_States := (Clicked .. Triple_Clicked =&gt; True,   <FONT COLOR=red><A NAME="ref_90_4"> </A></FONT>                     <A HREF="terminal_interface-curses-mouse__ads.htm#ref_85_9"> </A>                 <b>others</b> =&gt; False);   All_States : <b>constant</b> Button_States := (<b>others</b> =&gt; True);   <b>type</b> Mouse_Event <b>is</b> <b>private</b>;   <FONT COLOR=green><EM>--  |=====================================================================</EM></FONT>   <FONT COLOR=green><EM>--  | Man page <A HREF="../man/curs_mouse.3x.html">curs_mouse.3x</A></EM></FONT>   <FONT COLOR=green><EM>--  |=====================================================================</EM></FONT>   <b>function</b> Has_Mouse <b>return</b> Boolean;   <FONT COLOR=green><EM>--  Return true if a mouse device is supported, false otherwise.</EM></FONT>   <b>procedure</b> Register_Reportable_Event     (<FONT COLOR=red><A NAME="ref_103_7" HREF="terminal_interface-curses-mouse__adb.htm#ref_81_41">Button</A></FONT> : <b>in</b> <A HREF="terminal_interface-curses-mouse__ads.htm#ref_79_9">Mouse_Button</A>;      <FONT COLOR=red><A NAME="ref_104_7" HREF="terminal_interface-curses-mouse__adb.htm#ref_82_41">State</A></FONT>  : <b>in</b> Button_State;      Mask   : <b>in</b> <b>out</b> Event_Mask);   <FONT COLOR=green><EM>--  Stores the event described by the button and the state in the mask.</EM></FONT>   <FONT COLOR=green><EM>--  Before you call this the first time, you should init the mask</EM></FONT>   <FONT COLOR=green><EM>--  with the Empty_Mask constant</EM></FONT>   <b>pragma</b> Inline (Register_Reportable_Event);   <b>procedure</b> Register_Reportable_Events     (<FONT COLOR=red><A NAME="ref_112_7" HREF="terminal_interface-curses-mouse__adb.htm#ref_99_42">Button</A></FONT> : <b>in</b> <A HREF="terminal_interface-curses-mouse__ads.htm#ref_85_9">Mouse_Button</A>;      <FONT COLOR=red><A NAME="ref_113_7" HREF="terminal_interface-curses-mouse__adb.htm#ref_100_42">State</A></FONT>  : <b>in</b> Button_States;      Mask   : <b>in</b> <b>out</b> Event_Mask);

⌨️ 快捷键说明

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