mouse.h

Go to the documentation of this file.
00001 
00002 /*  $Id: mouse.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define mouseinclude
00029 
00030 #define leftmousebuttonaction 0
00031 #define rightmousebuttonaction 1
00032 #define centermousebuttonaction 2
00033 #define wheelmousebuttonaction 3
00034 
00035 
00036 typedef struct tymouserecord {
00037     
00038     boolean fldoubleclick;
00039     
00040     Point localpt;
00041     
00042     long mouseuptime; 
00043     
00044     long mousedowntime; 
00045     
00046     Point mouseuppoint;
00047     
00048     Point mousedownpoint;
00049     
00050     boolean fldoubleclickdisabled;
00051 
00052     short whichbutton;
00053     } tymouserecord;
00054     
00055     
00056 extern tymouserecord mousestatus;
00057 
00058 
00059 /*prototypes*/
00060 
00061 void setmousedoubleclickstatus (boolean fl);
00062 
00063 extern boolean mousebuttondown (void);
00064 
00065 extern void waitmousebutton (boolean);
00066 
00067 extern void waitmouseclick (void);
00068 
00069 extern boolean mousestilldown (void);
00070 
00071 extern boolean rightmousestilldown (void); /*7.0b26 PBS*/
00072 
00073 extern void getmousepoint (Point *);
00074 
00075 extern boolean getmousewindowpos (WindowPtr *, Point *);
00076 
00077 extern boolean mousetrack (Rect, void (*) (boolean));
00078 
00079 extern void mousedoubleclickdisable (void);
00080 
00081 extern void mouseup (long eventwhen, long eventposx, long eventposy, long eventwhat);
00082 
00083 extern void mousedown (long eventwhen, long eventposx, long eventposy, long eventwhat);
00084 
00085 extern boolean mousedoubleclick (void);
00086 
00087 extern boolean ismouseleftclick (void);
00088 
00089 extern boolean ismouserightclick (void);
00090 
00091 extern boolean ismousecenterclick (void);
00092 
00093 extern boolean ismousewheelclick (void);
00094 
00095 extern void smashmouse (Point);
00096 
00097 extern void showmousecursor (void);
00098 
00099 extern void hidemousecursor (void);
00100 
00101 extern boolean mousecheckautoscroll (Point, Rect, boolean, tydirection *);
00102 
00103 extern long getmousedoubleclicktime(void);
00104 

Generated on Wed May 31 18:19:56 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6