/*
- * Copyright (c) 2017 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.
{
}
-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)
{
GetImplementation(*this).SetLooping(looping);
}
-void Animation::SetLoopCount(int count)
+void Animation::SetLoopCount(int32_t count)
{
GetImplementation(*this).SetLoopCount(count);
}
-int Animation::GetLoopCount()
+int32_t Animation::GetLoopCount()
{
return GetImplementation(*this).GetLoopCount();
}
-int Animation::GetCurrentLoop()
+int32_t Animation::GetCurrentLoop()
{
return GetImplementation(*this).GetCurrentLoop();
}
GetImplementation(*this).PlayFrom(progress);
}
+void Animation::PlayAfter( float delaySeconds )
+{
+ GetImplementation( *this ).PlayAfter( delaySeconds );
+}
void Animation::Pause()
{
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();