bn::bg_palettes_brightness_toggle_action class

Changes the brightness of all background color palettes when the action is updated a given number of times.

Base classes

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

Constructors, destructors, conversion operators

bg_palettes_brightness_toggle_action(int duration_updates, fixed new_brightness)
Constructor.

Public functions

auto new_brightness() const -> fixed
Returns the brightness when the action is updated the given number of times.

Function documentation

bn::bg_palettes_brightness_toggle_action::bg_palettes_brightness_toggle_action(int duration_updates, fixed new_brightness)

Constructor.

Parameters
duration_updates How much times the action has to be updated to change the brightness.
new_brightness New brightness when the action is updated duration_updates times.

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