InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EventUtilities.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Lonnie Millett
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __EVENTUTILITIES__
25 #define __EVENTUTILITIES__
26 
27 #ifdef ID_DEPRECATED
28 
29 #include "VirtualKey.h"
30 #include "KeyStates.h"
31 #include "PMTypes.h"
32 #include "Utils.h"
33 
34 
35 // forward declares for pointers
36 class IEvent;
37 class IControlView;
38 class CursorSpec;
39 
40 #ifdef MACINTOSH
41 
45 class DV_ EventUtilities
46 {
47 public:
48  static void MovePaletteWindowsOffScreen(bool16 off);
49 };
50 #endif
51 
52 DV_ GSysPoint GetGlobalMouseLocation();
53 
54 DV_ bool16 IsMouseButtonDown();
55 DV_ bool16 IsMouseButtonReleased();
56 
57 DV_ bool16 IsUserStartingDrag(IEvent *e, bool16 &isPatientUser, const CursorSpec* patientCursor = nil);
58 
59 DV_ bool16 IsUserStartingDrag(IEvent *e, bool16 &isPatientUser, const SysRect& startOnExitGRect, const CursorSpec* patientCursor = nil);
60 
61 DV_ void RemoveNextKeyCmd(IEvent* e);
62 
63 DV_ bool16 IsDragOrTrackInProgress();
64 
65 DV_ bool16 IsTrackInProgress();
66 
67 
68 #endif
69 #endif