bn::iaffine_bg_cached_animate_action class

Base class of bn::affine_bg_cached_animate_action.

Can be used as a reference type for all bn::affine_bg_cached_animate_action objects.

Derived classes

template<int MaxSize>
class affine_bg_cached_animate_action
Changes the map of an affine_bg_ptr when the action is updated a given number of times.

Public functions

auto operator=(const iaffine_bg_cached_animate_action& other) -> iaffine_bg_cached_animate_action&
Copy assignment operator.
auto operator=(iaffine_bg_cached_animate_action&& other) -> iaffine_bg_cached_animate_action& noexcept
Move assignment operator.
void update()
Changes the map of the given affine_bg_ptr when the given amount of update calls are done.
auto done() const -> bool
Indicates if the action must not be updated anymore.
void reset()
Resets the action to its initial state.
auto affine_bg() const -> const affine_bg_ptr&
Returns the affine_bg_ptr to modify.
auto wait_updates() const -> int
Returns the number of times the action must be updated before changing the map of the given affine_bg_ptr.
void set_wait_updates(int wait_updates)
Sets the number of times the action must be updated before changing the map of the given affine_bg_ptr.
auto maps() const -> const ivector<affine_bg_map_ptr>&
Returns the maps to use by the given affine_bg_ptr.
auto update_forever() const -> bool
Indicates if the action can be updated forever or not.
auto current_index() const -> int
Returns the current index of the given maps.

Function documentation

iaffine_bg_cached_animate_action& bn::iaffine_bg_cached_animate_action::operator=(const iaffine_bg_cached_animate_action& other)

Copy assignment operator.

Parameters
other iaffine_bg_cached_animate_action to copy.
Returns Reference to this.

iaffine_bg_cached_animate_action& bn::iaffine_bg_cached_animate_action::operator=(iaffine_bg_cached_animate_action&& other) noexcept

Move assignment operator.

Parameters
other iaffine_bg_cached_animate_action to move.
Returns Reference to this.