X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Fpan-gesture%2Fpan-gesture-processor.h;h=4209c247b2ba3b074692caf38f8c3057bc6f7ba6;hb=5799cbf8844641f30b7cd1222413f01fab49d527;hp=3f40eb9db10c829c203cc7e4f881248e02e9757f;hpb=c4f781ff1251d8273252e10db19cf6d3d8bee187;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/events/pan-gesture/pan-gesture-processor.h b/dali/internal/event/events/pan-gesture/pan-gesture-processor.h index 3f40eb9..4209c24 100644 --- a/dali/internal/event/events/pan-gesture/pan-gesture-processor.h +++ b/dali/internal/event/events/pan-gesture/pan-gesture-processor.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_EVENT_PAN_GESTURE_EVENT_PROCESSOR_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -67,14 +67,18 @@ public: // To be called by GestureEventProcessor * This method is called whenever a pan gesture event occurs. * @param[in] scene The scene the pan gesture event occurs in. * @param[in] panEvent The event that has occurred. + * @param[in] actor The actor where the event occurred. If this is null, the actor is found through hittest. */ - void Process(Scene& scene, const PanGestureEvent& panEvent) override; + void Process(Scene& scene, const PanGestureEvent& panEvent, Actor* actor = nullptr) override; /** * Adds a gesture detector to this gesture processor. * If this is the first gesture detector being added, then this method registers the required * gesture with the adaptor. - * @param[in] gestureDetector The gesture detector being added. + * @param[in] gestureDetector The gesture detector being added. + * @param[in] scene The scene the pan gesture event occurs in. + * @param[in] minDistance The minimum required motion distance to start pan gesture. If this value is less than 0, we use default setuped distance. + * @param[in] minPanEvents The minimum required motion event number to start pan gesture. If this value is less than 1, we use default setuped number. */ void AddGestureDetector(PanGestureDetector* gestureDetector, Scene& scene, int32_t minDistance, int32_t minPanEvents); @@ -276,6 +280,7 @@ private: uint32_t mMinTouchesRequired; uint32_t mMaxTouchesRequired; + uint32_t mMaxMotionEventAge; Vector2 mLastVelocity; ///< The last recorded velocity in local actor coordinates. Vector2 mLastScreenVelocity; ///< The last recorded velocity in screen coordinates.