MyGUI 3.2.2

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"
14 #include "MyGUI_ControllerItem.h"
15
16 namespace MyGUI
17 {
18
20 class MYGUI_EXPORT ControllerPosition :
21 public ControllerItem
22 {
23 MYGUI_RTTI_DERIVED( ControllerPosition )
24
25 public:
26 typedef delegates::CDelegate4<const IntCoord&, const IntCoord&, IntCoord&, float> FrameAction;
27
28 ControllerPosition();
29 virtual ~ControllerPosition();
30
31 void setCoord(const IntCoord& _value);
32
33 void setSize(const IntSize& _value);
34
35 void setPosition(const IntPoint& _value);
36
37 void setFunction(const std::string& _value);
38
42 void setTime(float _value);
43
47 void setAction(FrameAction::IDelegate* _value);
48
49 virtual bool addTime(Widget* _widget, float _time);
50 virtual void prepareItem(Widget* _widget);
51 virtual void setProperty(const std::string& _key, const std::string& _value);
52
53 private:
54 IntCoord mStartCoord;
55 IntCoord mDestCoord;
56 float mTime;
57 float mElapsedTime;
58
59 // controller changing position
60 bool mCalcPosition;
61 // controller changing size
62 bool mCalcSize;
63
71 FrameAction eventFrameAction;
72 };
73
74 } // namespace MyGUI
75
76 #endif // MYGUI_CONTROLLER_POSITION_H_
MyGUI::types::TCoord< int >
MyGUI::Widget
Widget properties. Widget_skin_childs Skin childs. Widget widget description should be here...
Definition: MyGUI_Widget.h:29
MyGUI::types::TPoint< int >
MyGUI_Prerequest.h
MyGUI::types::TSize< int >
MyGUI::ControllerPosition
Definition: MyGUI_ControllerPosition.h:20
MyGUI_WidgetDefines.h
MyGUI::ControllerPosition::FrameAction
delegates::CDelegate4< const IntCoord &, const IntCoord &, IntCoord &, float > FrameAction
Definition: MyGUI_ControllerPosition.h:26
MyGUI_Types.h
MyGUI
Definition: MyGUI_ActionController.h:14
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:65
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI::delegates::CDelegate4< const IntCoord &, const IntCoord &, IntCoord &, float >
MyGUI::ControllerItem
Definition: MyGUI_ControllerItem.h:25
MyGUI_ControllerItem.h
MyGUI_Delegate.h