X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Fgesture-detector-impl.h;h=7cb0ffe6f8594db16c99b93fe648fa580c919e07;hb=f3f8bc545f5051ea842dddfefb49a2a492d2bdf5;hp=f3fc8d5deb28fe576fb12a8e6a4cd234252674a2;hpb=fa05bc1478e8734fa836b3816ff3eb557df10e5a;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/events/gesture-detector-impl.h b/dali/internal/event/events/gesture-detector-impl.h index f3fc8d5..7cb0ffe 100644 --- a/dali/internal/event/events/gesture-detector-impl.h +++ b/dali/internal/event/events/gesture-detector-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_INTERNAL_GESTURE_DETECTOR_H__ -#define __DALI_INTERNAL_GESTURE_DETECTOR_H__ +#ifndef DALI_INTERNAL_GESTURE_DETECTOR_H +#define DALI_INTERNAL_GESTURE_DETECTOR_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -98,15 +98,15 @@ public: * Retrieves the type of GestureDetector * @return The GestureDetector Type */ - Gesture::Type GetType() const + DevelGesture::Type GetType() const { return mType; } /** - * Checks if the specified actor is still attached. + * Checks if the specified actor is still attached or pending attachment. * @param[in] actor The actor to check. - * @return true, if the actor is attached, false otherwise. + * @return true, if the actor is attached or pending, false otherwise. */ bool IsAttached(Actor& actor) const; @@ -118,7 +118,12 @@ protected: // Creation & Destruction * @param pointer to the scene object, nullptr if none * by default GestureDetectors don't have our own scene object */ - GestureDetector(Gesture::Type type, const SceneGraph::PropertyOwner* sceneObject = nullptr ); + GestureDetector( DevelGesture::Type type, const SceneGraph::PropertyOwner* sceneObject = nullptr ); + + /** + * @copydoc GestureDetector( DevelGesture::Type, const SceneGraph::PropertyOwner* ) + */ + GestureDetector( Gesture::Type type, const SceneGraph::PropertyOwner* sceneObject = nullptr ); /** * A reference counted object may only be deleted by calling Unreference() @@ -135,7 +140,7 @@ private: /** * @copydoc Dali::Internal::Object::Observer::SceneObjectAdded() */ - virtual void SceneObjectAdded(Object& object) {} + virtual void SceneObjectAdded(Object& object); /** * @copydoc Dali::Internal::Object::Observer::SceneObjectAdded() @@ -169,8 +174,9 @@ private: protected: - Gesture::Type mType; ///< The gesture detector will detect this type of gesture. + DevelGesture::Type mType; ///< The gesture detector will detect this type of gesture. GestureDetectorActorContainer mAttachedActors; ///< Object::Observer is used to provide weak-pointer behaviour + GestureDetectorActorContainer mPendingAttachActors; ///< Object::Observer is used to provide weak-pointer behaviour GestureEventProcessor& mGestureEventProcessor; ///< A reference to the gesture event processor. }; @@ -198,4 +204,4 @@ inline const Internal::GestureDetector& GetImplementation(const Dali::GestureDet } // namespace Dali -#endif // __DALI_INTERNAL_GESTURE_DETECTOR_H__ +#endif // DALI_INTERNAL_GESTURE_DETECTOR_H