bn::affine_bg_move_pivot_by_action class

Modifies the position of the pivot of an affine_bg_ptr by a given delta.

Base classes

template<typename Value, typename Property, class PropertyManager>
class by_value_template_action<affine_bg_ptr, fixed_point, affine_bg_pivot_position_manager>
Modifies the property of a value by a given delta.

Constructors, destructors, conversion operators

affine_bg_move_pivot_by_action(const affine_bg_ptr& bg, fixed delta_x, fixed delta_y)
Constructor.
affine_bg_move_pivot_by_action(affine_bg_ptr&& bg, fixed delta_x, fixed delta_y)
Constructor.
affine_bg_move_pivot_by_action(const affine_bg_ptr& bg, const fixed_point& delta_position)
Constructor.
affine_bg_move_pivot_by_action(affine_bg_ptr&& bg, const fixed_point& delta_position)
Constructor.

Public functions

auto bg() const -> const affine_bg_ptr&
Returns the affine_bg_ptr to modify.
auto delta_position() const -> const fixed_point&
Returns how much to add to the position of the pivot of the given affine_bg_ptr when the action is updated.

Function documentation

bn::affine_bg_move_pivot_by_action::affine_bg_move_pivot_by_action(const affine_bg_ptr& bg, fixed delta_x, fixed delta_y)

Constructor.

Parameters
bg affine_bg_ptr to copy.
delta_x How much to add to the horizontal position of the pivot of the given affine_bg_ptr when the action is updated.
delta_y How much to add to the horizontal position of the pivot of the given affine_bg_ptr when the action is updated.

bn::affine_bg_move_pivot_by_action::affine_bg_move_pivot_by_action(affine_bg_ptr&& bg, fixed delta_x, fixed delta_y)

Constructor.

Parameters
bg affine_bg_ptr to move.
delta_x How much to add to the horizontal position of the pivot of the given affine_bg_ptr when the action is updated.
delta_y How much to add to the horizontal position of the pivot of the given affine_bg_ptr when the action is updated.

bn::affine_bg_move_pivot_by_action::affine_bg_move_pivot_by_action(const affine_bg_ptr& bg, const fixed_point& delta_position)

Constructor.

Parameters
bg affine_bg_ptr to copy.
delta_position How much to add to the position of the pivot of the given affine_bg_ptr when the action is updated.

bn::affine_bg_move_pivot_by_action::affine_bg_move_pivot_by_action(affine_bg_ptr&& bg, const fixed_point& delta_position)

Constructor.

Parameters
bg affine_bg_ptr to move.
delta_position How much to add to the position of the pivot of the given affine_bg_ptr when the action is updated.