29 mDestCoord = _destCoord;
38 mCalcPosition =
false;
45 mDestCoord.
top = _destPoint.
top;
62 mElapsedTime += _time;
64 if (mElapsedTime < mTime)
67 eventFrameAction(mStartCoord, mDestCoord, coord, mElapsedTime / mTime);
70 if (mCalcSize) _widget->
setCoord(coord);
83 eventFrameAction(mStartCoord, mDestCoord, coord, 1.0f);
86 if (mCalcSize) _widget->
setCoord(coord);
103 setTime(utility::parseValue<float>(_value));
104 else if (_key ==
"Coord")
105 setCoord(utility::parseValue<IntCoord>(_value));
106 else if (_key ==
"Size")
107 setSize(utility::parseValue<IntSize>(_value));
108 else if (_key ==
"Position")
109 setPosition(utility::parseValue<IntPoint>(_value));
110 else if (_key ==
"Function")
116 if (_value ==
"Linear")
118 else if (_value ==
"Inertional")
120 else if (_value ==
"Accelerated")
122 else if (_value ==
"Slowed")
124 else if (_value ==
"Jump")
135 eventFrameAction = _value;
#define MYGUI_DEBUG_ASSERT(exp, dest)
EventPairAddParameter< EventHandle_WidgetPtr, EventHandle_WidgetPtrControllerItemPtr > eventPreAction
EventPairAddParameter< EventHandle_WidgetPtr, EventHandle_WidgetPtrControllerItemPtr > eventPostAction
EventPairAddParameter< EventHandle_WidgetPtr, EventHandle_WidgetPtrControllerItemPtr > eventUpdateAction
void setPosition(const IntPoint &_value)
void setAction(FrameAction::IDelegate *_value)
void setCoord(const IntCoord &_value)
void setTime(float _value)
bool addTime(Widget *_widget, float _time) override
void setProperty(const std::string &_key, const std::string &_value) override
void prepareItem(Widget *_widget) override
void setSize(const IntSize &_value)
void setFunction(const std::string &_value)
const IntCoord & getCoord() const
void linearMoveFunction(const IntCoord &_startRect, const IntCoord &_destRect, IntCoord &_result, float _k)
void inertionalMoveFunction(const IntCoord &_startRect, const IntCoord &_destRect, IntCoord &_result, float _current_time)
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
TPoint< T > point() const