class
#include <bn_bg_palette_actions.h>
bg_palette_rotate_toggle_action Changes the number of colors to rotate to the right in a bg_
Base classes
-
template<typename Value, typename Property, class PropertyManager>class toggle_value_template_action<bg_palette_ptr, int, bg_palette_rotate_manager>
- Changes the property of a value when the action is updated a given number of times.
Constructors, destructors, conversion operators
-
bg_palette_rotate_toggle_action(const bg_
palette_ ptr& palette, int duration_updates, int new_count) - Constructor.
-
bg_palette_rotate_toggle_action(bg_
palette_ ptr&& palette, int duration_updates, int new_count) - Constructor.
Public functions
-
auto palette() const -> const bg_
palette_ ptr& - Returns the bg_
palette_ ptr to modify. - auto new_count() const -> int
- Returns the number of colors to rotate to the right when the action is updated the given number of times.
Function documentation
bn:: bg_palette_rotate_toggle_action:: bg_palette_rotate_toggle_action(const bg_ palette_ ptr& palette,
int duration_updates,
int new_count)
Constructor.
Parameters | |
---|---|
palette | bg_ |
duration_updates | How many times the action has to be updated to change the number of colors to rotate to the right. |
new_count | New number of colors to rotate to the right when the action is updated duration_updates times. |
This count must be in the range [1 - rotate_range_size() .. rotate_range_size() - 1].
bn:: bg_palette_rotate_toggle_action:: bg_palette_rotate_toggle_action(bg_ palette_ ptr&& palette,
int duration_updates,
int new_count)
Constructor.
Parameters | |
---|---|
palette | bg_ |
duration_updates | How many times the action has to be updated to change the number of colors to rotate to the right. |
new_count | New number of colors to rotate to the right when the action is updated duration_updates times. |
This count must be in the range [1 - rotate_range_size() .. rotate_range_size() - 1].