xmake.repo/packages/n/noesis/latest/Include/NsGui/KeyTime.inl
2024-12-22 19:15:02 +08:00

34 lines
972 B
C++

////////////////////////////////////////////////////////////////////////////////////////////////////
// NoesisGUI - http://www.noesisengine.com
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////
#include <NsCore/Error.h>
namespace Noesis
{
////////////////////////////////////////////////////////////////////////////////////////////////////
inline KeyTimeType KeyTime::GetType() const
{
return mType;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
inline const TimeSpan& KeyTime::GetTimeSpan() const
{
NS_ASSERT(mType == KeyTimeType_TimeSpan);
return mTimeSpan;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
inline float KeyTime::GetPercent() const
{
NS_ASSERT(mType == KeyTimeType_Percent);
return mPercent;
}
}