25 mDestCoord = _destCoord;
33 mDestCoord.height = _destSize.
height;
34 mCalcPosition =
false;
40 mDestCoord.left = _destPoint.
left;
41 mDestCoord.top = _destPoint.
top;
58 mElapsedTime += _time;
60 if (mElapsedTime < mTime)
63 eventFrameAction(mStartCoord, mDestCoord, coord, mElapsedTime / mTime);
82 eventFrameAction(mStartCoord, mDestCoord, coord, 1.0f);
106 else if (_key ==
"Coord")
108 else if (_key ==
"Size")
110 else if (_key ==
"Position")
112 else if (_key ==
"Function")
118 if (_value ==
"Linear")
120 else if (_value ==
"Inertional")
122 else if (_value ==
"Accelerated")
124 else if (_value ==
"Slowed")
126 else if (_value ==
"Jump")
137 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 setAction(FrameAction::IDelegate *_value)
void setTime(float _value)
void setFunction(std::string_view _value)
bool addTime(Widget *_widget, float _time) override
void setProperty(std::string_view _key, std::string_view _value) override
void setPosition(const IntPoint &_destPoint)
void prepareItem(Widget *_widget) override
void setCoord(const IntCoord &_destCoord)
void setSize(const IntSize &_destSize)
const IntCoord & getCoord() const
DelegateFunction< Args... > IDelegate
void acceleratedMoveFunction(const IntCoord &_startRect, const IntCoord &_destRect, IntCoord &_result, float _current_time)
void jumpMoveFunction(const IntCoord &_startRect, const IntCoord &_destRect, IntCoord &_result, float _current_time)
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)
T parseValue(std::string_view _value)
types::TPoint< int > IntPoint
types::TCoord< int > IntCoord
types::TSize< int > IntSize
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
TPoint< T > point() const