X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali%2Finternal%2Fevent%2Fevents%2Fgesture-impl.h;h=c4688fb05a80e1d14d0d67e2656f4bd100121899;hb=0ed4ee4571aacaf595db0f5b4332fa14113f3d51;hp=8a576969b64fa74a25f0ad0d889027364017e0a2;hpb=93efc09879a593fa88b90e10b356ba804472f6cb;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/events/gesture-impl.h b/dali/internal/event/events/gesture-impl.h index 8a57696..c4688fb 100644 --- a/dali/internal/event/events/gesture-impl.h +++ b/dali/internal/event/events/gesture-impl.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_GESTURE_H /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -19,16 +19,14 @@ */ // INTERNAL INCLUDES -#include #include +#include #include namespace Dali { - namespace Internal { - class Gesture; using GesturePtr = IntrusivePtr; @@ -39,7 +37,6 @@ using GesturePtr = IntrusivePtr; class Gesture : public BaseObject { public: - /** * @brief Get the gesture type. * @@ -54,12 +51,12 @@ public: * @brief Set the state of the gesture. * @param[in] state The state of the gesture to set */ - inline void SetState( GestureState state ) + inline void SetState(GestureState state) { mState = state; } - /** + /** * @brief Get the state of the gesture. * * @return The state of the gesture. @@ -73,7 +70,7 @@ public: * @brief Set The time the gesture took place. * @param[in] time The time the gesture took place. to set */ - inline void SetTime( uint32_t time ) + inline void SetTime(uint32_t time) { mTime = time; } @@ -88,21 +85,20 @@ public: return mTime; } - Gesture(const Gesture&) = delete; ///< Deleted copy constructor - Gesture(Gesture&&) = delete; ///< Deleted move constructor + Gesture(const Gesture&) = delete; ///< Deleted copy constructor + Gesture(Gesture&&) = delete; ///< Deleted move constructor Gesture& operator=(const Gesture&) = delete; ///< Deleted copy assignment operator - Gesture& operator=(Gesture&&) = delete; ///< Deleted move assignment operator + Gesture& operator=(Gesture&&) = delete; ///< Deleted move assignment operator protected: - /** * This constructor is only used by derived classes. * @param[in] gestureType The type of gesture event. * @param[in] gestureState The state of the gesture event. */ Gesture(GestureType::Value gestureType, GestureState gestureState) - : mGestureType( gestureType ), - mState( gestureState ) + : mGestureType(gestureType), + mState(gestureState) { } @@ -111,12 +107,12 @@ protected: * * A reference counted object may only be deleted by calling Unreference() */ - virtual ~Gesture() = default; + ~Gesture() override = default; private: GestureType::Value mGestureType; - GestureState mState; - uint32_t mTime{0u}; + GestureState mState; + uint32_t mTime{0u}; }; } // namespace Internal @@ -126,7 +122,7 @@ private: */ inline Internal::Gesture& GetImplementation(Dali::Gesture& gesture) { - DALI_ASSERT_ALWAYS( gesture && "gesture handle is empty" ); + DALI_ASSERT_ALWAYS(gesture && "gesture handle is empty"); BaseObject& handle = gesture.GetBaseObject(); @@ -135,7 +131,7 @@ inline Internal::Gesture& GetImplementation(Dali::Gesture& gesture) inline const Internal::Gesture& GetImplementation(const Dali::Gesture& gesture) { - DALI_ASSERT_ALWAYS( gesture && "gesture handle is empty" ); + DALI_ASSERT_ALWAYS(gesture && "gesture handle is empty"); const BaseObject& handle = gesture.GetBaseObject();