Kanzi  3.9.5
Kanzi Engine API
kanzi::StateManager::StateTransition Class Reference

#include <kanzi/core.ui/state_manager/state_manager.hpp>

Public Member Functions

void addTransitionAnimation (StateTransitionAnimationPtr animation)
 Adds transition animation to transition. More...
 
StateTransitionAnimationIterator beginAnimations () const
 Returns iterator to first transition animation. More...
 
StateTransitionAnimationIterator endAnimations () const
 Returns iterator to last transition animation. More...
 
bool equalFromState (const StateRuntime &state) const
 Returns true if state is same as origin of this transition. More...
 
bool equalToState (const StateRuntime &state) const
 Returns true if state is same as target of this transition. More...
 
AnimationEasingMode getDefaultAnimationEasingMode () const
 Returns default animation easing mode for this transition. More...
 
AnimationMode getDefaultAnimationMode () const
 Returns default animation mode for this transition. More...
 
EasingArguments getDefaultEasingArguments () const
 Gets the default easing function arguments. More...
 
chrono::milliseconds getDuration () const
 Returns transition duration, in ms. More...
 
TransitionReturnTimeType getReturnTimeType () const
 Returns return time type of state transition. More...
 
chrono::milliseconds getStartTime () const
 Returns transition start time, in ms. More...
 
bool hasFromState () const
 Returns true if this transition has origin state. More...
 
bool hasToState () const
 Returns true if this transition has target state. More...
 
StateTransitionoperator= (StateTransition &&other)=default
 
void setDefaultAnimationEasingMode (AnimationEasingMode mode)
 Sets default animation easing mode for this transition. More...
 
void setDefaultAnimationMode (AnimationMode mode)
 Sets default animation mode for this transition. More...
 
void setDefaultEasingArguments (const EasingArguments &easingArguments)
 Sets the default easing function arguments. More...
 
void setDuration (chrono::milliseconds durationMs)
 Sets transition duration, in ms. More...
 
void setFromState (string_view name)
 Sets state that acts as origin for this transition. More...
 
void setReturnTimeType (TransitionReturnTimeType type)
 Sets return time type of state transition. More...
 
void setStartTime (chrono::milliseconds startTime)
 Sets transition start time, in ms. More...
 
void setToState (string_view name)
 Sets state that acts as target for this transition. More...
 
 StateTransition (StateTransition &&other)=default
 

Static Public Member Functions

static StateTransitionPtr create ()
 Create a state transition. More...
 

Constructor & Destructor Documentation

◆ StateTransition()

kanzi::StateManager::StateTransition::StateTransition ( StateTransition &&  other)
default

Member Function Documentation

◆ create()

static StateTransitionPtr kanzi::StateManager::StateTransition::create ( )
static

Create a state transition.

◆ operator=()

StateTransition& kanzi::StateManager::StateTransition::operator= ( StateTransition &&  other)
default

◆ setStartTime()

void kanzi::StateManager::StateTransition::setStartTime ( chrono::milliseconds  startTime)

Sets transition start time, in ms.

◆ getStartTime()

chrono::milliseconds kanzi::StateManager::StateTransition::getStartTime ( ) const

Returns transition start time, in ms.

◆ setDuration()

void kanzi::StateManager::StateTransition::setDuration ( chrono::milliseconds  durationMs)

Sets transition duration, in ms.

◆ getDuration()

chrono::milliseconds kanzi::StateManager::StateTransition::getDuration ( ) const

Returns transition duration, in ms.

◆ setReturnTimeType()

void kanzi::StateManager::StateTransition::setReturnTimeType ( TransitionReturnTimeType  type)

Sets return time type of state transition.

◆ getReturnTimeType()

TransitionReturnTimeType kanzi::StateManager::StateTransition::getReturnTimeType ( ) const

Returns return time type of state transition.

◆ setFromState()

void kanzi::StateManager::StateTransition::setFromState ( string_view  name)

Sets state that acts as origin for this transition.

◆ hasFromState()

bool kanzi::StateManager::StateTransition::hasFromState ( ) const

Returns true if this transition has origin state.

◆ equalFromState()

bool kanzi::StateManager::StateTransition::equalFromState ( const StateRuntime state) const

Returns true if state is same as origin of this transition.

◆ setToState()

void kanzi::StateManager::StateTransition::setToState ( string_view  name)

Sets state that acts as target for this transition.

◆ hasToState()

bool kanzi::StateManager::StateTransition::hasToState ( ) const

Returns true if this transition has target state.

◆ equalToState()

bool kanzi::StateManager::StateTransition::equalToState ( const StateRuntime state) const

Returns true if state is same as target of this transition.

◆ setDefaultAnimationMode()

void kanzi::StateManager::StateTransition::setDefaultAnimationMode ( AnimationMode  mode)

Sets default animation mode for this transition.

◆ getDefaultAnimationMode()

AnimationMode kanzi::StateManager::StateTransition::getDefaultAnimationMode ( ) const

Returns default animation mode for this transition.

◆ setDefaultEasingArguments()

void kanzi::StateManager::StateTransition::setDefaultEasingArguments ( const EasingArguments easingArguments)

Sets the default easing function arguments.

◆ getDefaultEasingArguments()

EasingArguments kanzi::StateManager::StateTransition::getDefaultEasingArguments ( ) const

Gets the default easing function arguments.

◆ setDefaultAnimationEasingMode()

void kanzi::StateManager::StateTransition::setDefaultAnimationEasingMode ( AnimationEasingMode  mode)

Sets default animation easing mode for this transition.

◆ getDefaultAnimationEasingMode()

AnimationEasingMode kanzi::StateManager::StateTransition::getDefaultAnimationEasingMode ( ) const

Returns default animation easing mode for this transition.

◆ addTransitionAnimation()

void kanzi::StateManager::StateTransition::addTransitionAnimation ( StateTransitionAnimationPtr  animation)

Adds transition animation to transition.

◆ beginAnimations()

StateTransitionAnimationIterator kanzi::StateManager::StateTransition::beginAnimations ( ) const

Returns iterator to first transition animation.

◆ endAnimations()

StateTransitionAnimationIterator kanzi::StateManager::StateTransition::endAnimations ( ) const

Returns iterator to last transition animation.


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