projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an environment variable for long press gesture
[platform/core/uifw/dali-core.git]
/
dali
/
internal
/
event
/
events
/
long-press-gesture
/
long-press-gesture-recognizer.h
diff --git
a/dali/internal/event/events/long-press-gesture/long-press-gesture-recognizer.h
b/dali/internal/event/events/long-press-gesture/long-press-gesture-recognizer.h
index
7bcab05
..
cb2cbfa
100644
(file)
--- a/
dali/internal/event/events/long-press-gesture/long-press-gesture-recognizer.h
+++ b/
dali/internal/event/events/long-press-gesture/long-press-gesture-recognizer.h
@@
-56,8
+56,9
@@
public:
* @param[in] coreEventInterface Used to send events to Core.
* @param[in] screenSize The size of the screen.
* @param[in] request The long press gesture request.
* @param[in] coreEventInterface Used to send events to Core.
* @param[in] screenSize The size of the screen.
* @param[in] request The long press gesture request.
+ * @param[in] minimumHoldingTime The minimum holding time required in milliseconds.
*/
*/
- LongPressGestureRecognizer( Observer& observer, Vector2 screenSize, const LongPressGestureRequest& request );
+ LongPressGestureRecognizer( Observer& observer, Vector2 screenSize, const LongPressGestureRequest& request
, uint32_t minimumHoldingTime
);
/**
* Virtual destructor.
/**
* Virtual destructor.
@@
-76,6
+77,13
@@
public:
*/
virtual void Update(const GestureRequest& request);
*/
virtual void Update(const GestureRequest& request);
+ /**
+ * @brief This method sets the minimum holding time required to be recognized as a long press gesture
+ *
+ * @param[in] value The time value in milliseconds
+ */
+ void SetMinimumHoldingTime( uint32_t time );
+
private:
/**
private:
/**
@@
-90,12
+98,6
@@
private:
*/
void EmitGesture(Gesture::State state);
*/
void EmitGesture(Gesture::State state);
- /**
- * Get current system setting value for tap and hold gesture
- * @return system value for tap and hold gesture [ms]
- */
- int GetSystemValue();
-
private:
// Reference to the gesture processor for this recognizer
private:
// Reference to the gesture processor for this recognizer
@@
-121,6
+123,8
@@
private:
uint32_t mTouchTime; ///< The time we first pressed down.
uint32_t mTimerId;
uint32_t mTouchTime; ///< The time we first pressed down.
uint32_t mTimerId;
+
+ uint32_t mMinimumHoldingTime;
};
} // namespace Internal
};
} // namespace Internal