bn::rect_window_move_top_left_toggle_action class

Changes the position of the top-left corner of a rect_window when the action is updated a given number of times.

Base classes

template<typename Value, typename Property, class PropertyManager>
class toggle_value_template_action<rect_window, fixed_point, rect_window_top_left_manager>
Changes the property of a value when the action is updated a given number of times.

Constructors, destructors, conversion operators

rect_window_move_top_left_toggle_action(rect_window window, int duration_updates, fixed new_top, fixed new_left)
Constructor.
rect_window_move_top_left_toggle_action(rect_window window, int duration_updates, const fixed_point& new_top_left)
Constructor.

Public functions

auto window() const -> rect_window
Returns the rect_window to modify.
auto new_top_left() const -> const fixed_point&
Returns the position of the top-left corner of the given rect_window when the action is updated the given number of times.

Function documentation

bn::rect_window_move_top_left_toggle_action::rect_window_move_top_left_toggle_action(rect_window window, int duration_updates, fixed new_top, fixed new_left)

Constructor.

Parameters
window rect_window to modify.
duration_updates How much times the action has to be updated to change the position of the top-left corner of the given rect_window.
new_top New position of the top boundary of the given rect_window when the action is updated duration_updates times.
new_left New position of the left boundary of the given rect_window when the action is updated duration_updates times.

bn::rect_window_move_top_left_toggle_action::rect_window_move_top_left_toggle_action(rect_window window, int duration_updates, const fixed_point& new_top_left)

Constructor.

Parameters
window rect_window to modify.
duration_updates How much times the action has to be updated to change the position of the top-left corner of the given rect_window.
new_top_left New position of the top-left corner of the given rect_window when the action is updated duration_updates times.