MyGUI: MyGUI_ControllerPosition.h Source File

MyGUI 3.4.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

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
16namespace 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
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_
MyGUI_ControllerItem.h
MyGUI_Delegate.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:48
MyGUI_Types.h
MyGUI_WidgetDefines.h
MyGUI::ControllerItem
Definition MyGUI_ControllerItem.h:27
MyGUI::ControllerPosition
Definition MyGUI_ControllerPosition.h:22
MyGUI::ControllerPosition::FrameAction
delegates::CDelegate4< const IntCoord &, const IntCoord &, IntCoord &, float > FrameAction
Definition MyGUI_ControllerPosition.h:26
MyGUI::Widget
widget description should be here.
Definition MyGUI_Widget.h:37
MyGUI::delegates::DelegateFunction
Definition MyGUI_Delegate.h:42
MyGUI::delegates::Delegate
Definition MyGUI_Delegate.h:136
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::types::TCoord< int >
MyGUI::types::TPoint< int >
MyGUI::types::TSize< int >