X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fevents%2Fgesture.cpp;h=575ead0205f9cce289022eba22e0383f8b0b78f6;hb=c4750afbf79f15bf71e2aa8ef54f84750463aae2;hp=31c3b253e93a93b42fef703192ae76e1d4a75f8d;hpb=e7267cff159c0ea2f919cbbe8c809f22226148d9;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/events/gesture.cpp b/dali/public-api/events/gesture.cpp index 31c3b25..575ead0 100644 --- a/dali/public-api/events/gesture.cpp +++ b/dali/public-api/events/gesture.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 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. @@ -18,34 +18,51 @@ // CLASS HEADER #include +// INTERNAL INCLUDES +#include + namespace Dali { +Gesture::Gesture() = default; -Gesture::Gesture( const Gesture& rhs ) -: type(rhs.type), - state(rhs.state), - time(rhs.time) +Gesture::Gesture(Internal::Gesture* internal) +: BaseHandle(internal) { } -Gesture& Gesture::operator=( const Gesture& rhs ) +Gesture::Gesture(const Gesture& rhs) = default; + +Gesture::Gesture(Gesture&& rhs)noexcept = default; + +Gesture& Gesture::operator=(const Gesture& rhs) = default; + +Gesture& Gesture::operator=(Gesture&& rhs)noexcept = default; + +Gesture::~Gesture() = default; + +GestureType::Value Gesture::GetType() const { - type = rhs.type; - state = rhs.state; - time = rhs.time; + return GetImplementation(*this).GetType(); +} - return *this; +GestureState Gesture::GetState() const +{ + return GetImplementation(*this).GetState(); +} + +uint32_t Gesture::GetTime() const +{ + return GetImplementation(*this).GetTime(); } -Gesture::~Gesture() +GestureSourceType Gesture::GetSourceType() const { + return GetImplementation(*this).GetSourceType(); } -Gesture::Gesture(Type gestureType, State gestureState) -: type(gestureType), - state(gestureState), - time(0) +GestureSourceData Gesture::GetSourceData() const { + return GetImplementation(*this).GetSourceData(); } } // namespace Dali