52 _startRect.
left -
int(
float(_startRect.
left - _destRect.
left) * _k ),
53 _startRect.
top -
int(
float(_startRect.
top - _destRect.
top) * _k ),
54 _startRect.
width -
int(
float(_startRect.
width - _destRect.
width) * _k ),
62 const float M_PI = 3.141593f;
64 float k = sin(M_PI * _current_time - M_PI / 2.0f);
65 if (k < 0) k = (-pow(-k, 0.7f) + 1) / 2;
66 else k = (pow(k, 0.7f) + 1) / 2;
void set(T const &_left, T const &_top, T const &_width, T const &_height)
static WidgetManager & getInstance()
void inertionalMoveFunction(const IntCoord &_startRect, const IntCoord &_destRect, IntCoord &_result, float _current_time)
void linearMoveFunction(const IntCoord &_startRect, const IntCoord &_destRect, IntCoord &_result, float _k)
void actionWidgetDestroy(Widget *_widget)
void actionWidgetHide(Widget *_widget)
void actionWidgetShow(Widget *_widget)