InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HitTestDragConstants.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: jargast
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 __HitTestDragConstants__
25 #define __HitTestDragConstants__
26 
27 // Changing these will globally affect how we hit test and what distance the user must
28 // move before an item is edited or created.
29 
30 const int32 kHitTestTolerance = 2;
31 const int32 kHitTestTolerance_TWS = 4;
32 const int32 kMinDragDistance = 3;
33 const int32 kHitTestBBoxTolerance = 4;
34 const uint32 kMinConstrainedDragDistance = 5;
35 const int32 kHitTestMoreGenerousTolerance = 6;
36 const int32 kHitTestFreeTransformTolerance = 10;
37 const uint32 kAutoScrollDelay = 10; // Number of 60ths of a second between drop target autoscrolls. Prevents scrolling too fast.
38 const uint32 kFastAutoScrollDelay = 7; // Number of 60ths of a second between drop target autoscrolls. Used for views that want to scroll a little faster.
39 const uint32 kMinAutoScrollDelay = 3; // Number of 60ths of a second between drop target autoscrolls. Used for views that want to scroll even faster. This is the limit!
40 const PMReal kDragMotionIsSlowThreshhold = 8.0; // Minimum distance between mouse moves to avoid extra calls to ISnapTo
41 const uint32 kInitialCompositionThreshold = 60; // Number of 60ths of a second before patient user operations triggers composition when dragging items
42 const uint32 kSubsequentCompositionThreshold = 30; // Number of 60ths of a second before subsequent patient user operations trigger composition when dragging items
43 const uint32 kPatientUserMinDragTicks = 30; // Number of 60ths of a second before patient user will kick in if mouse hasn't moved kMinDragDistance. Prevents a click from accidentally moving an item.
44 const int32 kEmitHandleShapeThreshold = 250; // Number of handles to put into a path before performing a fill/stroke operation. Comes into play with page items with lots of path points.
45 const int32 kOuterHandleSize = 5; // Rect shape outer handle size
46 const int32 kOuterHandleSize_TWS = 8; // Rect shape outer handle size in touch mode
47 const int32 kCenterHandleSize = 3; // Rect shape central handle size
48 const int32 kCenterHandleSize_TWS = 5; // Rect shape central handle size in touch mode
49 const int32 kHandleSizeContent = 4;
50 const int32 kHandleSizeContent_TWS = 4;
51 const int32 kHandleSizeNoContent = 3;
52 const int32 kHandleSizeNoContent_TWS = 3;
53 const int32 kSelectionBoxHandleSize = 5;
54 const int32 kSelectionBoxHandleSize_TWS = 8;
55 const int32 kSizeOfLiveHandle = 7;
56 const int32 kSizeOfLiveHandle_TWS = 9;
57 const int32 kLineAnchorPointSize = 5;
58 const int32 kLineAnchorPointSize_TWS = 8;
59 
60 const PMReal kTouchWSHitToleranceFactor = 1.5;
61 #endif