xmake.repo/packages/n/noesis/latest/Include/NsGui/SineEase.h

56 lines
1.4 KiB
C
Raw Normal View History

2024-12-22 19:15:02 +08:00
////////////////////////////////////////////////////////////////////////////////////////////////////
// NoesisGUI - http://www.noesisengine.com
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef __GUI_SINEEASE_H__
#define __GUI_SINEEASE_H__
#include <NsCore/Noesis.h>
#include <NsCore/ReflectionDeclare.h>
#include <NsGui/EasingFunctionBase.h>
#include <NsGui/AnimationApi.h>
namespace Noesis
{
////////////////////////////////////////////////////////////////////////////////////////////////////
/// Represents an easing function that creates an animation that accelerates and/or
/// decelerates using a sine formula
///
/// file:///W:/NoesisGUI-0.9.7.3917/NoesisGUI/Doc/Gui.Animation._SineEase.html
////////////////////////////////////////////////////////////////////////////////////////////////////
class NS_GUI_ANIMATION_API SineEase: public EasingFunctionBase
{
public:
SineEase();
~SineEase();
// Hides Freezable methods for convenience
//@{
Ptr<SineEase> Clone() const;
Ptr<SineEase> CloneCurrentValue() const;
//@}
protected:
/// From Freezable
//@{
Ptr<Freezable> CreateInstanceCore() const override;
//@}
/// From EasingFunctionBase
//@{
float EaseInCore(float normalizedTime) override;
//@}
NS_DECLARE_REFLECTION(SineEase, EasingFunctionBase)
};
}
#endif