bn::bg_palette_inverted_toggle_action class

Toggles if the colors of a bg_palette_ptr must be inverted 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<bg_palette_ptr, bg_palette_inverted_manager>
Toggles a boolean property of a value when the action is updated a given number of times.

Constructors, destructors, conversion operators

bg_palette_inverted_toggle_action(const bg_palette_ptr& palette, int duration_updates)
Constructor.
bg_palette_inverted_toggle_action(bg_palette_ptr&& palette, int duration_updates)
Constructor.

Public functions

auto palette() const -> const bg_palette_ptr&
Returns the bg_palette_ptr to modify.

Function documentation

bn::bg_palette_inverted_toggle_action::bg_palette_inverted_toggle_action(const bg_palette_ptr& palette, int duration_updates)

Constructor.

Parameters
palette bg_palette_ptr to copy.
duration_updates How many times the action has to be updated to toggle if the colors of the given bg_palette_ptr must be inverted or not.

bn::bg_palette_inverted_toggle_action::bg_palette_inverted_toggle_action(bg_palette_ptr&& palette, int duration_updates)

Constructor.

Parameters
palette bg_palette_ptr to move.
duration_updates How many times the action has to be updated to toggle if the colors of the given bg_palette_ptr must be inverted or not.