neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::property_transition< T, Category, Context, Calculator > Class Template Reference

#include <property.hpp>

Inheritance diagram for neogfx::property_transition< T, Category, Context, Calculator >:
neogfx::transition neolib::reference_counted< Base, DeallocateOnRelease >

Public Types

typedef property< T, Category, Context, Calculator > property_type
 
typedef T value_type
 

Public Member Functions

 property_transition (i_animator &aAnimator, property_type &aProperty, easing aEasingFunction, double aDuration, bool aEnabled=true)
 
void start_if ()
 
bool started () const
 
value_type const & from () const
 
value_type const & to () const
 
value_type const & mix () const
 
bool updating_property () const
 
bool property_transition::can_apply () const final
 
void apply () final
 
bool finished () const final
 
void clear () final
 
void sync (bool aIgnorePrevious=false) final
 
- Public Member Functions inherited from neogfx::transition
 transition (i_animator &aAnimator, easing aEasingFunction, double aDuration, bool aEnabled=true)
 
 ~transition ()
 
transition_id id () const override
 
i_animatoranimator () const override
 
bool enabled () const override
 
bool disabled () const override
 
bool disable_when_finished () const override
 
void enable (bool aDisableWhenFinished=false) override
 
void disable () override
 
easing easing_function () const override
 
double duration () const override
 
double start_time () const override
 
double mix_value () const override
 
bool animation_finished () const override
 
bool active () const override
 
bool paused () const override
 
void pause () override
 
void resume () override
 
void reset (bool aEnable=true, bool aDisableWhenFinished=false, bool aResetStartTime=true) override
 
void reset (easing aNewEasingFunction, bool aEnable=true, bool aDisableWhenFinished=false, bool aResetStartTime=true) override
 
- Public Member Functions inherited from neolib::reference_counted< Base, DeallocateOnRelease >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_type * release_and_take_ownership () const override
 
base_type * release_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 

Detailed Description

template<typename T, typename Category, class Context, typename Calculator>
class neogfx::property_transition< T, Category, Context, Calculator >

Definition at line 40 of file property.hpp.

Member Typedef Documentation

◆ property_type

template<typename T , typename Category , class Context , typename Calculator >
typedef property<T, Category, Context, Calculator> neogfx::property_transition< T, Category, Context, Calculator >::property_type

Definition at line 43 of file property.hpp.

◆ value_type

template<typename T , typename Category , class Context , typename Calculator >
typedef T neogfx::property_transition< T, Category, Context, Calculator >::value_type

Definition at line 44 of file property.hpp.

Constructor & Destructor Documentation

◆ property_transition()

template<typename T , typename Category , class Context , typename Calculator >
neogfx::property_transition< T, Category, Context, Calculator >::property_transition ( i_animator aAnimator,
property_type aProperty,
easing  aEasingFunction,
double  aDuration,
bool  aEnabled = true 
)
inline

Definition at line 46 of file property.hpp.

Member Function Documentation

◆ apply()

template<typename T , typename Category , class Context , typename Calculator >
void neogfx::property_transition< T, Category, Context, Calculator >::apply ( )
inlinefinal

Definition at line 88 of file property.hpp.

◆ clear()

template<typename T , typename Category , class Context , typename Calculator >
void neogfx::property_transition< T, Category, Context, Calculator >::clear ( )
inlinefinal

Definition at line 114 of file property.hpp.

◆ finished()

template<typename T , typename Category , class Context , typename Calculator >
bool neogfx::property_transition< T, Category, Context, Calculator >::finished ( ) const
inlinefinal

Definition at line 109 of file property.hpp.

◆ from()

template<typename T , typename Category , class Context , typename Calculator >
value_type const & neogfx::property_transition< T, Category, Context, Calculator >::from ( ) const
inline

Definition at line 67 of file property.hpp.

◆ mix()

template<typename T , typename Category , class Context , typename Calculator >
value_type const & neogfx::property_transition< T, Category, Context, Calculator >::mix ( ) const
inline

Definition at line 75 of file property.hpp.

◆ property_transition::can_apply()

template<typename T , typename Category , class Context , typename Calculator >
bool neogfx::property_transition< T, Category, Context, Calculator >::property_transition::can_apply ( ) const
inlinefinal

Definition at line 84 of file property.hpp.

◆ start_if()

template<typename T , typename Category , class Context , typename Calculator >
void neogfx::property_transition< T, Category, Context, Calculator >::start_if ( )
inline

Definition at line 52 of file property.hpp.

◆ started()

template<typename T , typename Category , class Context , typename Calculator >
bool neogfx::property_transition< T, Category, Context, Calculator >::started ( ) const
inline

Definition at line 63 of file property.hpp.

◆ sync()

template<typename T , typename Category , class Context , typename Calculator >
void neogfx::property_transition< T, Category, Context, Calculator >::sync ( bool  aIgnorePrevious = false)
inlinefinal

Definition at line 120 of file property.hpp.

◆ to()

template<typename T , typename Category , class Context , typename Calculator >
value_type const & neogfx::property_transition< T, Category, Context, Calculator >::to ( ) const
inline

Definition at line 71 of file property.hpp.

◆ updating_property()

template<typename T , typename Category , class Context , typename Calculator >
bool neogfx::property_transition< T, Category, Context, Calculator >::updating_property ( ) const
inline

Definition at line 79 of file property.hpp.


The documentation for this class was generated from the following file: