bn::sprites_mosaic_stretch_toggle_action class

Changes the stretch of the mosaic applied to the sprites when the action is updated a given number of times.

Base classes

template<typename Property, class PropertyManager>
class toggle_template_action<fixed, sprites_mosaic_stretch_manager>
Changes the property when the action is updated a given number of times.

Constructors, destructors, conversion operators

sprites_mosaic_stretch_toggle_action(int duration_updates, fixed new_stretch)
Constructor.

Public functions

auto new_stretch() const -> fixed
Returns the stretch to set when the action is updated the given number of times.

Function documentation

bn::sprites_mosaic_stretch_toggle_action::sprites_mosaic_stretch_toggle_action(int duration_updates, fixed new_stretch)

Constructor.

Parameters
duration_updates How many times the action has to be updated to change the stretch.
new_stretch New stretch to set when the action is updated duration_updates times.

This stretch must be in the range [0..1].