[3.0] Fix memory leak, scene graph layers are never deleted from memory
[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
12 namespace Integration
13 {
14
15 void SetPanGesturePredictionMode( int mode )
16 {
17   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
18   eventProcessor.SetPanGesturePredictionMode(mode);
19 }
20
21 void SetPanGesturePredictionAmount(unsigned int amount)
22 {
23   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
24   eventProcessor.SetPanGesturePredictionAmount(amount);
25 }
26
27 void SetPanGestureMaximumPredictionAmount( unsigned int amount )
28 {
29   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
30   eventProcessor.SetPanGestureMaximumPredictionAmount(amount);
31 }
32
33 void SetPanGestureMinimumPredictionAmount( unsigned int amount )
34 {
35   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
36   eventProcessor.SetPanGestureMinimumPredictionAmount(amount);
37 }
38
39 void SetPanGesturePredictionAmountAdjustment( unsigned int amount )
40 {
41   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
42   eventProcessor.SetPanGesturePredictionAmountAdjustment(amount);
43 }
44
45 void SetPanGestureSmoothingMode(int mode)
46 {
47   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
48   eventProcessor.SetPanGestureSmoothingMode(mode);
49 }
50
51 void SetPanGestureSmoothingAmount( float amount )
52 {
53   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
54   eventProcessor.SetPanGestureSmoothingAmount(amount);
55 }
56
57 } // namespace Integration
58
59 } // namespace Dali