iaffine_bg_animate_action class
#include <bn_affine_bg_animate_actions.h>
Base class of bn::
Can be used as a reference type for all bn::
Derived classes
-
template<int MaxSize>class affine_bg_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_ animate_ action& other) -> iaffine_ bg_ animate_ action& - Copy assignment operator.
-
auto operator=(iaffine_
bg_ animate_ action&& other) -> iaffine_ bg_ 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 next_change_updates() const -> int
- Returns the number of times the action must be updated before the next map change.
- void set_next_change_updates(int next_change_updates)
- Sets the number of times the action must be updated before the next map change.
-
auto map_item() const -> const affine_
bg_ map_ item& - Returns the affine_
bg_ map_ item used to create the new map to use by the given affine_ bg_ ptr. - auto map_indexes() const -> const ivector<uint16_t>&
- Returns the indexes of the maps to reference in the given affine_
bg_ map_ item. - auto update_forever() const -> bool
- Indicates if the action can be updated forever or not.
- void set_update_forever(bool forever)
- Specifies if the action must be updated forever or not.
- auto current_index() const -> int
- Returns the current index of the given map_indexes (not the current index of the map to reference in the given map_item).
- void set_current_index(int current_index)
- Sets the current index of the given map_indexes (not the current index of the map to reference in the given map_item).
- void set_current_index(int current_index, bool update_bg_now)
- Sets the current index of the given map_indexes (not the current index of the map to reference in the given map_item).
- auto current_map_index() const -> int
- Returns the current index of the map to reference in the given map_item.
Function documentation
iaffine_ bg_ animate_ action& bn:: iaffine_bg_animate_action:: operator=(const iaffine_ bg_ animate_ action& other)
Copy assignment operator.
| Parameters | |
|---|---|
| other | iaffine_ |
| Returns | Reference to this. |
iaffine_ bg_ animate_ action& bn:: iaffine_bg_animate_action:: operator=(iaffine_ bg_ animate_ action&& other) noexcept
Move assignment operator.
| Parameters | |
|---|---|
| other | iaffine_ |
| Returns | Reference to this. |
int bn:: iaffine_bg_animate_action:: current_index() const
Returns the current index of the given map_indexes (not the current index of the map to reference in the given map_item).
This index is the one to be used on the next map change. It can be out of bounds if the action is done.
void bn:: iaffine_bg_animate_action:: set_current_index(int current_index,
bool update_bg_now)
Sets the current index of the given map_indexes (not the current index of the map to reference in the given map_item).
| Parameters | |
|---|---|
| current_index | New index of the given map_indexes. |
| update_bg_now | Specifies if the background must be updated now or on the next map change. |
int bn:: iaffine_bg_animate_action:: current_map_index() const
Returns the current index of the map to reference in the given map_item.
This index is the one to be used on the next map change.