MyGUI 3.4.1
MyGUI_ControllerPosition.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_CONTROLLER_POSITION_H_
8#define MYGUI_CONTROLLER_POSITION_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Delegate.h"
12#include "MyGUI_Types.h"
13#include "MyGUI_WidgetDefines.h"
15
16namespace MyGUI
17{
18
21 public ControllerItem
22 {
24
25 public:
27
29
30 void setCoord(const IntCoord& _value);
31
32 void setSize(const IntSize& _value);
33
34 void setPosition(const IntPoint& _value);
35
45 void setFunction(const std::string& _value);
46
50 void setTime(float _value);
51
55 void setAction(FrameAction::IDelegate* _value);
56
57 bool addTime(Widget* _widget, float _time) override;
58 void prepareItem(Widget* _widget) override;
59 void setProperty(const std::string& _key, const std::string& _value) override;
60
61 private:
62 IntCoord mStartCoord;
63 IntCoord mDestCoord;
64 float mTime;
65 float mElapsedTime;
66
67 // controller changing position
68 bool mCalcPosition;
69 // controller changing size
70 bool mCalcSize;
71
79 FrameAction eventFrameAction;
80 };
81
82} // namespace MyGUI
83
84#endif // MYGUI_CONTROLLER_POSITION_H_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:48
delegates::CDelegate4< const IntCoord &, const IntCoord &, IntCoord &, float > FrameAction
widget description should be here.
Definition: MyGUI_Widget.h:37