Go to the documentation of this file.
28 mDestCoord = _destCoord;
37 mCalcPosition =
false;
44 mDestCoord.
top = _destPoint.
top;
61 mElapsedTime += _time;
63 if (mElapsedTime < mTime)
66 eventFrameAction(mStartCoord, mDestCoord, coord, mElapsedTime / mTime);
69 if (mCalcSize) _widget->
setCoord(coord);
82 eventFrameAction(mStartCoord, mDestCoord, coord, 1.0f);
85 if (mCalcSize) _widget->
setCoord(coord);
102 setTime(utility::parseValue<float>(_value));
103 else if (_key ==
"Coord")
104 setCoord(utility::parseValue<IntCoord>(_value));
105 else if (_key ==
"Size")
106 setSize(utility::parseValue<IntSize>(_value));
107 else if (_key ==
"Position")
108 setPosition(utility::parseValue<IntPoint>(_value));
109 else if (_key ==
"Function")
115 if (_value ==
"Inertional")
117 else if (_value ==
"Accelerated")
119 else if (_value ==
"Slowed")
121 else if (_value ==
"Jump")
132 eventFrameAction = _value;
void setProperty(const std::string &_key, const std::string &_value) override
void setPosition(const IntPoint &_value)
void setAction(FrameAction::IDelegate *_value)
void inertionalMoveFunction(const IntCoord &_startRect, const IntCoord &_destRect, IntCoord &_result, float _current_time)
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
EventPairAddParameter< EventHandle_WidgetPtr, EventHandle_WidgetPtrControllerItemPtr > eventUpdateAction
const IntCoord & getCoord() const
void prepareItem(Widget *_widget) override
EventPairAddParameter< EventHandle_WidgetPtr, EventHandle_WidgetPtrControllerItemPtr > eventPostAction
void setCoord(const IntCoord &_value)
void setTime(float _value)
TPoint< T > point() const
bool addTime(Widget *_widget, float _time) override
#define MYGUI_DEBUG_ASSERT(exp, dest)
void setSize(const IntSize &_value)
void setFunction(const std::string &_value)
EventPairAddParameter< EventHandle_WidgetPtr, EventHandle_WidgetPtrControllerItemPtr > eventPreAction