persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
UIPropertyAnimationBuilder< T > Class Template Reference

Fluent builder for UIPropertyAnimation. Must be started via a UIAnimator owner. More...

#include <UIPropertyAnimation.hpp>

Collaboration diagram for UIPropertyAnimationBuilder< T >:

Public Member Functions

 UIPropertyAnimationBuilder (T &tgt, UIAnimator *animOwner=nullptr)
UIPropertyAnimationBuilder & from (const T &v)
UIPropertyAnimationBuilder & to (const T &v)
UIPropertyAnimationBuilder & duration (int ms)
 Duration in milliseconds.
UIPropertyAnimationBuilder & ease (UIEase e)
UIPropertyAnimationBuilder & repeat (UIRepeatMode mode, int count=-1)
UIPropertyAnimationBuilder & loop (int count=-1)
UIPropertyAnimationBuilder & pingPong (int count=-1)
std::shared_ptr< UIAnimation > build () const
UIAnimationHandle start ()

Private Attributes

T * ptr
T fromVal = T{}
T toVal = T{}
bool hasFrom = false
int durationMs = 200
UIEase easeType = UIEase::Linear
UIRepeatMode repeatMode = UIRepeatMode::Once
int repeatCount = -1
UIAnimator * owner = nullptr

Detailed Description

template<typename T>
class UIPropertyAnimationBuilder< T >

Fluent builder for UIPropertyAnimation. Must be started via a UIAnimator owner.

Definition at line 98 of file UIPropertyAnimation.hpp.

Constructor & Destructor Documentation

◆ UIPropertyAnimationBuilder()

template<typename T>
UIPropertyAnimationBuilder< T >::UIPropertyAnimationBuilder ( T & tgt,
UIAnimator * animOwner = nullptr )
inlineexplicit

Definition at line 101 of file UIPropertyAnimation.hpp.

Here is the caller graph for this function:

Member Function Documentation

◆ build()

template<typename T>
std::shared_ptr< UIAnimation > UIPropertyAnimationBuilder< T >::build ( ) const
inline

Definition at line 150 of file UIPropertyAnimation.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ duration()

template<typename T>
UIPropertyAnimationBuilder & UIPropertyAnimationBuilder< T >::duration ( int ms)
inline

Duration in milliseconds.

Definition at line 121 of file UIPropertyAnimation.hpp.

Here is the call graph for this function:

◆ ease()

template<typename T>
UIPropertyAnimationBuilder & UIPropertyAnimationBuilder< T >::ease ( UIEase e)
inline

Definition at line 127 of file UIPropertyAnimation.hpp.

Here is the call graph for this function:

◆ from()

template<typename T>
UIPropertyAnimationBuilder & UIPropertyAnimationBuilder< T >::from ( const T & v)
inline

Definition at line 105 of file UIPropertyAnimation.hpp.

Here is the call graph for this function:

◆ loop()

template<typename T>
UIPropertyAnimationBuilder & UIPropertyAnimationBuilder< T >::loop ( int count = -1)
inline

Definition at line 140 of file UIPropertyAnimation.hpp.

Here is the call graph for this function:

◆ pingPong()

template<typename T>
UIPropertyAnimationBuilder & UIPropertyAnimationBuilder< T >::pingPong ( int count = -1)
inline

Definition at line 145 of file UIPropertyAnimation.hpp.

Here is the call graph for this function:

◆ repeat()

template<typename T>
UIPropertyAnimationBuilder & UIPropertyAnimationBuilder< T >::repeat ( UIRepeatMode mode,
int count = -1 )
inline

Definition at line 133 of file UIPropertyAnimation.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start()

template<typename T>
UIAnimationHandle UIPropertyAnimationBuilder< T >::start ( )

Definition at line 146 of file UIAnimator.hpp.

Here is the call graph for this function:

◆ to()

template<typename T>
UIPropertyAnimationBuilder & UIPropertyAnimationBuilder< T >::to ( const T & v)
inline

Definition at line 112 of file UIPropertyAnimation.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ durationMs

template<typename T>
int UIPropertyAnimationBuilder< T >::durationMs = 200
private

Definition at line 167 of file UIPropertyAnimation.hpp.

◆ easeType

template<typename T>
UIEase UIPropertyAnimationBuilder< T >::easeType = UIEase::Linear
private

Definition at line 168 of file UIPropertyAnimation.hpp.

◆ fromVal

template<typename T>
T UIPropertyAnimationBuilder< T >::fromVal = T{}
private

Definition at line 164 of file UIPropertyAnimation.hpp.

◆ hasFrom

template<typename T>
bool UIPropertyAnimationBuilder< T >::hasFrom = false
private

Definition at line 166 of file UIPropertyAnimation.hpp.

◆ owner

template<typename T>
UIAnimator* UIPropertyAnimationBuilder< T >::owner = nullptr
private

Definition at line 171 of file UIPropertyAnimation.hpp.

◆ ptr

template<typename T>
T* UIPropertyAnimationBuilder< T >::ptr
private

Definition at line 163 of file UIPropertyAnimation.hpp.

◆ repeatCount

template<typename T>
int UIPropertyAnimationBuilder< T >::repeatCount = -1
private

Definition at line 170 of file UIPropertyAnimation.hpp.

◆ repeatMode

template<typename T>
UIRepeatMode UIPropertyAnimationBuilder< T >::repeatMode = UIRepeatMode::Once
private

Definition at line 169 of file UIPropertyAnimation.hpp.

◆ toVal

template<typename T>
T UIPropertyAnimationBuilder< T >::toVal = T{}
private

Definition at line 165 of file UIPropertyAnimation.hpp.


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