7#ifndef MYGUI_CONTROLLER_POSITION_H_
8#define MYGUI_CONTROLLER_POSITION_H_
20 class MYGUI_EXPORT ControllerPosition :
public ControllerItem
25 using FrameAction = delegates::Delegate<const IntCoord&, const IntCoord&, IntCoord&, float>;
29 void setCoord(
const IntCoord& _destCoord);
31 void setSize(
const IntSize& _destSize);
33 void setPosition(
const IntPoint& _destPoint);
44 void setFunction(std::string_view _value);
49 void setTime(
float _value);
54 void setAction(FrameAction::IDelegate* _value);
56 bool addTime(Widget* _widget,
float _time)
override;
57 void prepareItem(Widget* _widget)
override;
58 void setProperty(std::string_view _key, std::string_view _value)
override;
64 float mElapsedTime{0};
67 bool mCalcPosition{
false};
69 bool mCalcSize{
false};
78 FrameAction eventFrameAction;
#define MYGUI_RTTI_DERIVED(DerivedType)
types::TCoord< int > IntCoord