DALi Version 2.2.21
[platform/core/uifw/dali-core.git] / dali / integration-api / input-options.cpp
1 #include "input-options.h"
2
3 #include <dali/internal/event/common/thread-local-storage.h>
4 #include <dali/internal/event/events/gesture-event-processor.h>
5
6 using Dali::Internal::GestureEventProcessor;
7 using Dali::Internal::ThreadLocalStorage;
8
9 namespace Dali
10 {
11 namespace Integration
12 {
13 void SetPanGesturePredictionMode(int mode)
14 {
15   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
16   eventProcessor.SetPanGesturePredictionMode(mode);
17 }
18
19 void SetPanGesturePredictionAmount(unsigned int amount)
20 {
21   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
22   eventProcessor.SetPanGesturePredictionAmount(amount);
23 }
24
25 void SetPanGestureMaximumPredictionAmount(unsigned int amount)
26 {
27   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
28   eventProcessor.SetPanGestureMaximumPredictionAmount(amount);
29 }
30
31 void SetPanGestureMinimumPredictionAmount(unsigned int amount)
32 {
33   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
34   eventProcessor.SetPanGestureMinimumPredictionAmount(amount);
35 }
36
37 void SetPanGesturePredictionAmountAdjustment(unsigned int amount)
38 {
39   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
40   eventProcessor.SetPanGesturePredictionAmountAdjustment(amount);
41 }
42
43 void SetPanGestureSmoothingMode(int mode)
44 {
45   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
46   eventProcessor.SetPanGestureSmoothingMode(mode);
47 }
48
49 void SetPanGestureSmoothingAmount(float amount)
50 {
51   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
52   eventProcessor.SetPanGestureSmoothingAmount(amount);
53 }
54
55 void SetPanGestureUseActualTimes(bool value)
56 {
57   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
58   eventProcessor.SetPanGestureUseActualTimes(value);
59 }
60
61 void SetPanGestureInterpolationTimeRange(int value)
62 {
63   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
64   eventProcessor.SetPanGestureInterpolationTimeRange(value);
65 }
66
67 void SetPanGestureScalarOnlyPredictionEnabled(bool value)
68 {
69   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
70   eventProcessor.SetPanGestureScalarOnlyPredictionEnabled(value);
71 }
72
73 void SetPanGestureTwoPointPredictionEnabled(bool value)
74 {
75   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
76   eventProcessor.SetPanGestureTwoPointPredictionEnabled(value);
77 }
78
79 void SetPanGestureTwoPointInterpolatePastTime(int value)
80 {
81   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
82   eventProcessor.SetPanGestureTwoPointInterpolatePastTime(value);
83 }
84
85 void SetPanGestureTwoPointVelocityBias(float value)
86 {
87   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
88   eventProcessor.SetPanGestureTwoPointVelocityBias(value);
89 }
90
91 void SetPanGestureTwoPointAccelerationBias(float value)
92 {
93   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
94   eventProcessor.SetPanGestureTwoPointAccelerationBias(value);
95 }
96
97 void SetPanGestureMultitapSmoothingRange(int value)
98 {
99   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
100   eventProcessor.SetPanGestureMultitapSmoothingRange(value);
101 }
102
103 void SetPanGestureMinimumDistance(int value)
104 {
105   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
106   eventProcessor.SetPanGestureMinimumDistance(value);
107 }
108
109 void SetPanGestureMinimumPanEvents(int value)
110 {
111   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
112   eventProcessor.SetPanGestureMinimumPanEvents(value);
113 }
114
115 void SetPinchGestureMinimumDistance(float value)
116 {
117   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
118   eventProcessor.SetPinchGestureMinimumDistance(value);
119 }
120
121 void SetPinchGestureMinimumTouchEvents(uint32_t value)
122 {
123   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
124   eventProcessor.SetPinchGestureMinimumTouchEvents(value);
125 }
126
127 void SetPinchGestureMinimumTouchEventsAfterStart(uint32_t value)
128 {
129   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
130   eventProcessor.SetPinchGestureMinimumTouchEventsAfterStart(value);
131 }
132
133 void SetRotationGestureMinimumTouchEvents(uint32_t value)
134 {
135   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
136   eventProcessor.SetRotationGestureMinimumTouchEvents(value);
137 }
138
139 void SetRotationGestureMinimumTouchEventsAfterStart(uint32_t value)
140 {
141   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
142   eventProcessor.SetRotationGestureMinimumTouchEventsAfterStart(value);
143 }
144
145 void SetLongPressMinimumHoldingTime(unsigned int value)
146 {
147   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
148   eventProcessor.SetLongPressMinimumHoldingTime(value);
149 }
150
151 void SetTapMaximumAllowedTime(uint32_t time)
152 {
153   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
154   eventProcessor.SetTapMaximumAllowedTime(time);
155 }
156
157 } // namespace Integration
158
159 } // namespace Dali