bn::sp_direct_bitmap_bg_mosaic_toggle_action class

Toggles if the mosaic effect must be applied to a sp_direct_bitmap_bg_ptr or not when the action is updated a given number of times.

Base classes

template<typename Value, class PropertyManager>
class bool_toggle_value_template_action<sp_direct_bitmap_bg_ptr, sp_direct_bitmap_bg_mosaic_manager>
Toggles a boolean property of a value when the action is updated a given number of times.

Constructors, destructors, conversion operators

sp_direct_bitmap_bg_mosaic_toggle_action(const sp_direct_bitmap_bg_ptr& bg, int duration_updates)
Constructor.
sp_direct_bitmap_bg_mosaic_toggle_action(sp_direct_bitmap_bg_ptr&& bg, int duration_updates)
Constructor.

Public functions

auto bg() const -> const sp_direct_bitmap_bg_ptr&
Returns the sp_direct_bitmap_bg_ptr to modify.

Function documentation

bn::sp_direct_bitmap_bg_mosaic_toggle_action::sp_direct_bitmap_bg_mosaic_toggle_action(const sp_direct_bitmap_bg_ptr& bg, int duration_updates)

Constructor.

Parameters
bg sp_direct_bitmap_bg_ptr to copy.
duration_updates How many times the action has to be updated to toggle if the mosaic effect must be applied or not.

bn::sp_direct_bitmap_bg_mosaic_toggle_action::sp_direct_bitmap_bg_mosaic_toggle_action(sp_direct_bitmap_bg_ptr&& bg, int duration_updates)

Constructor.

Parameters
bg sp_direct_bitmap_bg_ptr to move.
duration_updates How many times the action has to be updated to toggle if the mosaic effect must be applied or not.