X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fevents%2Flong-press-gesture.cpp;h=eee597a9b2d2432f9745784c0751ba1c07a835a8;hb=c4750afbf79f15bf71e2aa8ef54f84750463aae2;hp=0b8740c17a7287e7d94f0f8acedf9c3923c5d42d;hpb=7c6f8ed43521c52d6cc46a7e3e3e40069514f818;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/events/long-press-gesture.cpp b/dali/public-api/events/long-press-gesture.cpp index 0b8740c..eee597a 100644 --- a/dali/public-api/events/long-press-gesture.cpp +++ b/dali/public-api/events/long-press-gesture.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -18,35 +18,41 @@ // CLASS HEADER #include +// INTERNAL INCLUDES +#include + namespace Dali { - -LongPressGesture::LongPressGesture(Gesture::State state) -: Gesture( Gesture::LongPress, state ), - numberOfTouches( 1 ) +LongPressGesture::LongPressGesture(Internal::LongPressGesture* internal) +: Gesture(internal) { } -LongPressGesture::LongPressGesture( const LongPressGesture& rhs ) -: Gesture( rhs ), - numberOfTouches( rhs.numberOfTouches ), - screenPoint( rhs.screenPoint ), - localPoint( rhs.localPoint ) +LongPressGesture::LongPressGesture() = default; + +LongPressGesture::LongPressGesture(const LongPressGesture& rhs) = default; + +LongPressGesture::LongPressGesture(LongPressGesture&& rhs) noexcept = default; + +LongPressGesture& LongPressGesture::operator=(const LongPressGesture& rhs) = default; + +LongPressGesture& LongPressGesture::operator=(LongPressGesture&& rhs) noexcept = default; + +LongPressGesture::~LongPressGesture() = default; + +uint32_t LongPressGesture::GetNumberOfTouches() const { + return GetImplementation(*this).GetNumberOfTouches(); } -LongPressGesture& LongPressGesture::operator=( const LongPressGesture& rhs ) +const Vector2& LongPressGesture::GetScreenPoint() const { - Gesture::operator=(rhs); - numberOfTouches = rhs.numberOfTouches; - screenPoint = rhs.screenPoint; - localPoint = rhs.localPoint; - - return *this; + return GetImplementation(*this).GetScreenPoint(); } -LongPressGesture::~LongPressGesture() +const Vector2& LongPressGesture::GetLocalPoint() const { + return GetImplementation(*this).GetLocalPoint(); } } // namespace Dali