X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fada%2Fterminal_interface-curses-mouse__ads.htm;h=0c4545a43adbaeccbcb11a78262bcd65e9f0aaac;hp=759d948213c445257c9c2f81a548ce234ea65d0a;hb=db5f7f4f146a91ba8ec7f1df8e9d7f9d2d7c74fd;hpb=34d602f272c394e9a980438e636e1ce4d355f83b diff --git a/doc/html/ada/terminal_interface-curses-mouse__ads.htm b/doc/html/ada/terminal_interface-curses-mouse__ads.htm index 759d9482..0c4545a4 100644 --- a/doc/html/ada/terminal_interface-curses-mouse__ads.htm +++ b/doc/html/ada/terminal_interface-curses-mouse__ads.htm @@ -24,7 +24,7 @@ -- S P E C -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 1998-2011,2014 Free Software Foundation, Inc. -- +-- Copyright (c) 1998-2014,2015 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -52,8 +52,8 @@ ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer, 1996 -- Version Control: --- @Revision: 1.31 @ --- @Date: 2014/05/24 21:31:57 @ +-- @Revision: 1.32 @ +-- @Date: 2015/05/30 23:19:19 @ -- Binding Version 01.00 ------------------------------------------------------------------------------ with System; @@ -167,53 +167,56 @@ pragma Inline (Enclosed_In_Window); -- #1A NAME="AFU_5"#2| - function Mouse_Interval (Msec : Natural := 200) return Natural; + function Mouse_Interval (Msec : Natural := 200) return Natural; -- AKA: mouseinterval() pragma Inline (Mouse_Interval); private - type Event_Mask is new Interfaces.C.unsigned_long; + -- This can be as little as 32 bits (unsigned), or as long as the system's + -- unsigned long. Declare it as the minimum size to handle all valid + -- sizes. + type Event_Mask is mod 4294967296; type Mouse_Event is record - Id : Integer range Integer (Interfaces.C.short'First) .. + Id : Integer range Integer (Interfaces.C.short'First) .. Integer (Interfaces.C.short'Last); - X, Y, Z : Integer range Integer (Interfaces.C.int'First) .. + X, Y, Z : Integer range Integer (Interfaces.C.int'First) .. Integer (Interfaces.C.int'Last); - Bstate : Event_Mask; + Bstate : Event_Mask; end record; pragma Convention (C, Mouse_Event); for Mouse_Event use record - Id at 0 range Curses_Constants.MEVENT_id_First + Id at 0 range Curses_Constants.MEVENT_id_First .. Curses_Constants.MEVENT_id_Last; - X at 0 range Curses_Constants.MEVENT_x_First + X at 0 range Curses_Constants.MEVENT_x_First .. Curses_Constants.MEVENT_x_Last; - Y at 0 range Curses_Constants.MEVENT_y_First + Y at 0 range Curses_Constants.MEVENT_y_First .. Curses_Constants.MEVENT_y_Last; - Z at 0 range Curses_Constants.MEVENT_z_First + Z at 0 range Curses_Constants.MEVENT_z_First .. Curses_Constants.MEVENT_z_Last; - Bstate at 0 range Curses_Constants.MEVENT_bstate_First + Bstate at 0 range Curses_Constants.MEVENT_bstate_First .. Curses_Constants.MEVENT_bstate_Last; end record; for Mouse_Event'Size use Curses_Constants.MEVENT_Size; Generation_Bit_Order : System.Bit_Order renames Curses_Constants.Bit_Order; - BUTTON_CTRL : constant Event_Mask := Curses_Constants.BUTTON_CTRL; - BUTTON_SHIFT : constant Event_Mask := Curses_Constants.BUTTON_SHIFT; - BUTTON_ALT : constant Event_Mask := Curses_Constants.BUTTON_ALT; - BUTTON1_EVENTS : constant Event_Mask - := Curses_Constants.all_events_button_1; - BUTTON2_EVENTS : constant Event_Mask - := Curses_Constants.all_events_button_2; - BUTTON3_EVENTS : constant Event_Mask - := Curses_Constants.all_events_button_3; - BUTTON4_EVENTS : constant Event_Mask - := Curses_Constants.all_events_button_4; - ALL_MOUSE_EVENTS : constant Event_Mask := Curses_Constants.ALL_MOUSE_EVENTS; + BUTTON_CTRL : constant Event_Mask := Curses_Constants.BUTTON_CTRL; + BUTTON_SHIFT : constant Event_Mask := Curses_Constants.BUTTON_SHIFT; + BUTTON_ALT : constant Event_Mask := Curses_Constants.BUTTON_ALT; + BUTTON1_EVENTS : constant Event_Mask + := Curses_Constants.all_events_button_1; + BUTTON2_EVENTS : constant Event_Mask + := Curses_Constants.all_events_button_2; + BUTTON3_EVENTS : constant Event_Mask + := Curses_Constants.all_events_button_3; + BUTTON4_EVENTS : constant Event_Mask + := Curses_Constants.all_events_button_4; + ALL_MOUSE_EVENTS : constant Event_Mask := Curses_Constants.ALL_MOUSE_EVENTS; No_Events : constant Event_Mask := 0; - All_Events : constant Event_Mask := ALL_MOUSE_EVENTS; + All_Events : constant Event_Mask := ALL_MOUSE_EVENTS; end Terminal_Interface.Curses.Mouse;