X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fanimation%2Fanimation.cpp;h=aea54042213583b856b142a66512770a05b479f1;hb=refs%2Fchanges%2F28%2F239928%2F1;hp=32c8ebe81b4855ecc34b80eb0882242e7dc6fe6e;hpb=044afbb9fae2470477ee11d65c7c043eb45e6800;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/animation/animation.cpp b/dali/public-api/animation/animation.cpp index 32c8ebe..aea5404 100644 --- a/dali/public-api/animation/animation.cpp +++ b/dali/public-api/animation/animation.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 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. @@ -23,7 +23,7 @@ #include #include #include -#include +#include namespace Dali { @@ -53,16 +53,13 @@ Animation::~Animation() { } -Animation::Animation(const Animation& handle) -: BaseHandle(handle) -{ -} +Animation::Animation(const Animation& handle) = default; -Animation& Animation::operator=(const Animation& rhs) -{ - BaseHandle::operator=(rhs); - return *this; -} +Animation& Animation::operator=(const Animation& rhs) = default; + +Animation::Animation( Animation&& rhs ) = default; + +Animation& Animation::operator=( Animation&& rhs ) = default; void Animation::SetDuration(float durationSeconds) { @@ -79,6 +76,21 @@ void Animation::SetLooping(bool looping) GetImplementation(*this).SetLooping(looping); } +void Animation::SetLoopCount(int32_t count) +{ + GetImplementation(*this).SetLoopCount(count); +} + +int32_t Animation::GetLoopCount() +{ + return GetImplementation(*this).GetLoopCount(); +} + +int32_t Animation::GetCurrentLoop() +{ + return GetImplementation(*this).GetCurrentLoop(); +} + bool Animation::IsLooping() const { return GetImplementation(*this).IsLooping(); @@ -124,12 +136,21 @@ void Animation::PlayFrom(float progress) GetImplementation(*this).PlayFrom(progress); } +void Animation::PlayAfter( float delaySeconds ) +{ + GetImplementation( *this ).PlayAfter( delaySeconds ); +} void Animation::Pause() { GetImplementation(*this).Pause(); } +Dali::Animation::State Animation::GetState() const +{ + return GetImplementation(*this).GetState(); +} + void Animation::Stop() { GetImplementation(*this).Stop(); @@ -140,6 +161,16 @@ void Animation::Clear() GetImplementation(*this).Clear(); } +void Animation::SetLoopingMode( LoopingMode loopingMode ) +{ + GetImplementation( *this ).SetLoopingMode( loopingMode ); +} + +Animation::LoopingMode Animation::GetLoopingMode() const +{ + return GetImplementation( *this ).GetLoopingMode(); +} + Animation::AnimationSignalType& Animation::FinishedSignal() { return GetImplementation(*this).FinishedSignal();